From 8b2beb2a3d066384fd66d28fd54c845d0e24ca63 Mon Sep 17 00:00:00 2001 From: Romfos Date: Mon, 25 Dec 2023 04:24:40 +0300 Subject: [PATCH] Enable ImplicitUsings (#762) --- Directory.Build.props | 1 + src/NSubstitute/Arg.cs | 1 - src/NSubstitute/Callback.cs | 3 +-- src/NSubstitute/Callbacks/ConfiguredCallback.cs | 3 +-- src/NSubstitute/ClearOptions.cs | 4 +--- src/NSubstitute/Compatibility/CompatArg.cs | 3 +-- src/NSubstitute/Core/Argument.cs | 5 +---- src/NSubstitute/Core/ArgumentSpecificationDequeue.cs | 4 +--- src/NSubstitute/Core/Arguments/AnyArgumentMatcher.cs | 2 -- src/NSubstitute/Core/Arguments/ArgumentFormatter.cs | 5 +---- src/NSubstitute/Core/Arguments/ArgumentMatcher.cs | 2 -- src/NSubstitute/Core/Arguments/ArgumentSpecification.cs | 2 -- .../ArgumentSpecificationCompatibilityTester.cs | 5 +---- .../Core/Arguments/ArgumentSpecificationFactory.cs | 4 ---- .../Core/Arguments/ArgumentSpecificationsFactory.cs | 4 +--- .../Core/Arguments/ArrayContentsArgumentMatcher.cs | 2 -- src/NSubstitute/Core/Arguments/DefaultChecker.cs | 5 +---- src/NSubstitute/Core/Arguments/EqualsArgumentMatcher.cs | 2 -- .../Core/Arguments/ExpressionArgumentMatcher.cs | 1 - src/NSubstitute/Core/Arguments/IArgumentSpecification.cs | 2 -- .../IArgumentSpecificationCompatibilityTester.cs | 4 +--- .../Core/Arguments/IArgumentSpecificationsFactory.cs | 1 - src/NSubstitute/Core/Arguments/IDefaultChecker.cs | 4 +--- .../Core/Arguments/ISuppliedArgumentSpecifications.cs | 3 --- .../Arguments/ISuppliedArgumentSpecificationsFactory.cs | 2 -- .../Core/Arguments/SuppliedArgumentSpecifications.cs | 6 +----- .../Arguments/SuppliedArgumentSpecificationsFactory.cs | 4 +--- src/NSubstitute/Core/Call.cs | 4 ---- src/NSubstitute/Core/CallActions.cs | 3 +-- src/NSubstitute/Core/CallBaseConfiguration.cs | 3 +-- src/NSubstitute/Core/CallCollection.cs | 2 -- src/NSubstitute/Core/CallFactory.cs | 5 +---- src/NSubstitute/Core/CallFormatter.cs | 4 +--- src/NSubstitute/Core/CallInfo.cs | 3 --- src/NSubstitute/Core/CallRouter.cs | 2 -- src/NSubstitute/Core/CallRouterFactory.cs | 1 - src/NSubstitute/Core/CallRouterResolver.cs | 3 +-- src/NSubstitute/Core/CallSpecification.cs | 3 --- .../Core/CallSpecificationFactoryFactoryYesThatsRight.cs | 3 +-- src/NSubstitute/Core/ConfiguredCall.cs | 4 +--- src/NSubstitute/Core/CustomHandlers.cs | 4 +--- src/NSubstitute/Core/DefaultForType.cs | 3 +-- .../Core/DependencyInjection/INSubContainer.cs | 2 -- .../Core/DependencyInjection/NSubContainer.cs | 4 ---- src/NSubstitute/Core/EventCallFormatter.cs | 5 +---- src/NSubstitute/Core/EventHandlerRegistry.cs | 3 --- src/NSubstitute/Core/Events/DelegateEventWrapper.cs | 2 -- src/NSubstitute/Core/Events/EventHandlerWrapper.cs | 2 -- src/NSubstitute/Core/Events/RaiseEventWrapper.cs | 1 - src/NSubstitute/Core/Extensions.cs | 3 --- src/NSubstitute/Core/GetCallSpec.cs | 4 +--- src/NSubstitute/Core/IArgumentSpecificationDequeue.cs | 4 +--- src/NSubstitute/Core/ICall.cs | 2 -- src/NSubstitute/Core/ICallActions.cs | 2 -- src/NSubstitute/Core/ICallCollection.cs | 2 -- src/NSubstitute/Core/ICallFactory.cs | 4 +--- src/NSubstitute/Core/ICallRouter.cs | 2 -- src/NSubstitute/Core/ICallSpecification.cs | 2 -- src/NSubstitute/Core/ICustomHandlers.cs | 4 +--- src/NSubstitute/Core/IDefaultForType.cs | 2 -- src/NSubstitute/Core/IEventHandlerRegistry.cs | 2 -- src/NSubstitute/Core/IMethodInfoFormatter.cs | 3 +-- src/NSubstitute/Core/IParameterInfo.cs | 4 +--- src/NSubstitute/Core/IProxyFactory.cs | 2 -- src/NSubstitute/Core/IQueryResults.cs | 2 -- src/NSubstitute/Core/IReceivedCallsExceptionThrower.cs | 1 - src/NSubstitute/Core/IResultsForType.cs | 4 +--- src/NSubstitute/Core/IReturn.cs | 3 --- src/NSubstitute/Core/ISubstituteFactory.cs | 2 -- src/NSubstitute/Core/ISubstituteState.cs | 3 +-- src/NSubstitute/Core/ISubstitutionContext.cs | 2 -- src/NSubstitute/Core/IThreadLocalContext.cs | 2 -- src/NSubstitute/Core/Maybe.cs | 5 +---- src/NSubstitute/Core/MethodFormatter.cs | 4 +--- src/NSubstitute/Core/ParameterInfoWrapper.cs | 3 +-- src/NSubstitute/Core/PendingSpecificationInfo.cs | 4 +--- src/NSubstitute/Core/PropertyCallFormatter.cs | 4 +--- src/NSubstitute/Core/PropertyHelper.cs | 3 --- src/NSubstitute/Core/Query.cs | 6 +----- src/NSubstitute/Core/ReceivedCallsExceptionThrower.cs | 5 +---- src/NSubstitute/Core/ReflectionExtensions.cs | 2 -- src/NSubstitute/Core/ResultsForType.cs | 4 +--- src/NSubstitute/Core/ReturnObservable.cs | 4 +--- src/NSubstitute/Core/RobustThreadLocal.cs | 6 +----- src/NSubstitute/Core/RouteFactoryCacheWrapper.cs | 1 - src/NSubstitute/Core/SequenceChecking/InstanceTracker.cs | 1 - .../Core/SequenceChecking/SequenceFormatter.cs | 3 --- .../Core/SequenceChecking/SequenceInOrderAssertion.cs | 1 - src/NSubstitute/Core/SequenceNumberGenerator.cs | 4 +--- src/NSubstitute/Core/SubstituteFactory.cs | 2 -- src/NSubstitute/Core/SubstituteState.cs | 3 +-- src/NSubstitute/Core/SubstituteStateFactory.cs | 3 +-- src/NSubstitute/Core/SubstitutionContext.cs | 2 -- src/NSubstitute/Core/ThreadLocalContext.cs | 4 +--- src/NSubstitute/Core/WhenCalled.cs | 1 - .../Exceptions/AmbiguousArgumentsException.cs | 2 -- .../Exceptions/ArgumentIsNotOutOrRefException.cs | 2 -- .../ArgumentSetWithIncompatibleValueException.cs | 4 +--- .../CanNotPartiallySubForInterfaceOrDelegateException.cs | 2 -- .../Exceptions/CannotCreateEventArgsException.cs | 2 -- .../Exceptions/CannotReturnNullforValueType.cs | 4 +--- src/NSubstitute/Exceptions/CouldNotSetReturnException.cs | 3 +-- src/NSubstitute/Exceptions/ReceivedCallsException.cs | 2 -- .../Exceptions/RedundantArgumentMatcherException.cs | 4 +--- src/NSubstitute/Exceptions/SubstituteException.cs | 2 -- .../Exceptions/SubstituteInternalException.cs | 2 -- .../Exceptions/UnexpectedArgumentMatcherException.cs | 2 -- src/NSubstitute/Extensions/ClearExtensions.cs | 3 +-- src/NSubstitute/Extensions/ConfigurationExtensions.cs | 3 +-- src/NSubstitute/Extensions/ExceptionExtensions.cs | 3 --- src/NSubstitute/Extensions/ReceivedExtensions.cs | 5 +---- src/NSubstitute/Extensions/ReturnsExtensions.cs | 3 +-- src/NSubstitute/Extensions/ReturnsForAllExtensions.cs | 3 +-- .../CastleDynamicProxy/CastleDynamicProxyFactory.cs | 2 -- .../CastleDynamicProxy/CastleForwardingInterceptor.cs | 1 - .../Proxies/CastleDynamicProxy/CastleInvocationMapper.cs | 1 - .../Proxies/CastleDynamicProxy/ProxyIdInterceptor.cs | 3 +-- .../Proxies/DelegateProxy/DelegateProxyFactory.cs | 9 --------- .../DelegateProxy/ProxiedDelegateTypeAttribute.cs | 2 -- src/NSubstitute/Proxies/ProxyFactory.cs | 2 -- src/NSubstitute/Raise.cs | 2 -- src/NSubstitute/Received.cs | 3 +-- src/NSubstitute/Routing/AutoValues/AutoArrayProvider.cs | 2 -- .../Routing/AutoValues/AutoObservableProvider.cs | 5 +---- .../Routing/AutoValues/AutoQueryableProvider.cs | 4 +--- src/NSubstitute/Routing/AutoValues/AutoStringProvider.cs | 2 -- .../Routing/AutoValues/AutoSubstituteProvider.cs | 4 +--- src/NSubstitute/Routing/AutoValues/AutoTaskProvider.cs | 4 ---- .../Routing/AutoValues/AutoValueProvidersFactory.cs | 5 +---- src/NSubstitute/Routing/AutoValues/IAutoValueProvider.cs | 2 -- .../Routing/AutoValues/IAutoValueProvidersFactory.cs | 3 +-- .../Routing/Handlers/CallBaseForCallHandler.cs | 1 - .../Routing/Handlers/CheckReceivedCallsHandler.cs | 1 - .../Routing/Handlers/DoNotCallBaseForCallHandler.cs | 1 - .../Routing/Handlers/EventSubscriptionHandler.cs | 3 --- .../Routing/Handlers/PropertySetterHandler.cs | 1 - src/NSubstitute/Routing/Handlers/RaiseEventHandler.cs | 4 +--- .../Routing/Handlers/RecordCallSpecificationHandler.cs | 3 +-- src/NSubstitute/Routing/Handlers/ReturnAutoValue.cs | 3 --- .../Handlers/ReturnFromAndConfigureDynamicCall.cs | 1 - .../Routing/Handlers/ReturnFromBaseIfRequired.cs | 3 +-- .../Routing/Handlers/SetActionForCallHandler.cs | 1 - src/NSubstitute/Routing/IRouteFactory.cs | 3 +-- src/NSubstitute/Routing/Route.cs | 2 -- src/NSubstitute/Routing/RouteFactory.cs | 3 +-- src/NSubstitute/Substitute.cs | 1 - src/NSubstitute/SubstituteExtensions.Received.cs | 1 - src/NSubstitute/SubstituteExtensions.Returns.Task.cs | 3 --- .../SubstituteExtensions.Returns.ValueTask.cs | 3 --- src/NSubstitute/SubstituteExtensions.Returns.cs | 2 -- src/NSubstitute/SubstituteExtensions.When.Task.cs | 2 -- src/NSubstitute/SubstituteExtensions.When.ValueTask.cs | 2 -- src/NSubstitute/SubstituteExtensions.When.cs | 1 - tests/NSubstitute.Acceptance.Specs/ArgDoFromMatcher.cs | 4 +--- .../ArgumentInvocationFromMatchers.cs | 5 +---- tests/NSubstitute.Acceptance.Specs/ArgumentMatching.cs | 5 +---- .../NSubstitute.Acceptance.Specs/AssemblySigningTest.cs | 3 +-- tests/NSubstitute.Acceptance.Specs/AutoValuesForSubs.cs | 3 --- tests/NSubstitute.Acceptance.Specs/CallbackCalling.cs | 2 -- tests/NSubstitute.Acceptance.Specs/CompatArgsTests.cs | 4 +--- tests/NSubstitute.Acceptance.Specs/ConcurrencyTests.cs | 5 +---- .../ConfigurationExtensionTests.cs | 3 +-- .../NSubstitute.Acceptance.Specs/CustomHandlersSpecs.cs | 4 +--- tests/NSubstitute.Acceptance.Specs/DynamicCalls.cs | 3 +-- tests/NSubstitute.Acceptance.Specs/EventChecking.cs | 1 - tests/NSubstitute.Acceptance.Specs/EventRaising.cs | 1 - .../ExceptionsWhenCheckingReceivedCalls.cs | 3 +-- .../ExceptionsWhenCheckingSequencesOfCalls.cs | 3 +-- ...ArgMatchingWithValueTypeArgSpecsForObjectArguments.cs | 1 - .../FieldReports/CallingIntoNewSubWithinReturns.cs | 3 +-- .../FieldReports/DisposeWithThreadLocal.cs | 1 - .../FieldReports/Issue110_CustomExceptions.cs | 3 +-- .../Issue125_MethodWithSealedClassReturnType.cs | 6 +----- .../FieldReports/Issue149_ArgMatcherInReturns.cs | 3 +-- .../Issue211_ReceivedInOrderParamsFormatting.cs | 4 +--- .../Issue237_ReceivedInOrderErrorHandling.cs | 3 +-- .../Issue282_MultipleReturnValuesParallelism.cs | 3 +-- .../Issue291_CannotReconfigureThrowingConfiguration.cs | 3 +-- .../FieldReports/Issue372_InterfaceSameNameOfMethods.cs | 3 +-- .../FieldReports/Issue47_RaisingEventsWithNullArg.cs | 1 - .../Issue500_SpecialMethodsWithoutAttribute.cs | 1 - .../Issue515_OutOfRangeExceptionForNestedGenericTypes.cs | 1 - .../Issue533_TaskExceptionMightBeSwallowed.cs | 2 -- .../FieldReports/Issue560_RaiseEventWithArrayArg.cs | 1 - .../Issue569_QueryShouldNotInvokeConfiguredResult.cs | 1 - .../FieldReports/Issue57_SettingVirtualPropertyInCtor.cs | 3 +-- .../Issue75_DoesNotWorkWithMembersThatUseDynamic.cs | 2 -- .../FieldReports/Issue77_EqualsBehaviourOnClassStubs.cs | 1 - .../Issue83_MethodsWithGenericStructConstraint.cs | 3 +-- .../FieldReports/Issue_RaiseEventOnNonSubstitute.cs | 3 +-- .../FieldReports/MigratingToCompatArgs.cs | 4 +--- .../FieldReports/Regression_ReceivedClearsStub.cs | 3 +-- .../FieldReports/SubbingSynchronizationContext.cs | 1 - ...FormattingCallsWhenThrowingReceivedCallsExceptions.cs | 2 -- tests/NSubstitute.Acceptance.Specs/GenericArguments.cs | 1 - tests/NSubstitute.Acceptance.Specs/ILoggerTests.cs | 3 --- .../Infrastructure/BackgroundTask.cs | 3 --- .../Infrastructure/FluentSomething.cs | 4 +--- .../Infrastructure/IFluentSomething.cs | 4 +--- tests/NSubstitute.Acceptance.Specs/LegacyApiTests.cs | 3 +-- tests/NSubstitute.Acceptance.Specs/MultipleThreads.cs | 3 --- tests/NSubstitute.Acceptance.Specs/NSubContainerTests.cs | 1 - .../NotASubstituteExceptions.cs | 1 - .../NullReferenceCheckingForSubstituteExtensions.cs | 1 - .../NSubstitute.Acceptance.Specs/OutAndRefParameters.cs | 1 - tests/NSubstitute.Acceptance.Specs/PartialSubExamples.cs | 4 +--- tests/NSubstitute.Acceptance.Specs/PartialSubs.cs | 3 +-- tests/NSubstitute.Acceptance.Specs/PerfTests.cs | 4 +--- tests/NSubstitute.Acceptance.Specs/PropertyBehaviour.cs | 1 - tests/NSubstitute.Acceptance.Specs/ReceivedCalls.cs | 2 -- tests/NSubstitute.Acceptance.Specs/ReturningResults.cs | 4 +--- tests/NSubstitute.Acceptance.Specs/ReturnsAndDoes.cs | 3 +-- tests/NSubstitute.Acceptance.Specs/ReturnsForAll.cs | 3 +-- .../ReturnsForAllFromFunc.cs | 3 +-- tests/NSubstitute.Acceptance.Specs/SequenceChecking.cs | 3 +-- .../SubbingForConcreteTypesAndMultipleInterfaces.cs | 1 - .../SubbingForEventHandler.cs | 1 - .../SubstituteTimingAndInteractions.cs | 1 - .../SubstitutingForDelegates.cs | 1 - .../ThrowingAsyncExceptions.cs | 3 --- tests/NSubstitute.Acceptance.Specs/ThrowingExceptions.cs | 3 +-- tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs | 2 -- 222 files changed, 105 insertions(+), 511 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index b01fb6974..14c7e56f3 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -8,6 +8,7 @@ true true latest + enable diff --git a/src/NSubstitute/Arg.cs b/src/NSubstitute/Arg.cs index b9714ee70..63716ca34 100644 --- a/src/NSubstitute/Arg.cs +++ b/src/NSubstitute/Arg.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; using NSubstitute.Core.Arguments; diff --git a/src/NSubstitute/Callback.cs b/src/NSubstitute/Callback.cs index 2d7f4dae2..b7d5e0cc6 100644 --- a/src/NSubstitute/Callback.cs +++ b/src/NSubstitute/Callback.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Concurrent; +using System.Collections.Concurrent; using NSubstitute.Callbacks; using NSubstitute.Core; diff --git a/src/NSubstitute/Callbacks/ConfiguredCallback.cs b/src/NSubstitute/Callbacks/ConfiguredCallback.cs index 0c32ad881..2ae2c0019 100644 --- a/src/NSubstitute/Callbacks/ConfiguredCallback.cs +++ b/src/NSubstitute/Callbacks/ConfiguredCallback.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; // Disable nullability for client API, so it does not affect clients. #nullable disable annotations diff --git a/src/NSubstitute/ClearOptions.cs b/src/NSubstitute/ClearOptions.cs index f0e3c2df6..3bc1e7ac8 100644 --- a/src/NSubstitute/ClearOptions.cs +++ b/src/NSubstitute/ClearOptions.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute +namespace NSubstitute { [Flags] public enum ClearOptions diff --git a/src/NSubstitute/Compatibility/CompatArg.cs b/src/NSubstitute/Compatibility/CompatArg.cs index 216c59418..4ea2cc272 100644 --- a/src/NSubstitute/Compatibility/CompatArg.cs +++ b/src/NSubstitute/Compatibility/CompatArg.cs @@ -1,5 +1,4 @@ -using System; -using System.Linq.Expressions; +using System.Linq.Expressions; // Disable nullability for client API, so it does not affect clients. #nullable disable annotations diff --git a/src/NSubstitute/Core/Argument.cs b/src/NSubstitute/Core/Argument.cs index 776033689..b8d594cc5 100644 --- a/src/NSubstitute/Core/Argument.cs +++ b/src/NSubstitute/Core/Argument.cs @@ -1,7 +1,4 @@ -using System; -using System.Reflection; - -namespace NSubstitute.Core +namespace NSubstitute.Core { public class Argument { diff --git a/src/NSubstitute/Core/ArgumentSpecificationDequeue.cs b/src/NSubstitute/Core/ArgumentSpecificationDequeue.cs index daf558e66..4ce507c64 100644 --- a/src/NSubstitute/Core/ArgumentSpecificationDequeue.cs +++ b/src/NSubstitute/Core/ArgumentSpecificationDequeue.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Reflection; +using System.Reflection; using NSubstitute.Core.Arguments; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/Arguments/AnyArgumentMatcher.cs b/src/NSubstitute/Core/Arguments/AnyArgumentMatcher.cs index 8e547a15a..903331327 100644 --- a/src/NSubstitute/Core/Arguments/AnyArgumentMatcher.cs +++ b/src/NSubstitute/Core/Arguments/AnyArgumentMatcher.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core.Arguments { public class AnyArgumentMatcher : IArgumentMatcher diff --git a/src/NSubstitute/Core/Arguments/ArgumentFormatter.cs b/src/NSubstitute/Core/Arguments/ArgumentFormatter.cs index 4b696f4c5..cf1491d67 100644 --- a/src/NSubstitute/Core/Arguments/ArgumentFormatter.cs +++ b/src/NSubstitute/Core/Arguments/ArgumentFormatter.cs @@ -1,7 +1,4 @@ -using System; -using System.Reflection; - -namespace NSubstitute.Core.Arguments +namespace NSubstitute.Core.Arguments { public class ArgumentFormatter : IArgumentFormatter { diff --git a/src/NSubstitute/Core/Arguments/ArgumentMatcher.cs b/src/NSubstitute/Core/Arguments/ArgumentMatcher.cs index 9887aa91d..a84168103 100644 --- a/src/NSubstitute/Core/Arguments/ArgumentMatcher.cs +++ b/src/NSubstitute/Core/Arguments/ArgumentMatcher.cs @@ -1,5 +1,3 @@ -using System; -using System.Diagnostics.CodeAnalysis; using NSubstitute.Exceptions; namespace NSubstitute.Core.Arguments diff --git a/src/NSubstitute/Core/Arguments/ArgumentSpecification.cs b/src/NSubstitute/Core/Arguments/ArgumentSpecification.cs index 4ede4524c..7f8cbf1c3 100644 --- a/src/NSubstitute/Core/Arguments/ArgumentSpecification.cs +++ b/src/NSubstitute/Core/Arguments/ArgumentSpecification.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core.Arguments { public class ArgumentSpecification : IArgumentSpecification diff --git a/src/NSubstitute/Core/Arguments/ArgumentSpecificationCompatibilityTester.cs b/src/NSubstitute/Core/Arguments/ArgumentSpecificationCompatibilityTester.cs index 6b4e2632b..3db39d2e9 100644 --- a/src/NSubstitute/Core/Arguments/ArgumentSpecificationCompatibilityTester.cs +++ b/src/NSubstitute/Core/Arguments/ArgumentSpecificationCompatibilityTester.cs @@ -1,7 +1,4 @@ -using System; -using System.Reflection; - -namespace NSubstitute.Core.Arguments +namespace NSubstitute.Core.Arguments { public class ArgumentSpecificationCompatibilityTester : IArgumentSpecificationCompatibilityTester { diff --git a/src/NSubstitute/Core/Arguments/ArgumentSpecificationFactory.cs b/src/NSubstitute/Core/Arguments/ArgumentSpecificationFactory.cs index 157cdf556..c1054b493 100644 --- a/src/NSubstitute/Core/Arguments/ArgumentSpecificationFactory.cs +++ b/src/NSubstitute/Core/Arguments/ArgumentSpecificationFactory.cs @@ -1,7 +1,3 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Linq; using NSubstitute.Exceptions; namespace NSubstitute.Core.Arguments diff --git a/src/NSubstitute/Core/Arguments/ArgumentSpecificationsFactory.cs b/src/NSubstitute/Core/Arguments/ArgumentSpecificationsFactory.cs index 3ad98ead3..093e9bbd5 100644 --- a/src/NSubstitute/Core/Arguments/ArgumentSpecificationsFactory.cs +++ b/src/NSubstitute/Core/Arguments/ArgumentSpecificationsFactory.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using System.Reflection; +using System.Reflection; using NSubstitute.Exceptions; namespace NSubstitute.Core.Arguments diff --git a/src/NSubstitute/Core/Arguments/ArrayContentsArgumentMatcher.cs b/src/NSubstitute/Core/Arguments/ArrayContentsArgumentMatcher.cs index 8b49dd437..1b9f873af 100644 --- a/src/NSubstitute/Core/Arguments/ArrayContentsArgumentMatcher.cs +++ b/src/NSubstitute/Core/Arguments/ArrayContentsArgumentMatcher.cs @@ -1,6 +1,4 @@ using System.Collections; -using System.Collections.Generic; -using System.Linq; namespace NSubstitute.Core.Arguments { diff --git a/src/NSubstitute/Core/Arguments/DefaultChecker.cs b/src/NSubstitute/Core/Arguments/DefaultChecker.cs index 05c6c77ba..b8d63e5b0 100644 --- a/src/NSubstitute/Core/Arguments/DefaultChecker.cs +++ b/src/NSubstitute/Core/Arguments/DefaultChecker.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace NSubstitute.Core.Arguments +namespace NSubstitute.Core.Arguments { public class DefaultChecker : IDefaultChecker { diff --git a/src/NSubstitute/Core/Arguments/EqualsArgumentMatcher.cs b/src/NSubstitute/Core/Arguments/EqualsArgumentMatcher.cs index 9f55272a3..60cacb5df 100644 --- a/src/NSubstitute/Core/Arguments/EqualsArgumentMatcher.cs +++ b/src/NSubstitute/Core/Arguments/EqualsArgumentMatcher.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace NSubstitute.Core.Arguments { public class EqualsArgumentMatcher : IArgumentMatcher diff --git a/src/NSubstitute/Core/Arguments/ExpressionArgumentMatcher.cs b/src/NSubstitute/Core/Arguments/ExpressionArgumentMatcher.cs index 6937ff581..acd6f63e1 100644 --- a/src/NSubstitute/Core/Arguments/ExpressionArgumentMatcher.cs +++ b/src/NSubstitute/Core/Arguments/ExpressionArgumentMatcher.cs @@ -1,4 +1,3 @@ -using System; using System.Linq.Expressions; namespace NSubstitute.Core.Arguments diff --git a/src/NSubstitute/Core/Arguments/IArgumentSpecification.cs b/src/NSubstitute/Core/Arguments/IArgumentSpecification.cs index dffa0a59d..5a3620e2c 100644 --- a/src/NSubstitute/Core/Arguments/IArgumentSpecification.cs +++ b/src/NSubstitute/Core/Arguments/IArgumentSpecification.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core.Arguments { public interface IArgumentSpecification diff --git a/src/NSubstitute/Core/Arguments/IArgumentSpecificationCompatibilityTester.cs b/src/NSubstitute/Core/Arguments/IArgumentSpecificationCompatibilityTester.cs index cf4f517cf..facaf8434 100644 --- a/src/NSubstitute/Core/Arguments/IArgumentSpecificationCompatibilityTester.cs +++ b/src/NSubstitute/Core/Arguments/IArgumentSpecificationCompatibilityTester.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Core.Arguments +namespace NSubstitute.Core.Arguments { public interface IArgumentSpecificationCompatibilityTester { diff --git a/src/NSubstitute/Core/Arguments/IArgumentSpecificationsFactory.cs b/src/NSubstitute/Core/Arguments/IArgumentSpecificationsFactory.cs index b846ad875..beae80fe2 100644 --- a/src/NSubstitute/Core/Arguments/IArgumentSpecificationsFactory.cs +++ b/src/NSubstitute/Core/Arguments/IArgumentSpecificationsFactory.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Reflection; namespace NSubstitute.Core.Arguments diff --git a/src/NSubstitute/Core/Arguments/IDefaultChecker.cs b/src/NSubstitute/Core/Arguments/IDefaultChecker.cs index b250d6e80..1749cccf3 100644 --- a/src/NSubstitute/Core/Arguments/IDefaultChecker.cs +++ b/src/NSubstitute/Core/Arguments/IDefaultChecker.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Core.Arguments +namespace NSubstitute.Core.Arguments { public interface IDefaultChecker { diff --git a/src/NSubstitute/Core/Arguments/ISuppliedArgumentSpecifications.cs b/src/NSubstitute/Core/Arguments/ISuppliedArgumentSpecifications.cs index 56e510962..cad2bd16b 100644 --- a/src/NSubstitute/Core/Arguments/ISuppliedArgumentSpecifications.cs +++ b/src/NSubstitute/Core/Arguments/ISuppliedArgumentSpecifications.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace NSubstitute.Core.Arguments { public interface ISuppliedArgumentSpecifications diff --git a/src/NSubstitute/Core/Arguments/ISuppliedArgumentSpecificationsFactory.cs b/src/NSubstitute/Core/Arguments/ISuppliedArgumentSpecificationsFactory.cs index 8688babc0..c58de88b2 100644 --- a/src/NSubstitute/Core/Arguments/ISuppliedArgumentSpecificationsFactory.cs +++ b/src/NSubstitute/Core/Arguments/ISuppliedArgumentSpecificationsFactory.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace NSubstitute.Core.Arguments { public interface ISuppliedArgumentSpecificationsFactory diff --git a/src/NSubstitute/Core/Arguments/SuppliedArgumentSpecifications.cs b/src/NSubstitute/Core/Arguments/SuppliedArgumentSpecifications.cs index 6132b47ed..6144b91c8 100644 --- a/src/NSubstitute/Core/Arguments/SuppliedArgumentSpecifications.cs +++ b/src/NSubstitute/Core/Arguments/SuppliedArgumentSpecifications.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace NSubstitute.Core.Arguments +namespace NSubstitute.Core.Arguments { public class SuppliedArgumentSpecifications : ISuppliedArgumentSpecifications { diff --git a/src/NSubstitute/Core/Arguments/SuppliedArgumentSpecificationsFactory.cs b/src/NSubstitute/Core/Arguments/SuppliedArgumentSpecificationsFactory.cs index e584e7090..53cfd4419 100644 --- a/src/NSubstitute/Core/Arguments/SuppliedArgumentSpecificationsFactory.cs +++ b/src/NSubstitute/Core/Arguments/SuppliedArgumentSpecificationsFactory.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace NSubstitute.Core.Arguments +namespace NSubstitute.Core.Arguments { public class SuppliedArgumentSpecificationsFactory : ISuppliedArgumentSpecificationsFactory { diff --git a/src/NSubstitute/Core/Call.cs b/src/NSubstitute/Core/Call.cs index 2e9f339a6..5eae11ad3 100644 --- a/src/NSubstitute/Core/Call.cs +++ b/src/NSubstitute/Core/Call.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Threading; using NSubstitute.Core.Arguments; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Core/CallActions.cs b/src/NSubstitute/Core/CallActions.cs index 803486322..a78b2b9f8 100644 --- a/src/NSubstitute/Core/CallActions.cs +++ b/src/NSubstitute/Core/CallActions.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Concurrent; +using System.Collections.Concurrent; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/CallBaseConfiguration.cs b/src/NSubstitute/Core/CallBaseConfiguration.cs index 8df6b5dc0..19a2de5ca 100644 --- a/src/NSubstitute/Core/CallBaseConfiguration.cs +++ b/src/NSubstitute/Core/CallBaseConfiguration.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Concurrent; +using System.Collections.Concurrent; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/CallCollection.cs b/src/NSubstitute/Core/CallCollection.cs index fa1797955..5260d015f 100644 --- a/src/NSubstitute/Core/CallCollection.cs +++ b/src/NSubstitute/Core/CallCollection.cs @@ -1,7 +1,5 @@ using System.Collections.Concurrent; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using NSubstitute.Exceptions; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/CallFactory.cs b/src/NSubstitute/Core/CallFactory.cs index 12f037145..9f4741b9c 100644 --- a/src/NSubstitute/Core/CallFactory.cs +++ b/src/NSubstitute/Core/CallFactory.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; +using System.Reflection; using NSubstitute.Core.Arguments; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/CallFormatter.cs b/src/NSubstitute/Core/CallFormatter.cs index 5f46b24e1..11f64c973 100644 --- a/src/NSubstitute/Core/CallFormatter.cs +++ b/src/NSubstitute/Core/CallFormatter.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using System.Reflection; +using System.Reflection; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/CallInfo.cs b/src/NSubstitute/Core/CallInfo.cs index 5994ceb6c..2635ab0ad 100644 --- a/src/NSubstitute/Core/CallInfo.cs +++ b/src/NSubstitute/Core/CallInfo.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using NSubstitute.Exceptions; // Disable nullability for entry-point API diff --git a/src/NSubstitute/Core/CallRouter.cs b/src/NSubstitute/Core/CallRouter.cs index 0ba11495f..9eba0e14e 100644 --- a/src/NSubstitute/Core/CallRouter.cs +++ b/src/NSubstitute/Core/CallRouter.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NSubstitute.Exceptions; using NSubstitute.Routing; diff --git a/src/NSubstitute/Core/CallRouterFactory.cs b/src/NSubstitute/Core/CallRouterFactory.cs index 0fc205cb9..ed4959b91 100644 --- a/src/NSubstitute/Core/CallRouterFactory.cs +++ b/src/NSubstitute/Core/CallRouterFactory.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Routing; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/CallRouterResolver.cs b/src/NSubstitute/Core/CallRouterResolver.cs index 97fb6e154..5adac6f95 100644 --- a/src/NSubstitute/Core/CallRouterResolver.cs +++ b/src/NSubstitute/Core/CallRouterResolver.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Exceptions; +using NSubstitute.Exceptions; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/CallSpecification.cs b/src/NSubstitute/Core/CallSpecification.cs index 97c1f7a44..32660cb62 100644 --- a/src/NSubstitute/Core/CallSpecification.cs +++ b/src/NSubstitute/Core/CallSpecification.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using NSubstitute.Core.Arguments; diff --git a/src/NSubstitute/Core/CallSpecificationFactoryFactoryYesThatsRight.cs b/src/NSubstitute/Core/CallSpecificationFactoryFactoryYesThatsRight.cs index 4325edb90..b47483d14 100644 --- a/src/NSubstitute/Core/CallSpecificationFactoryFactoryYesThatsRight.cs +++ b/src/NSubstitute/Core/CallSpecificationFactoryFactoryYesThatsRight.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core.DependencyInjection; +using NSubstitute.Core.DependencyInjection; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/ConfiguredCall.cs b/src/NSubstitute/Core/ConfiguredCall.cs index dea8db361..c261a30fb 100644 --- a/src/NSubstitute/Core/ConfiguredCall.cs +++ b/src/NSubstitute/Core/ConfiguredCall.cs @@ -1,6 +1,4 @@ -using System; - -// Disable nullability for entry-point API +// Disable nullability for entry-point API #nullable disable annotations namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/CustomHandlers.cs b/src/NSubstitute/Core/CustomHandlers.cs index b1ece2f85..c601ae405 100644 --- a/src/NSubstitute/Core/CustomHandlers.cs +++ b/src/NSubstitute/Core/CustomHandlers.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace NSubstitute.Core +namespace NSubstitute.Core { public class CustomHandlers : ICustomHandlers { diff --git a/src/NSubstitute/Core/DefaultForType.cs b/src/NSubstitute/Core/DefaultForType.cs index 881eb42af..37fa851bf 100644 --- a/src/NSubstitute/Core/DefaultForType.cs +++ b/src/NSubstitute/Core/DefaultForType.cs @@ -1,5 +1,4 @@ -using System; -using System.Reflection; +using System.Reflection; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/DependencyInjection/INSubContainer.cs b/src/NSubstitute/Core/DependencyInjection/INSubContainer.cs index ea31db78a..f456261fb 100644 --- a/src/NSubstitute/Core/DependencyInjection/INSubContainer.cs +++ b/src/NSubstitute/Core/DependencyInjection/INSubContainer.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core.DependencyInjection { public interface INSubResolver diff --git a/src/NSubstitute/Core/DependencyInjection/NSubContainer.cs b/src/NSubstitute/Core/DependencyInjection/NSubContainer.cs index 1263dfc2e..88a6619bf 100644 --- a/src/NSubstitute/Core/DependencyInjection/NSubContainer.cs +++ b/src/NSubstitute/Core/DependencyInjection/NSubContainer.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Reflection; namespace NSubstitute.Core.DependencyInjection { diff --git a/src/NSubstitute/Core/EventCallFormatter.cs b/src/NSubstitute/Core/EventCallFormatter.cs index d0321d3c8..57f380e71 100644 --- a/src/NSubstitute/Core/EventCallFormatter.cs +++ b/src/NSubstitute/Core/EventCallFormatter.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; +using System.Reflection; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/EventHandlerRegistry.cs b/src/NSubstitute/Core/EventHandlerRegistry.cs index 1eb1a9c34..be25e656b 100644 --- a/src/NSubstitute/Core/EventHandlerRegistry.cs +++ b/src/NSubstitute/Core/EventHandlerRegistry.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; - namespace NSubstitute.Core { public class EventHandlerRegistry : IEventHandlerRegistry diff --git a/src/NSubstitute/Core/Events/DelegateEventWrapper.cs b/src/NSubstitute/Core/Events/DelegateEventWrapper.cs index 66d8ec060..bba465825 100644 --- a/src/NSubstitute/Core/Events/DelegateEventWrapper.cs +++ b/src/NSubstitute/Core/Events/DelegateEventWrapper.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Reflection; namespace NSubstitute.Core.Events diff --git a/src/NSubstitute/Core/Events/EventHandlerWrapper.cs b/src/NSubstitute/Core/Events/EventHandlerWrapper.cs index c143223d6..1c84ab10b 100644 --- a/src/NSubstitute/Core/Events/EventHandlerWrapper.cs +++ b/src/NSubstitute/Core/Events/EventHandlerWrapper.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core.Events { public class EventHandlerWrapper : RaiseEventWrapper where TEventArgs : EventArgs diff --git a/src/NSubstitute/Core/Events/RaiseEventWrapper.cs b/src/NSubstitute/Core/Events/RaiseEventWrapper.cs index 120e9c8e6..a49aad93b 100644 --- a/src/NSubstitute/Core/Events/RaiseEventWrapper.cs +++ b/src/NSubstitute/Core/Events/RaiseEventWrapper.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Core/Extensions.cs b/src/NSubstitute/Core/Extensions.cs index 492233a65..1778e4344 100644 --- a/src/NSubstitute/Core/Extensions.cs +++ b/src/NSubstitute/Core/Extensions.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Text; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Core/GetCallSpec.cs b/src/NSubstitute/Core/GetCallSpec.cs index 98a810d55..b2c0bd0de 100644 --- a/src/NSubstitute/Core/GetCallSpec.cs +++ b/src/NSubstitute/Core/GetCallSpec.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Core +namespace NSubstitute.Core { public class GetCallSpec : IGetCallSpec { diff --git a/src/NSubstitute/Core/IArgumentSpecificationDequeue.cs b/src/NSubstitute/Core/IArgumentSpecificationDequeue.cs index 5d62ac4f9..9a20abffc 100644 --- a/src/NSubstitute/Core/IArgumentSpecificationDequeue.cs +++ b/src/NSubstitute/Core/IArgumentSpecificationDequeue.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Reflection; +using System.Reflection; using NSubstitute.Core.Arguments; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/ICall.cs b/src/NSubstitute/Core/ICall.cs index 18bd3c6ef..75ace00e1 100644 --- a/src/NSubstitute/Core/ICall.cs +++ b/src/NSubstitute/Core/ICall.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Reflection; using NSubstitute.Core.Arguments; diff --git a/src/NSubstitute/Core/ICallActions.cs b/src/NSubstitute/Core/ICallActions.cs index 99a13116c..51c158e1c 100644 --- a/src/NSubstitute/Core/ICallActions.cs +++ b/src/NSubstitute/Core/ICallActions.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core { public interface ICallActions diff --git a/src/NSubstitute/Core/ICallCollection.cs b/src/NSubstitute/Core/ICallCollection.cs index d39bd2695..6140249dd 100644 --- a/src/NSubstitute/Core/ICallCollection.cs +++ b/src/NSubstitute/Core/ICallCollection.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace NSubstitute.Core { public interface ICallCollection diff --git a/src/NSubstitute/Core/ICallFactory.cs b/src/NSubstitute/Core/ICallFactory.cs index b6e7fad12..4db0eee80 100644 --- a/src/NSubstitute/Core/ICallFactory.cs +++ b/src/NSubstitute/Core/ICallFactory.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Reflection; +using System.Reflection; using NSubstitute.Core.Arguments; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/ICallRouter.cs b/src/NSubstitute/Core/ICallRouter.cs index d825417c8..baa630e6e 100644 --- a/src/NSubstitute/Core/ICallRouter.cs +++ b/src/NSubstitute/Core/ICallRouter.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NSubstitute.Routing; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/ICallSpecification.cs b/src/NSubstitute/Core/ICallSpecification.cs index 7acf1d1e1..000e60a51 100644 --- a/src/NSubstitute/Core/ICallSpecification.cs +++ b/src/NSubstitute/Core/ICallSpecification.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using System.Reflection; using NSubstitute.Core.Arguments; diff --git a/src/NSubstitute/Core/ICustomHandlers.cs b/src/NSubstitute/Core/ICustomHandlers.cs index d145dcc49..f8ab94603 100644 --- a/src/NSubstitute/Core/ICustomHandlers.cs +++ b/src/NSubstitute/Core/ICustomHandlers.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace NSubstitute.Core +namespace NSubstitute.Core { /// /// Factory method which creates from the . diff --git a/src/NSubstitute/Core/IDefaultForType.cs b/src/NSubstitute/Core/IDefaultForType.cs index c3260b2d9..945c7b71b 100644 --- a/src/NSubstitute/Core/IDefaultForType.cs +++ b/src/NSubstitute/Core/IDefaultForType.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core { public interface IDefaultForType diff --git a/src/NSubstitute/Core/IEventHandlerRegistry.cs b/src/NSubstitute/Core/IEventHandlerRegistry.cs index a79b582ed..973635c71 100644 --- a/src/NSubstitute/Core/IEventHandlerRegistry.cs +++ b/src/NSubstitute/Core/IEventHandlerRegistry.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace NSubstitute.Core { public interface IEventHandlerRegistry diff --git a/src/NSubstitute/Core/IMethodInfoFormatter.cs b/src/NSubstitute/Core/IMethodInfoFormatter.cs index b001564e5..d9028a141 100644 --- a/src/NSubstitute/Core/IMethodInfoFormatter.cs +++ b/src/NSubstitute/Core/IMethodInfoFormatter.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using System.Reflection; +using System.Reflection; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/IParameterInfo.cs b/src/NSubstitute/Core/IParameterInfo.cs index 4b4979f8c..b00da0aa3 100644 --- a/src/NSubstitute/Core/IParameterInfo.cs +++ b/src/NSubstitute/Core/IParameterInfo.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Core +namespace NSubstitute.Core { public interface IParameterInfo { diff --git a/src/NSubstitute/Core/IProxyFactory.cs b/src/NSubstitute/Core/IProxyFactory.cs index c046cebf4..c03708151 100644 --- a/src/NSubstitute/Core/IProxyFactory.cs +++ b/src/NSubstitute/Core/IProxyFactory.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core { public interface IProxyFactory diff --git a/src/NSubstitute/Core/IQueryResults.cs b/src/NSubstitute/Core/IQueryResults.cs index 53080701a..55f74bf76 100644 --- a/src/NSubstitute/Core/IQueryResults.cs +++ b/src/NSubstitute/Core/IQueryResults.cs @@ -1,5 +1,3 @@ -using System.Collections.Generic; - namespace NSubstitute.Core { public interface IQueryResults diff --git a/src/NSubstitute/Core/IReceivedCallsExceptionThrower.cs b/src/NSubstitute/Core/IReceivedCallsExceptionThrower.cs index a518d0c0e..e06d42629 100644 --- a/src/NSubstitute/Core/IReceivedCallsExceptionThrower.cs +++ b/src/NSubstitute/Core/IReceivedCallsExceptionThrower.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using NSubstitute.ReceivedExtensions; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/IResultsForType.cs b/src/NSubstitute/Core/IResultsForType.cs index 7a47c8fe2..ceebb4f7f 100644 --- a/src/NSubstitute/Core/IResultsForType.cs +++ b/src/NSubstitute/Core/IResultsForType.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Core +namespace NSubstitute.Core { public interface IResultsForType { diff --git a/src/NSubstitute/Core/IReturn.cs b/src/NSubstitute/Core/IReturn.cs index fc34c3bf3..aefb6d676 100644 --- a/src/NSubstitute/Core/IReturn.cs +++ b/src/NSubstitute/Core/IReturn.cs @@ -1,7 +1,4 @@ -using System; using System.Collections.Concurrent; -using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Reflection; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Core/ISubstituteFactory.cs b/src/NSubstitute/Core/ISubstituteFactory.cs index 01b8c5422..eb8c08cd1 100644 --- a/src/NSubstitute/Core/ISubstituteFactory.cs +++ b/src/NSubstitute/Core/ISubstituteFactory.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Core { public interface ISubstituteFactory diff --git a/src/NSubstitute/Core/ISubstituteState.cs b/src/NSubstitute/Core/ISubstituteState.cs index 59b3a306c..5fc6ed12a 100644 --- a/src/NSubstitute/Core/ISubstituteState.cs +++ b/src/NSubstitute/Core/ISubstituteState.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using NSubstitute.Routing.AutoValues; +using NSubstitute.Routing.AutoValues; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/ISubstitutionContext.cs b/src/NSubstitute/Core/ISubstitutionContext.cs index e4db98d15..0f1294e2d 100644 --- a/src/NSubstitute/Core/ISubstitutionContext.cs +++ b/src/NSubstitute/Core/ISubstitutionContext.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NSubstitute.Core.Arguments; using NSubstitute.Routing; diff --git a/src/NSubstitute/Core/IThreadLocalContext.cs b/src/NSubstitute/Core/IThreadLocalContext.cs index d236d2440..23ef8b4a5 100644 --- a/src/NSubstitute/Core/IThreadLocalContext.cs +++ b/src/NSubstitute/Core/IThreadLocalContext.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NSubstitute.Core.Arguments; using NSubstitute.Routing; diff --git a/src/NSubstitute/Core/Maybe.cs b/src/NSubstitute/Core/Maybe.cs index f571ba12f..71329cd3f 100644 --- a/src/NSubstitute/Core/Maybe.cs +++ b/src/NSubstitute/Core/Maybe.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics.CodeAnalysis; +using System.Collections; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/MethodFormatter.cs b/src/NSubstitute/Core/MethodFormatter.cs index 09146cf73..9aff844e6 100644 --- a/src/NSubstitute/Core/MethodFormatter.cs +++ b/src/NSubstitute/Core/MethodFormatter.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using System.Reflection; +using System.Reflection; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/ParameterInfoWrapper.cs b/src/NSubstitute/Core/ParameterInfoWrapper.cs index 332ab82dd..2e45106f9 100644 --- a/src/NSubstitute/Core/ParameterInfoWrapper.cs +++ b/src/NSubstitute/Core/ParameterInfoWrapper.cs @@ -1,5 +1,4 @@ -using System; -using System.Reflection; +using System.Reflection; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/PendingSpecificationInfo.cs b/src/NSubstitute/Core/PendingSpecificationInfo.cs index 23e253005..bca46498d 100644 --- a/src/NSubstitute/Core/PendingSpecificationInfo.cs +++ b/src/NSubstitute/Core/PendingSpecificationInfo.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Core +namespace NSubstitute.Core { public class PendingSpecificationInfo { diff --git a/src/NSubstitute/Core/PropertyCallFormatter.cs b/src/NSubstitute/Core/PropertyCallFormatter.cs index 28547ad0d..885194483 100644 --- a/src/NSubstitute/Core/PropertyCallFormatter.cs +++ b/src/NSubstitute/Core/PropertyCallFormatter.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using System.Reflection; +using System.Reflection; using NSubstitute.Exceptions; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/PropertyHelper.cs b/src/NSubstitute/Core/PropertyHelper.cs index cc76b5cea..25ffc2a6b 100644 --- a/src/NSubstitute/Core/PropertyHelper.cs +++ b/src/NSubstitute/Core/PropertyHelper.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Reflection; using NSubstitute.Core.Arguments; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Core/Query.cs b/src/NSubstitute/Core/Query.cs index 86bb82c1d..c2848fd76 100644 --- a/src/NSubstitute/Core/Query.cs +++ b/src/NSubstitute/Core/Query.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace NSubstitute.Core +namespace NSubstitute.Core { public class Query : IQuery, IQueryResults { diff --git a/src/NSubstitute/Core/ReceivedCallsExceptionThrower.cs b/src/NSubstitute/Core/ReceivedCallsExceptionThrower.cs index 3cc4265fe..2d7d33479 100644 --- a/src/NSubstitute/Core/ReceivedCallsExceptionThrower.cs +++ b/src/NSubstitute/Core/ReceivedCallsExceptionThrower.cs @@ -1,7 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using System.Text; -using NSubstitute.Core.Arguments; +using System.Text; using NSubstitute.Exceptions; using NSubstitute.ReceivedExtensions; diff --git a/src/NSubstitute/Core/ReflectionExtensions.cs b/src/NSubstitute/Core/ReflectionExtensions.cs index ba8b68132..a64c9ac60 100644 --- a/src/NSubstitute/Core/ReflectionExtensions.cs +++ b/src/NSubstitute/Core/ReflectionExtensions.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Reflection; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/ResultsForType.cs b/src/NSubstitute/Core/ResultsForType.cs index 0da23870b..5a6bf4e2f 100644 --- a/src/NSubstitute/Core/ResultsForType.cs +++ b/src/NSubstitute/Core/ResultsForType.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Reflection; +using System.Reflection; using NSubstitute.Core.Arguments; namespace NSubstitute.Core diff --git a/src/NSubstitute/Core/ReturnObservable.cs b/src/NSubstitute/Core/ReturnObservable.cs index 7b854cc6f..57f204c2f 100644 --- a/src/NSubstitute/Core/ReturnObservable.cs +++ b/src/NSubstitute/Core/ReturnObservable.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Core +namespace NSubstitute.Core { internal class ReturnObservable : IObservable { diff --git a/src/NSubstitute/Core/RobustThreadLocal.cs b/src/NSubstitute/Core/RobustThreadLocal.cs index f6288c527..8e9a0da09 100644 --- a/src/NSubstitute/Core/RobustThreadLocal.cs +++ b/src/NSubstitute/Core/RobustThreadLocal.cs @@ -1,8 +1,4 @@ -using System; -using System.Diagnostics.CodeAnalysis; -using System.Threading; - -namespace NSubstitute.Core +namespace NSubstitute.Core { /// /// Delegates to ThreadLocal<T>, but wraps Value property access in try/catch to swallow ObjectDisposedExceptions. diff --git a/src/NSubstitute/Core/RouteFactoryCacheWrapper.cs b/src/NSubstitute/Core/RouteFactoryCacheWrapper.cs index 4411616cd..df277e3d2 100644 --- a/src/NSubstitute/Core/RouteFactoryCacheWrapper.cs +++ b/src/NSubstitute/Core/RouteFactoryCacheWrapper.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.ReceivedExtensions; using NSubstitute.Routing; diff --git a/src/NSubstitute/Core/SequenceChecking/InstanceTracker.cs b/src/NSubstitute/Core/SequenceChecking/InstanceTracker.cs index 99649adf7..f62207465 100644 --- a/src/NSubstitute/Core/SequenceChecking/InstanceTracker.cs +++ b/src/NSubstitute/Core/SequenceChecking/InstanceTracker.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using System.Runtime.CompilerServices; namespace NSubstitute.Core.SequenceChecking diff --git a/src/NSubstitute/Core/SequenceChecking/SequenceFormatter.cs b/src/NSubstitute/Core/SequenceChecking/SequenceFormatter.cs index 5c8d20e9b..9bf036629 100644 --- a/src/NSubstitute/Core/SequenceChecking/SequenceFormatter.cs +++ b/src/NSubstitute/Core/SequenceChecking/SequenceFormatter.cs @@ -1,7 +1,4 @@ -using System; using System.Collections; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using NSubstitute.Core.Arguments; diff --git a/src/NSubstitute/Core/SequenceChecking/SequenceInOrderAssertion.cs b/src/NSubstitute/Core/SequenceChecking/SequenceInOrderAssertion.cs index 1573a15fe..cdf41b05a 100644 --- a/src/NSubstitute/Core/SequenceChecking/SequenceInOrderAssertion.cs +++ b/src/NSubstitute/Core/SequenceChecking/SequenceInOrderAssertion.cs @@ -1,4 +1,3 @@ -using System.Linq; using System.Reflection; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Core/SequenceNumberGenerator.cs b/src/NSubstitute/Core/SequenceNumberGenerator.cs index 829696057..6930e595b 100644 --- a/src/NSubstitute/Core/SequenceNumberGenerator.cs +++ b/src/NSubstitute/Core/SequenceNumberGenerator.cs @@ -1,6 +1,4 @@ -using System.Threading; - -namespace NSubstitute.Core +namespace NSubstitute.Core { public class SequenceNumberGenerator { diff --git a/src/NSubstitute/Core/SubstituteFactory.cs b/src/NSubstitute/Core/SubstituteFactory.cs index 3f67b3592..c67bb7bdc 100644 --- a/src/NSubstitute/Core/SubstituteFactory.cs +++ b/src/NSubstitute/Core/SubstituteFactory.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Reflection; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Core/SubstituteState.cs b/src/NSubstitute/Core/SubstituteState.cs index dd7e61c79..ad4f5ac35 100644 --- a/src/NSubstitute/Core/SubstituteState.cs +++ b/src/NSubstitute/Core/SubstituteState.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using NSubstitute.Routing.AutoValues; +using NSubstitute.Routing.AutoValues; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/SubstituteStateFactory.cs b/src/NSubstitute/Core/SubstituteStateFactory.cs index 32643fa73..b50e717c9 100644 --- a/src/NSubstitute/Core/SubstituteStateFactory.cs +++ b/src/NSubstitute/Core/SubstituteStateFactory.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Routing.AutoValues; +using NSubstitute.Routing.AutoValues; namespace NSubstitute.Core { diff --git a/src/NSubstitute/Core/SubstitutionContext.cs b/src/NSubstitute/Core/SubstitutionContext.cs index 8b1320ee3..20e40177e 100644 --- a/src/NSubstitute/Core/SubstitutionContext.cs +++ b/src/NSubstitute/Core/SubstitutionContext.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NSubstitute.Core.Arguments; using NSubstitute.Core.DependencyInjection; using NSubstitute.Routing; diff --git a/src/NSubstitute/Core/ThreadLocalContext.cs b/src/NSubstitute/Core/ThreadLocalContext.cs index a916ee035..614a82198 100644 --- a/src/NSubstitute/Core/ThreadLocalContext.cs +++ b/src/NSubstitute/Core/ThreadLocalContext.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using NSubstitute.Core.Arguments; +using NSubstitute.Core.Arguments; using NSubstitute.Exceptions; using NSubstitute.Routing; diff --git a/src/NSubstitute/Core/WhenCalled.cs b/src/NSubstitute/Core/WhenCalled.cs index fbc80c24d..38c2f6020 100644 --- a/src/NSubstitute/Core/WhenCalled.cs +++ b/src/NSubstitute/Core/WhenCalled.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Routing; // Disable nullability for entry-point API diff --git a/src/NSubstitute/Exceptions/AmbiguousArgumentsException.cs b/src/NSubstitute/Exceptions/AmbiguousArgumentsException.cs index e8b5cc855..12b16e154 100644 --- a/src/NSubstitute/Exceptions/AmbiguousArgumentsException.cs +++ b/src/NSubstitute/Exceptions/AmbiguousArgumentsException.cs @@ -1,6 +1,4 @@ using System.Collections; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Text; using NSubstitute.Core; diff --git a/src/NSubstitute/Exceptions/ArgumentIsNotOutOrRefException.cs b/src/NSubstitute/Exceptions/ArgumentIsNotOutOrRefException.cs index a483c59d0..5e41c9b07 100644 --- a/src/NSubstitute/Exceptions/ArgumentIsNotOutOrRefException.cs +++ b/src/NSubstitute/Exceptions/ArgumentIsNotOutOrRefException.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Exceptions { public class ArgumentIsNotOutOrRefException : SubstituteException diff --git a/src/NSubstitute/Exceptions/ArgumentSetWithIncompatibleValueException.cs b/src/NSubstitute/Exceptions/ArgumentSetWithIncompatibleValueException.cs index 91e84e52f..f09974c47 100644 --- a/src/NSubstitute/Exceptions/ArgumentSetWithIncompatibleValueException.cs +++ b/src/NSubstitute/Exceptions/ArgumentSetWithIncompatibleValueException.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Exceptions +namespace NSubstitute.Exceptions { public class ArgumentSetWithIncompatibleValueException : SubstituteException { diff --git a/src/NSubstitute/Exceptions/CanNotPartiallySubForInterfaceOrDelegateException.cs b/src/NSubstitute/Exceptions/CanNotPartiallySubForInterfaceOrDelegateException.cs index e42a6c356..2494c8b5b 100644 --- a/src/NSubstitute/Exceptions/CanNotPartiallySubForInterfaceOrDelegateException.cs +++ b/src/NSubstitute/Exceptions/CanNotPartiallySubForInterfaceOrDelegateException.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Exceptions { public class CanNotPartiallySubForInterfaceOrDelegateException : SubstituteException diff --git a/src/NSubstitute/Exceptions/CannotCreateEventArgsException.cs b/src/NSubstitute/Exceptions/CannotCreateEventArgsException.cs index b0827e523..d0bc9cfd9 100644 --- a/src/NSubstitute/Exceptions/CannotCreateEventArgsException.cs +++ b/src/NSubstitute/Exceptions/CannotCreateEventArgsException.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Exceptions { public class CannotCreateEventArgsException : SubstituteException diff --git a/src/NSubstitute/Exceptions/CannotReturnNullforValueType.cs b/src/NSubstitute/Exceptions/CannotReturnNullforValueType.cs index 8c3ad10de..370d8b2b1 100644 --- a/src/NSubstitute/Exceptions/CannotReturnNullforValueType.cs +++ b/src/NSubstitute/Exceptions/CannotReturnNullforValueType.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Exceptions +namespace NSubstitute.Exceptions { public class CannotReturnNullForValueType : SubstituteException { diff --git a/src/NSubstitute/Exceptions/CouldNotSetReturnException.cs b/src/NSubstitute/Exceptions/CouldNotSetReturnException.cs index a1f33510a..35db62e7e 100644 --- a/src/NSubstitute/Exceptions/CouldNotSetReturnException.cs +++ b/src/NSubstitute/Exceptions/CouldNotSetReturnException.cs @@ -1,5 +1,4 @@ -using System; -using System.Reflection; +using System.Reflection; namespace NSubstitute.Exceptions { diff --git a/src/NSubstitute/Exceptions/ReceivedCallsException.cs b/src/NSubstitute/Exceptions/ReceivedCallsException.cs index d106118f6..17503d539 100644 --- a/src/NSubstitute/Exceptions/ReceivedCallsException.cs +++ b/src/NSubstitute/Exceptions/ReceivedCallsException.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Exceptions { public class ReceivedCallsException : SubstituteException diff --git a/src/NSubstitute/Exceptions/RedundantArgumentMatcherException.cs b/src/NSubstitute/Exceptions/RedundantArgumentMatcherException.cs index baa6bdeb8..5f2304c62 100644 --- a/src/NSubstitute/Exceptions/RedundantArgumentMatcherException.cs +++ b/src/NSubstitute/Exceptions/RedundantArgumentMatcherException.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using NSubstitute.Core.Arguments; +using NSubstitute.Core.Arguments; using static System.Environment; namespace NSubstitute.Exceptions diff --git a/src/NSubstitute/Exceptions/SubstituteException.cs b/src/NSubstitute/Exceptions/SubstituteException.cs index 500794daa..61b9f00fe 100644 --- a/src/NSubstitute/Exceptions/SubstituteException.cs +++ b/src/NSubstitute/Exceptions/SubstituteException.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Exceptions { public class SubstituteException : Exception diff --git a/src/NSubstitute/Exceptions/SubstituteInternalException.cs b/src/NSubstitute/Exceptions/SubstituteInternalException.cs index 4bef21a54..4c35d2344 100644 --- a/src/NSubstitute/Exceptions/SubstituteInternalException.cs +++ b/src/NSubstitute/Exceptions/SubstituteInternalException.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Exceptions { diff --git a/src/NSubstitute/Exceptions/UnexpectedArgumentMatcherException.cs b/src/NSubstitute/Exceptions/UnexpectedArgumentMatcherException.cs index c22f92b51..3b89541e4 100644 --- a/src/NSubstitute/Exceptions/UnexpectedArgumentMatcherException.cs +++ b/src/NSubstitute/Exceptions/UnexpectedArgumentMatcherException.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Exceptions { public class UnexpectedArgumentMatcherException : SubstituteException diff --git a/src/NSubstitute/Extensions/ClearExtensions.cs b/src/NSubstitute/Extensions/ClearExtensions.cs index ae4e83afc..f86755bf8 100644 --- a/src/NSubstitute/Extensions/ClearExtensions.cs +++ b/src/NSubstitute/Extensions/ClearExtensions.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.Exceptions; // Disable nullability for client API, so it does not affect clients. diff --git a/src/NSubstitute/Extensions/ConfigurationExtensions.cs b/src/NSubstitute/Extensions/ConfigurationExtensions.cs index 5bebd4ed4..1680e83cf 100644 --- a/src/NSubstitute/Extensions/ConfigurationExtensions.cs +++ b/src/NSubstitute/Extensions/ConfigurationExtensions.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.Exceptions; // Disable nullability for client API, so it does not affect clients. diff --git a/src/NSubstitute/Extensions/ExceptionExtensions.cs b/src/NSubstitute/Extensions/ExceptionExtensions.cs index 30f4f4ed7..46cf03e9e 100644 --- a/src/NSubstitute/Extensions/ExceptionExtensions.cs +++ b/src/NSubstitute/Extensions/ExceptionExtensions.cs @@ -1,8 +1,5 @@ using NSubstitute.Core; -using System; -using System.Linq; using System.Reflection; -using System.Threading.Tasks; // Disable nullability for client API, so it does not affect clients. #nullable disable annotations diff --git a/src/NSubstitute/Extensions/ReceivedExtensions.cs b/src/NSubstitute/Extensions/ReceivedExtensions.cs index 0d2502d07..96c7f0bb2 100644 --- a/src/NSubstitute/Extensions/ReceivedExtensions.cs +++ b/src/NSubstitute/Extensions/ReceivedExtensions.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.Exceptions; // Disable nullability for client API, so it does not affect clients. diff --git a/src/NSubstitute/Extensions/ReturnsExtensions.cs b/src/NSubstitute/Extensions/ReturnsExtensions.cs index 29d5b82c8..d56214916 100644 --- a/src/NSubstitute/Extensions/ReturnsExtensions.cs +++ b/src/NSubstitute/Extensions/ReturnsExtensions.cs @@ -1,5 +1,4 @@ -using System.Threading.Tasks; -using NSubstitute.Core; +using NSubstitute.Core; // Disable nullability for client API, so it does not affect clients. #nullable disable annotations diff --git a/src/NSubstitute/Extensions/ReturnsForAllExtensions.cs b/src/NSubstitute/Extensions/ReturnsForAllExtensions.cs index 302033d4c..546c92bcf 100644 --- a/src/NSubstitute/Extensions/ReturnsForAllExtensions.cs +++ b/src/NSubstitute/Extensions/ReturnsForAllExtensions.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.Exceptions; // Disable nullability for client API, so it does not affect clients. diff --git a/src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs b/src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs index d6be3da9d..ce93ea0d3 100644 --- a/src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs +++ b/src/NSubstitute/Proxies/CastleDynamicProxy/CastleDynamicProxyFactory.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Reflection; using Castle.DynamicProxy; using NSubstitute.Core; diff --git a/src/NSubstitute/Proxies/CastleDynamicProxy/CastleForwardingInterceptor.cs b/src/NSubstitute/Proxies/CastleDynamicProxy/CastleForwardingInterceptor.cs index 1fbdcdc02..fe3e926de 100644 --- a/src/NSubstitute/Proxies/CastleDynamicProxy/CastleForwardingInterceptor.cs +++ b/src/NSubstitute/Proxies/CastleDynamicProxy/CastleForwardingInterceptor.cs @@ -1,4 +1,3 @@ -using System; using Castle.DynamicProxy; using NSubstitute.Core; diff --git a/src/NSubstitute/Proxies/CastleDynamicProxy/CastleInvocationMapper.cs b/src/NSubstitute/Proxies/CastleDynamicProxy/CastleInvocationMapper.cs index 85c50537f..27550118e 100644 --- a/src/NSubstitute/Proxies/CastleDynamicProxy/CastleInvocationMapper.cs +++ b/src/NSubstitute/Proxies/CastleDynamicProxy/CastleInvocationMapper.cs @@ -1,4 +1,3 @@ -using System; using Castle.DynamicProxy; using NSubstitute.Core; diff --git a/src/NSubstitute/Proxies/CastleDynamicProxy/ProxyIdInterceptor.cs b/src/NSubstitute/Proxies/CastleDynamicProxy/ProxyIdInterceptor.cs index 02b9be158..a90b5ac75 100644 --- a/src/NSubstitute/Proxies/CastleDynamicProxy/ProxyIdInterceptor.cs +++ b/src/NSubstitute/Proxies/CastleDynamicProxy/ProxyIdInterceptor.cs @@ -1,5 +1,4 @@ -using System; -using System.Globalization; +using System.Globalization; using System.Reflection; using Castle.DynamicProxy; using NSubstitute.Core; diff --git a/src/NSubstitute/Proxies/DelegateProxy/DelegateProxyFactory.cs b/src/NSubstitute/Proxies/DelegateProxy/DelegateProxyFactory.cs index 4a3c61546..a6fbcf05e 100644 --- a/src/NSubstitute/Proxies/DelegateProxy/DelegateProxyFactory.cs +++ b/src/NSubstitute/Proxies/DelegateProxy/DelegateProxyFactory.cs @@ -1,13 +1,4 @@ -using System; -using System.Collections.Concurrent; -using System.Globalization; -using System.Linq; -using System.Reflection; -using System.Reflection.Emit; -using System.Runtime.CompilerServices; -using System.Threading; using NSubstitute.Core; -using NSubstitute.Exceptions; using NSubstitute.Proxies.CastleDynamicProxy; namespace NSubstitute.Proxies.DelegateProxy diff --git a/src/NSubstitute/Proxies/DelegateProxy/ProxiedDelegateTypeAttribute.cs b/src/NSubstitute/Proxies/DelegateProxy/ProxiedDelegateTypeAttribute.cs index 57aff6391..b966bf484 100644 --- a/src/NSubstitute/Proxies/DelegateProxy/ProxiedDelegateTypeAttribute.cs +++ b/src/NSubstitute/Proxies/DelegateProxy/ProxiedDelegateTypeAttribute.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Proxies.DelegateProxy { [Obsolete("This class is deprecated and will be removed in future versions of the product.")] diff --git a/src/NSubstitute/Proxies/ProxyFactory.cs b/src/NSubstitute/Proxies/ProxyFactory.cs index b28558bc7..5ccb21a8e 100644 --- a/src/NSubstitute/Proxies/ProxyFactory.cs +++ b/src/NSubstitute/Proxies/ProxyFactory.cs @@ -1,5 +1,3 @@ -using System; -using System.Reflection; using NSubstitute.Core; namespace NSubstitute.Proxies diff --git a/src/NSubstitute/Raise.cs b/src/NSubstitute/Raise.cs index 45cc94a58..b4312466b 100644 --- a/src/NSubstitute/Raise.cs +++ b/src/NSubstitute/Raise.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using System.Reflection; using NSubstitute.Core; using NSubstitute.Core.Events; diff --git a/src/NSubstitute/Received.cs b/src/NSubstitute/Received.cs index 888c04b45..213a0304d 100644 --- a/src/NSubstitute/Received.cs +++ b/src/NSubstitute/Received.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.Core.SequenceChecking; // Disable nullability for client API, so it does not affect clients. diff --git a/src/NSubstitute/Routing/AutoValues/AutoArrayProvider.cs b/src/NSubstitute/Routing/AutoValues/AutoArrayProvider.cs index b98d861dd..5dd77fa5d 100644 --- a/src/NSubstitute/Routing/AutoValues/AutoArrayProvider.cs +++ b/src/NSubstitute/Routing/AutoValues/AutoArrayProvider.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Routing.AutoValues { public class AutoArrayProvider : IAutoValueProvider diff --git a/src/NSubstitute/Routing/AutoValues/AutoObservableProvider.cs b/src/NSubstitute/Routing/AutoValues/AutoObservableProvider.cs index dbec747c6..ac81abc8f 100644 --- a/src/NSubstitute/Routing/AutoValues/AutoObservableProvider.cs +++ b/src/NSubstitute/Routing/AutoValues/AutoObservableProvider.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Reflection; +using System.Reflection; using NSubstitute.Core; namespace NSubstitute.Routing.AutoValues diff --git a/src/NSubstitute/Routing/AutoValues/AutoQueryableProvider.cs b/src/NSubstitute/Routing/AutoValues/AutoQueryableProvider.cs index 2966de9c2..f6082a837 100644 --- a/src/NSubstitute/Routing/AutoValues/AutoQueryableProvider.cs +++ b/src/NSubstitute/Routing/AutoValues/AutoQueryableProvider.cs @@ -1,6 +1,4 @@ -using System; -using System.Linq; -using System.Reflection; +using System.Reflection; namespace NSubstitute.Routing.AutoValues { diff --git a/src/NSubstitute/Routing/AutoValues/AutoStringProvider.cs b/src/NSubstitute/Routing/AutoValues/AutoStringProvider.cs index e169ed11e..16d611e2b 100644 --- a/src/NSubstitute/Routing/AutoValues/AutoStringProvider.cs +++ b/src/NSubstitute/Routing/AutoValues/AutoStringProvider.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Routing.AutoValues { public class AutoStringProvider : IAutoValueProvider diff --git a/src/NSubstitute/Routing/AutoValues/AutoSubstituteProvider.cs b/src/NSubstitute/Routing/AutoValues/AutoSubstituteProvider.cs index 8f3a274ad..8052443cf 100644 --- a/src/NSubstitute/Routing/AutoValues/AutoSubstituteProvider.cs +++ b/src/NSubstitute/Routing/AutoValues/AutoSubstituteProvider.cs @@ -1,6 +1,4 @@ -using System; -using System.Linq; -using System.Reflection; +using System.Reflection; using NSubstitute.Core; namespace NSubstitute.Routing.AutoValues diff --git a/src/NSubstitute/Routing/AutoValues/AutoTaskProvider.cs b/src/NSubstitute/Routing/AutoValues/AutoTaskProvider.cs index 22c709035..4d1dd2c88 100644 --- a/src/NSubstitute/Routing/AutoValues/AutoTaskProvider.cs +++ b/src/NSubstitute/Routing/AutoValues/AutoTaskProvider.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; -using System.Threading.Tasks; namespace NSubstitute.Routing.AutoValues { diff --git a/src/NSubstitute/Routing/AutoValues/AutoValueProvidersFactory.cs b/src/NSubstitute/Routing/AutoValues/AutoValueProvidersFactory.cs index cf4e752b7..8a39c91b7 100644 --- a/src/NSubstitute/Routing/AutoValues/AutoValueProvidersFactory.cs +++ b/src/NSubstitute/Routing/AutoValues/AutoValueProvidersFactory.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.Exceptions; namespace NSubstitute.Routing.AutoValues diff --git a/src/NSubstitute/Routing/AutoValues/IAutoValueProvider.cs b/src/NSubstitute/Routing/AutoValues/IAutoValueProvider.cs index 8eb3c9a6f..676561f5b 100644 --- a/src/NSubstitute/Routing/AutoValues/IAutoValueProvider.cs +++ b/src/NSubstitute/Routing/AutoValues/IAutoValueProvider.cs @@ -1,5 +1,3 @@ -using System; - namespace NSubstitute.Routing.AutoValues { public interface IAutoValueProvider diff --git a/src/NSubstitute/Routing/AutoValues/IAutoValueProvidersFactory.cs b/src/NSubstitute/Routing/AutoValues/IAutoValueProvidersFactory.cs index 7a821a739..ee13a60f6 100644 --- a/src/NSubstitute/Routing/AutoValues/IAutoValueProvidersFactory.cs +++ b/src/NSubstitute/Routing/AutoValues/IAutoValueProvidersFactory.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using NSubstitute.Core; +using NSubstitute.Core; namespace NSubstitute.Routing.AutoValues { diff --git a/src/NSubstitute/Routing/Handlers/CallBaseForCallHandler.cs b/src/NSubstitute/Routing/Handlers/CallBaseForCallHandler.cs index bf6b83361..dca7c9561 100644 --- a/src/NSubstitute/Routing/Handlers/CallBaseForCallHandler.cs +++ b/src/NSubstitute/Routing/Handlers/CallBaseForCallHandler.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Core; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Routing/Handlers/CheckReceivedCallsHandler.cs b/src/NSubstitute/Routing/Handlers/CheckReceivedCallsHandler.cs index 4fb4b705a..e9051bd1a 100644 --- a/src/NSubstitute/Routing/Handlers/CheckReceivedCallsHandler.cs +++ b/src/NSubstitute/Routing/Handlers/CheckReceivedCallsHandler.cs @@ -1,4 +1,3 @@ -using System.Linq; using NSubstitute.Core; using NSubstitute.ReceivedExtensions; diff --git a/src/NSubstitute/Routing/Handlers/DoNotCallBaseForCallHandler.cs b/src/NSubstitute/Routing/Handlers/DoNotCallBaseForCallHandler.cs index 9f99abf3b..c685990fb 100644 --- a/src/NSubstitute/Routing/Handlers/DoNotCallBaseForCallHandler.cs +++ b/src/NSubstitute/Routing/Handlers/DoNotCallBaseForCallHandler.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Core; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Routing/Handlers/EventSubscriptionHandler.cs b/src/NSubstitute/Routing/Handlers/EventSubscriptionHandler.cs index 3638038df..ecc6825e1 100644 --- a/src/NSubstitute/Routing/Handlers/EventSubscriptionHandler.cs +++ b/src/NSubstitute/Routing/Handlers/EventSubscriptionHandler.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using System.Reflection; using NSubstitute.Core; diff --git a/src/NSubstitute/Routing/Handlers/PropertySetterHandler.cs b/src/NSubstitute/Routing/Handlers/PropertySetterHandler.cs index a4ccf2522..c351711e2 100644 --- a/src/NSubstitute/Routing/Handlers/PropertySetterHandler.cs +++ b/src/NSubstitute/Routing/Handlers/PropertySetterHandler.cs @@ -1,4 +1,3 @@ -using System.Linq; using NSubstitute.Core; namespace NSubstitute.Routing.Handlers diff --git a/src/NSubstitute/Routing/Handlers/RaiseEventHandler.cs b/src/NSubstitute/Routing/Handlers/RaiseEventHandler.cs index e98b92334..97badfa6b 100644 --- a/src/NSubstitute/Routing/Handlers/RaiseEventHandler.cs +++ b/src/NSubstitute/Routing/Handlers/RaiseEventHandler.cs @@ -1,6 +1,4 @@ -using System; -using System.Linq; -using System.Reflection; +using System.Reflection; using NSubstitute.Core; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/Routing/Handlers/RecordCallSpecificationHandler.cs b/src/NSubstitute/Routing/Handlers/RecordCallSpecificationHandler.cs index 02a8eba99..4b4b3b2af 100644 --- a/src/NSubstitute/Routing/Handlers/RecordCallSpecificationHandler.cs +++ b/src/NSubstitute/Routing/Handlers/RecordCallSpecificationHandler.cs @@ -1,5 +1,4 @@ -using System.Linq; -using NSubstitute.Core; +using NSubstitute.Core; namespace NSubstitute.Routing.Handlers { diff --git a/src/NSubstitute/Routing/Handlers/ReturnAutoValue.cs b/src/NSubstitute/Routing/Handlers/ReturnAutoValue.cs index eaf4d6d15..abf760d17 100644 --- a/src/NSubstitute/Routing/Handlers/ReturnAutoValue.cs +++ b/src/NSubstitute/Routing/Handlers/ReturnAutoValue.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using NSubstitute.Core; using NSubstitute.Routing.AutoValues; diff --git a/src/NSubstitute/Routing/Handlers/ReturnFromAndConfigureDynamicCall.cs b/src/NSubstitute/Routing/Handlers/ReturnFromAndConfigureDynamicCall.cs index 0811a0c7f..49778a76c 100644 --- a/src/NSubstitute/Routing/Handlers/ReturnFromAndConfigureDynamicCall.cs +++ b/src/NSubstitute/Routing/Handlers/ReturnFromAndConfigureDynamicCall.cs @@ -1,5 +1,4 @@ using NSubstitute.Core; -using System; using System.Runtime.CompilerServices; namespace NSubstitute.Routing.Handlers diff --git a/src/NSubstitute/Routing/Handlers/ReturnFromBaseIfRequired.cs b/src/NSubstitute/Routing/Handlers/ReturnFromBaseIfRequired.cs index 44b084a34..2fc74666e 100644 --- a/src/NSubstitute/Routing/Handlers/ReturnFromBaseIfRequired.cs +++ b/src/NSubstitute/Routing/Handlers/ReturnFromBaseIfRequired.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; namespace NSubstitute.Routing.Handlers { diff --git a/src/NSubstitute/Routing/Handlers/SetActionForCallHandler.cs b/src/NSubstitute/Routing/Handlers/SetActionForCallHandler.cs index 3a1160984..8fa336a34 100644 --- a/src/NSubstitute/Routing/Handlers/SetActionForCallHandler.cs +++ b/src/NSubstitute/Routing/Handlers/SetActionForCallHandler.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Core; namespace NSubstitute.Routing.Handlers diff --git a/src/NSubstitute/Routing/IRouteFactory.cs b/src/NSubstitute/Routing/IRouteFactory.cs index df8d9ffe4..9f81cb0ec 100644 --- a/src/NSubstitute/Routing/IRouteFactory.cs +++ b/src/NSubstitute/Routing/IRouteFactory.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.ReceivedExtensions; namespace NSubstitute.Routing diff --git a/src/NSubstitute/Routing/Route.cs b/src/NSubstitute/Routing/Route.cs index 06de7bebd..93020f7b9 100644 --- a/src/NSubstitute/Routing/Route.cs +++ b/src/NSubstitute/Routing/Route.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NSubstitute.Core; namespace NSubstitute.Routing diff --git a/src/NSubstitute/Routing/RouteFactory.cs b/src/NSubstitute/Routing/RouteFactory.cs index d8d21f3a3..aed113612 100644 --- a/src/NSubstitute/Routing/RouteFactory.cs +++ b/src/NSubstitute/Routing/RouteFactory.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.ReceivedExtensions; using NSubstitute.Routing.Handlers; diff --git a/src/NSubstitute/Substitute.cs b/src/NSubstitute/Substitute.cs index 206e57f4a..966e701f8 100644 --- a/src/NSubstitute/Substitute.cs +++ b/src/NSubstitute/Substitute.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Core; // Disable nullability for client API, so it does not affect clients. diff --git a/src/NSubstitute/SubstituteExtensions.Received.cs b/src/NSubstitute/SubstituteExtensions.Received.cs index dbda85f81..db0c1a390 100644 --- a/src/NSubstitute/SubstituteExtensions.Received.cs +++ b/src/NSubstitute/SubstituteExtensions.Received.cs @@ -1,6 +1,5 @@ // Disable nullability for client API, so it does not affect clients. -using System.Collections.Generic; using NSubstitute.ClearExtensions; using NSubstitute.Core; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/SubstituteExtensions.Returns.Task.cs b/src/NSubstitute/SubstituteExtensions.Returns.Task.cs index 57388dfeb..49f4b9240 100644 --- a/src/NSubstitute/SubstituteExtensions.Returns.Task.cs +++ b/src/NSubstitute/SubstituteExtensions.Returns.Task.cs @@ -1,6 +1,3 @@ -using System; -using System.Linq; -using System.Threading.Tasks; using NSubstitute.Core; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/SubstituteExtensions.Returns.ValueTask.cs b/src/NSubstitute/SubstituteExtensions.Returns.ValueTask.cs index d899f0f7d..f684b324d 100644 --- a/src/NSubstitute/SubstituteExtensions.Returns.ValueTask.cs +++ b/src/NSubstitute/SubstituteExtensions.Returns.ValueTask.cs @@ -1,6 +1,3 @@ -using System; -using System.Linq; -using System.Threading.Tasks; using NSubstitute.Core; using NSubstitute.Exceptions; diff --git a/src/NSubstitute/SubstituteExtensions.Returns.cs b/src/NSubstitute/SubstituteExtensions.Returns.cs index 0e959ebd4..d118f9d58 100644 --- a/src/NSubstitute/SubstituteExtensions.Returns.cs +++ b/src/NSubstitute/SubstituteExtensions.Returns.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using NSubstitute.Core; // Disable nullability for client API, so it does not affect clients. diff --git a/src/NSubstitute/SubstituteExtensions.When.Task.cs b/src/NSubstitute/SubstituteExtensions.When.Task.cs index 79a20a2fa..f64f71734 100644 --- a/src/NSubstitute/SubstituteExtensions.When.Task.cs +++ b/src/NSubstitute/SubstituteExtensions.When.Task.cs @@ -1,5 +1,3 @@ -using System; -using System.Threading.Tasks; using NSubstitute.Core; // Disable nullability for client API, so it does not affect clients. diff --git a/src/NSubstitute/SubstituteExtensions.When.ValueTask.cs b/src/NSubstitute/SubstituteExtensions.When.ValueTask.cs index 7759804da..4756f6f38 100644 --- a/src/NSubstitute/SubstituteExtensions.When.ValueTask.cs +++ b/src/NSubstitute/SubstituteExtensions.When.ValueTask.cs @@ -1,6 +1,4 @@ -using System; using NSubstitute.Core; -using System.Threading.Tasks; // Disable nullability for client API, so it does not affect clients. #nullable disable annotations diff --git a/src/NSubstitute/SubstituteExtensions.When.cs b/src/NSubstitute/SubstituteExtensions.When.cs index 055e2aa69..dfb730477 100644 --- a/src/NSubstitute/SubstituteExtensions.When.cs +++ b/src/NSubstitute/SubstituteExtensions.When.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Core; using NSubstitute.Exceptions; diff --git a/tests/NSubstitute.Acceptance.Specs/ArgDoFromMatcher.cs b/tests/NSubstitute.Acceptance.Specs/ArgDoFromMatcher.cs index 144e8494d..e62b9a5a6 100644 --- a/tests/NSubstitute.Acceptance.Specs/ArgDoFromMatcher.cs +++ b/tests/NSubstitute.Acceptance.Specs/ArgDoFromMatcher.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Runtime.InteropServices; -using NSubstitute.ClearExtensions; +using NSubstitute.ClearExtensions; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/ArgumentInvocationFromMatchers.cs b/tests/NSubstitute.Acceptance.Specs/ArgumentInvocationFromMatchers.cs index 77101fd7c..996db2b95 100644 --- a/tests/NSubstitute.Acceptance.Specs/ArgumentInvocationFromMatchers.cs +++ b/tests/NSubstitute.Acceptance.Specs/ArgumentInvocationFromMatchers.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs { diff --git a/tests/NSubstitute.Acceptance.Specs/ArgumentMatching.cs b/tests/NSubstitute.Acceptance.Specs/ArgumentMatching.cs index c87bb603e..7e4f29b44 100644 --- a/tests/NSubstitute.Acceptance.Specs/ArgumentMatching.cs +++ b/tests/NSubstitute.Acceptance.Specs/ArgumentMatching.cs @@ -1,10 +1,7 @@ -using System; -using System.Collections.Generic; -using NSubstitute.Acceptance.Specs.Infrastructure; +using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Core; using NSubstitute.Core.Arguments; using NSubstitute.Exceptions; -using NSubstitute.ReceivedExtensions; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/AssemblySigningTest.cs b/tests/NSubstitute.Acceptance.Specs/AssemblySigningTest.cs index f92e7f3d1..0eb4ebca0 100644 --- a/tests/NSubstitute.Acceptance.Specs/AssemblySigningTest.cs +++ b/tests/NSubstitute.Acceptance.Specs/AssemblySigningTest.cs @@ -1,5 +1,4 @@ -using System.Linq; -using System.Reflection; +using System.Reflection; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/AutoValuesForSubs.cs b/tests/NSubstitute.Acceptance.Specs/AutoValuesForSubs.cs index 4142018b6..b8aa12468 100644 --- a/tests/NSubstitute.Acceptance.Specs/AutoValuesForSubs.cs +++ b/tests/NSubstitute.Acceptance.Specs/AutoValuesForSubs.cs @@ -1,6 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/CallbackCalling.cs b/tests/NSubstitute.Acceptance.Specs/CallbackCalling.cs index 991128627..392e551b5 100644 --- a/tests/NSubstitute.Acceptance.Specs/CallbackCalling.cs +++ b/tests/NSubstitute.Acceptance.Specs/CallbackCalling.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Core; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/CompatArgsTests.cs b/tests/NSubstitute.Acceptance.Specs/CompatArgsTests.cs index fd56d654b..603856086 100644 --- a/tests/NSubstitute.Acceptance.Specs/CompatArgsTests.cs +++ b/tests/NSubstitute.Acceptance.Specs/CompatArgsTests.cs @@ -1,6 +1,4 @@ -using System; -using System.Reflection; -using System.Linq; +using System.Reflection; using NSubstitute.Compatibility; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/ConcurrencyTests.cs b/tests/NSubstitute.Acceptance.Specs/ConcurrencyTests.cs index 46d7ff128..28d76ff0d 100644 --- a/tests/NSubstitute.Acceptance.Specs/ConcurrencyTests.cs +++ b/tests/NSubstitute.Acceptance.Specs/ConcurrencyTests.cs @@ -1,7 +1,4 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using NSubstitute.Acceptance.Specs.Infrastructure; +using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Exceptions; using NSubstitute.Extensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/ConfigurationExtensionTests.cs b/tests/NSubstitute.Acceptance.Specs/ConfigurationExtensionTests.cs index 8b87dbdd0..10e3527f0 100644 --- a/tests/NSubstitute.Acceptance.Specs/ConfigurationExtensionTests.cs +++ b/tests/NSubstitute.Acceptance.Specs/ConfigurationExtensionTests.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Acceptance.Specs.Infrastructure; +using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Core; using NSubstitute.ExceptionExtensions; using NSubstitute.Extensions; diff --git a/tests/NSubstitute.Acceptance.Specs/CustomHandlersSpecs.cs b/tests/NSubstitute.Acceptance.Specs/CustomHandlersSpecs.cs index de437eec4..ec02bf306 100644 --- a/tests/NSubstitute.Acceptance.Specs/CustomHandlersSpecs.cs +++ b/tests/NSubstitute.Acceptance.Specs/CustomHandlersSpecs.cs @@ -1,6 +1,4 @@ -using System; -using System.Collections.Generic; -using NSubstitute.Core; +using NSubstitute.Core; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/DynamicCalls.cs b/tests/NSubstitute.Acceptance.Specs/DynamicCalls.cs index dae192bb8..b6f640e5f 100644 --- a/tests/NSubstitute.Acceptance.Specs/DynamicCalls.cs +++ b/tests/NSubstitute.Acceptance.Specs/DynamicCalls.cs @@ -1,5 +1,4 @@ -using System; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs { diff --git a/tests/NSubstitute.Acceptance.Specs/EventChecking.cs b/tests/NSubstitute.Acceptance.Specs/EventChecking.cs index 11ca977e3..83f060ade 100644 --- a/tests/NSubstitute.Acceptance.Specs/EventChecking.cs +++ b/tests/NSubstitute.Acceptance.Specs/EventChecking.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/EventRaising.cs b/tests/NSubstitute.Acceptance.Specs/EventRaising.cs index bd89dc003..1ca4cbb98 100644 --- a/tests/NSubstitute.Acceptance.Specs/EventRaising.cs +++ b/tests/NSubstitute.Acceptance.Specs/EventRaising.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/ExceptionsWhenCheckingReceivedCalls.cs b/tests/NSubstitute.Acceptance.Specs/ExceptionsWhenCheckingReceivedCalls.cs index ecf634b92..2a550c3f4 100644 --- a/tests/NSubstitute.Acceptance.Specs/ExceptionsWhenCheckingReceivedCalls.cs +++ b/tests/NSubstitute.Acceptance.Specs/ExceptionsWhenCheckingReceivedCalls.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Exceptions; +using NSubstitute.Exceptions; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/ExceptionsWhenCheckingSequencesOfCalls.cs b/tests/NSubstitute.Acceptance.Specs/ExceptionsWhenCheckingSequencesOfCalls.cs index e22414584..214149c11 100644 --- a/tests/NSubstitute.Acceptance.Specs/ExceptionsWhenCheckingSequencesOfCalls.cs +++ b/tests/NSubstitute.Acceptance.Specs/ExceptionsWhenCheckingSequencesOfCalls.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Exceptions; +using NSubstitute.Exceptions; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/ArgMatchingWithValueTypeArgSpecsForObjectArguments.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/ArgMatchingWithValueTypeArgSpecsForObjectArguments.cs index 8f8e5c345..9fbf878c9 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/ArgMatchingWithValueTypeArgSpecsForObjectArguments.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/ArgMatchingWithValueTypeArgSpecsForObjectArguments.cs @@ -1,4 +1,3 @@ -using System; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/CallingIntoNewSubWithinReturns.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/CallingIntoNewSubWithinReturns.cs index 71e5d3a96..dacb39cfb 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/CallingIntoNewSubWithinReturns.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/CallingIntoNewSubWithinReturns.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Exceptions; +using NSubstitute.Exceptions; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/DisposeWithThreadLocal.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/DisposeWithThreadLocal.cs index 157d11e60..df31fcd53 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/DisposeWithThreadLocal.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/DisposeWithThreadLocal.cs @@ -1,4 +1,3 @@ -using System; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue110_CustomExceptions.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue110_CustomExceptions.cs index c69d51b00..30c08f5c7 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue110_CustomExceptions.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue110_CustomExceptions.cs @@ -1,5 +1,4 @@ -using System; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue125_MethodWithSealedClassReturnType.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue125_MethodWithSealedClassReturnType.cs index 289c80061..d528b2781 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue125_MethodWithSealedClassReturnType.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue125_MethodWithSealedClassReturnType.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue149_ArgMatcherInReturns.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue149_ArgMatcherInReturns.cs index c8a0e667a..4e8fac9d1 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue149_ArgMatcherInReturns.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue149_ArgMatcherInReturns.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Exceptions; +using NSubstitute.Exceptions; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue211_ReceivedInOrderParamsFormatting.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue211_ReceivedInOrderParamsFormatting.cs index 23ecd09c1..c2090f841 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue211_ReceivedInOrderParamsFormatting.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue211_ReceivedInOrderParamsFormatting.cs @@ -1,6 +1,4 @@ -using System; -using System.Globalization; -using System.Text.RegularExpressions; +using System.Text.RegularExpressions; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue237_ReceivedInOrderErrorHandling.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue237_ReceivedInOrderErrorHandling.cs index 4e67414bf..0350ab5c5 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue237_ReceivedInOrderErrorHandling.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue237_ReceivedInOrderErrorHandling.cs @@ -1,5 +1,4 @@ -using System; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue282_MultipleReturnValuesParallelism.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue282_MultipleReturnValuesParallelism.cs index 182a0163a..06688cb1e 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue282_MultipleReturnValuesParallelism.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue282_MultipleReturnValuesParallelism.cs @@ -1,5 +1,4 @@ -using System.Threading.Tasks; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue291_CannotReconfigureThrowingConfiguration.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue291_CannotReconfigureThrowingConfiguration.cs index d7ec7d7e2..0aaf70456 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue291_CannotReconfigureThrowingConfiguration.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue291_CannotReconfigureThrowingConfiguration.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Acceptance.Specs.Infrastructure; +using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.ExceptionExtensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue372_InterfaceSameNameOfMethods.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue372_InterfaceSameNameOfMethods.cs index 66ecb4b15..3f14a7d51 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue372_InterfaceSameNameOfMethods.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue372_InterfaceSameNameOfMethods.cs @@ -1,5 +1,4 @@ -using System.Threading.Tasks; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue47_RaisingEventsWithNullArg.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue47_RaisingEventsWithNullArg.cs index 8321a7a30..83bad5a65 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue47_RaisingEventsWithNullArg.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue47_RaisingEventsWithNullArg.cs @@ -1,4 +1,3 @@ -using System; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue500_SpecialMethodsWithoutAttribute.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue500_SpecialMethodsWithoutAttribute.cs index b36db2444..73daeefa3 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue500_SpecialMethodsWithoutAttribute.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue500_SpecialMethodsWithoutAttribute.cs @@ -1,4 +1,3 @@ -using System; using System.Reflection; using System.Reflection.Emit; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue515_OutOfRangeExceptionForNestedGenericTypes.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue515_OutOfRangeExceptionForNestedGenericTypes.cs index 3dda7f7b7..02e3e9887 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue515_OutOfRangeExceptionForNestedGenericTypes.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue515_OutOfRangeExceptionForNestedGenericTypes.cs @@ -1,4 +1,3 @@ -using System.Collections.Generic; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue533_TaskExceptionMightBeSwallowed.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue533_TaskExceptionMightBeSwallowed.cs index 32c922506..52e5eeff6 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue533_TaskExceptionMightBeSwallowed.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue533_TaskExceptionMightBeSwallowed.cs @@ -1,5 +1,3 @@ -using System; -using System.Threading.Tasks; using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue560_RaiseEventWithArrayArg.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue560_RaiseEventWithArrayArg.cs index 54c0792fd..c35bd32f7 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue560_RaiseEventWithArrayArg.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue560_RaiseEventWithArrayArg.cs @@ -1,4 +1,3 @@ -using System; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue569_QueryShouldNotInvokeConfiguredResult.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue569_QueryShouldNotInvokeConfiguredResult.cs index 5e822049e..98d4f0ca1 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue569_QueryShouldNotInvokeConfiguredResult.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue569_QueryShouldNotInvokeConfiguredResult.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.ExceptionExtensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue57_SettingVirtualPropertyInCtor.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue57_SettingVirtualPropertyInCtor.cs index dda20c87e..de66639dd 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue57_SettingVirtualPropertyInCtor.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue57_SettingVirtualPropertyInCtor.cs @@ -1,5 +1,4 @@ -using System; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue75_DoesNotWorkWithMembersThatUseDynamic.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue75_DoesNotWorkWithMembersThatUseDynamic.cs index a78068df2..ce5a9576b 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue75_DoesNotWorkWithMembersThatUseDynamic.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue75_DoesNotWorkWithMembersThatUseDynamic.cs @@ -1,5 +1,3 @@ -using System; - using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue77_EqualsBehaviourOnClassStubs.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue77_EqualsBehaviourOnClassStubs.cs index be4d28b2a..6adc9ba0f 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue77_EqualsBehaviourOnClassStubs.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue77_EqualsBehaviourOnClassStubs.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using System.Linq; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue83_MethodsWithGenericStructConstraint.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue83_MethodsWithGenericStructConstraint.cs index bddbc5f5a..8790ba509 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue83_MethodsWithGenericStructConstraint.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue83_MethodsWithGenericStructConstraint.cs @@ -1,5 +1,4 @@ -using System; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue_RaiseEventOnNonSubstitute.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue_RaiseEventOnNonSubstitute.cs index 7bae4d051..15051f3d1 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue_RaiseEventOnNonSubstitute.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue_RaiseEventOnNonSubstitute.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Exceptions; +using NSubstitute.Exceptions; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/MigratingToCompatArgs.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/MigratingToCompatArgs.cs index 2ce13070b..ca94997c9 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/MigratingToCompatArgs.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/MigratingToCompatArgs.cs @@ -1,6 +1,4 @@ -using System; -using NSubstitute; -using NSubstitute.Compatibility; +using NSubstitute.Compatibility; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Regression_ReceivedClearsStub.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Regression_ReceivedClearsStub.cs index 1d77555ce..85f8240de 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/Regression_ReceivedClearsStub.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Regression_ReceivedClearsStub.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports { diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/SubbingSynchronizationContext.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/SubbingSynchronizationContext.cs index 5879fe874..ff678280f 100644 --- a/tests/NSubstitute.Acceptance.Specs/FieldReports/SubbingSynchronizationContext.cs +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/SubbingSynchronizationContext.cs @@ -1,4 +1,3 @@ -using System.Threading; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs.FieldReports diff --git a/tests/NSubstitute.Acceptance.Specs/FormattingCallsWhenThrowingReceivedCallsExceptions.cs b/tests/NSubstitute.Acceptance.Specs/FormattingCallsWhenThrowingReceivedCallsExceptions.cs index 748ac591e..d13f111ad 100644 --- a/tests/NSubstitute.Acceptance.Specs/FormattingCallsWhenThrowingReceivedCallsExceptions.cs +++ b/tests/NSubstitute.Acceptance.Specs/FormattingCallsWhenThrowingReceivedCallsExceptions.cs @@ -1,5 +1,3 @@ -using System; -using System.Collections.Generic; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/GenericArguments.cs b/tests/NSubstitute.Acceptance.Specs/GenericArguments.cs index 9de31f700..5406ce896 100644 --- a/tests/NSubstitute.Acceptance.Specs/GenericArguments.cs +++ b/tests/NSubstitute.Acceptance.Specs/GenericArguments.cs @@ -1,5 +1,4 @@ using System.Collections; -using System.Collections.Generic; using System.Globalization; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/ILoggerTests.cs b/tests/NSubstitute.Acceptance.Specs/ILoggerTests.cs index 2433328ef..8c2db932c 100644 --- a/tests/NSubstitute.Acceptance.Specs/ILoggerTests.cs +++ b/tests/NSubstitute.Acceptance.Specs/ILoggerTests.cs @@ -1,8 +1,5 @@ using Microsoft.Extensions.Logging; using NUnit.Framework; -using System; -using System.Collections.Generic; -using System.Linq; namespace NSubstitute.Acceptance.Specs; diff --git a/tests/NSubstitute.Acceptance.Specs/Infrastructure/BackgroundTask.cs b/tests/NSubstitute.Acceptance.Specs/Infrastructure/BackgroundTask.cs index 1a012c142..c413579f2 100644 --- a/tests/NSubstitute.Acceptance.Specs/Infrastructure/BackgroundTask.cs +++ b/tests/NSubstitute.Acceptance.Specs/Infrastructure/BackgroundTask.cs @@ -1,6 +1,3 @@ -using System; -using System.Threading; - namespace NSubstitute.Acceptance.Specs.Infrastructure { public class BackgroundTask diff --git a/tests/NSubstitute.Acceptance.Specs/Infrastructure/FluentSomething.cs b/tests/NSubstitute.Acceptance.Specs/Infrastructure/FluentSomething.cs index 071c271ac..5c783dfaa 100644 --- a/tests/NSubstitute.Acceptance.Specs/Infrastructure/FluentSomething.cs +++ b/tests/NSubstitute.Acceptance.Specs/Infrastructure/FluentSomething.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Acceptance.Specs.Infrastructure +namespace NSubstitute.Acceptance.Specs.Infrastructure { public class FluentSomething : IFluentSomething { diff --git a/tests/NSubstitute.Acceptance.Specs/Infrastructure/IFluentSomething.cs b/tests/NSubstitute.Acceptance.Specs/Infrastructure/IFluentSomething.cs index 853474ded..2bf9579ed 100644 --- a/tests/NSubstitute.Acceptance.Specs/Infrastructure/IFluentSomething.cs +++ b/tests/NSubstitute.Acceptance.Specs/Infrastructure/IFluentSomething.cs @@ -1,6 +1,4 @@ -using System; - -namespace NSubstitute.Acceptance.Specs.Infrastructure +namespace NSubstitute.Acceptance.Specs.Infrastructure { public interface IFluentSomething { diff --git a/tests/NSubstitute.Acceptance.Specs/LegacyApiTests.cs b/tests/NSubstitute.Acceptance.Specs/LegacyApiTests.cs index 25b557f49..bca8ae39f 100644 --- a/tests/NSubstitute.Acceptance.Specs/LegacyApiTests.cs +++ b/tests/NSubstitute.Acceptance.Specs/LegacyApiTests.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/MultipleThreads.cs b/tests/NSubstitute.Acceptance.Specs/MultipleThreads.cs index 114fa3c4d..6ceb768b9 100644 --- a/tests/NSubstitute.Acceptance.Specs/MultipleThreads.cs +++ b/tests/NSubstitute.Acceptance.Specs/MultipleThreads.cs @@ -1,6 +1,3 @@ -using System; -using System.Linq; -using System.Threading; using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/NSubContainerTests.cs b/tests/NSubstitute.Acceptance.Specs/NSubContainerTests.cs index 9e208feaa..b39b8f27d 100644 --- a/tests/NSubstitute.Acceptance.Specs/NSubContainerTests.cs +++ b/tests/NSubstitute.Acceptance.Specs/NSubContainerTests.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Core.DependencyInjection; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/NotASubstituteExceptions.cs b/tests/NSubstitute.Acceptance.Specs/NotASubstituteExceptions.cs index 43f3bb433..6537b6e59 100644 --- a/tests/NSubstitute.Acceptance.Specs/NotASubstituteExceptions.cs +++ b/tests/NSubstitute.Acceptance.Specs/NotASubstituteExceptions.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/NullReferenceCheckingForSubstituteExtensions.cs b/tests/NSubstitute.Acceptance.Specs/NullReferenceCheckingForSubstituteExtensions.cs index 774180b21..40603f252 100644 --- a/tests/NSubstitute.Acceptance.Specs/NullReferenceCheckingForSubstituteExtensions.cs +++ b/tests/NSubstitute.Acceptance.Specs/NullReferenceCheckingForSubstituteExtensions.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.ClearExtensions; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/OutAndRefParameters.cs b/tests/NSubstitute.Acceptance.Specs/OutAndRefParameters.cs index c13fb93d7..93e554e58 100644 --- a/tests/NSubstitute.Acceptance.Specs/OutAndRefParameters.cs +++ b/tests/NSubstitute.Acceptance.Specs/OutAndRefParameters.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/PartialSubExamples.cs b/tests/NSubstitute.Acceptance.Specs/PartialSubExamples.cs index fc8aa4094..2663b2b36 100644 --- a/tests/NSubstitute.Acceptance.Specs/PartialSubExamples.cs +++ b/tests/NSubstitute.Acceptance.Specs/PartialSubExamples.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; -using System.Linq; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs { diff --git a/tests/NSubstitute.Acceptance.Specs/PartialSubs.cs b/tests/NSubstitute.Acceptance.Specs/PartialSubs.cs index 92dba3a21..8fe03d9da 100644 --- a/tests/NSubstitute.Acceptance.Specs/PartialSubs.cs +++ b/tests/NSubstitute.Acceptance.Specs/PartialSubs.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Core; +using NSubstitute.Core; using NSubstitute.Exceptions; using NSubstitute.Extensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/PerfTests.cs b/tests/NSubstitute.Acceptance.Specs/PerfTests.cs index a4db29b69..1b82636ba 100644 --- a/tests/NSubstitute.Acceptance.Specs/PerfTests.cs +++ b/tests/NSubstitute.Acceptance.Specs/PerfTests.cs @@ -1,6 +1,4 @@ -using System; -using System.Diagnostics; -using System.Threading; +using System.Diagnostics; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/PropertyBehaviour.cs b/tests/NSubstitute.Acceptance.Specs/PropertyBehaviour.cs index 4f9a2d202..ec842faa7 100644 --- a/tests/NSubstitute.Acceptance.Specs/PropertyBehaviour.cs +++ b/tests/NSubstitute.Acceptance.Specs/PropertyBehaviour.cs @@ -1,4 +1,3 @@ -using System; using NSubstitute.Exceptions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/ReceivedCalls.cs b/tests/NSubstitute.Acceptance.Specs/ReceivedCalls.cs index 43e83f277..6c0c60a89 100644 --- a/tests/NSubstitute.Acceptance.Specs/ReceivedCalls.cs +++ b/tests/NSubstitute.Acceptance.Specs/ReceivedCalls.cs @@ -1,5 +1,3 @@ -using System; -using System.Linq; using NSubstitute.Exceptions; using NSubstitute.ReceivedExtensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/ReturningResults.cs b/tests/NSubstitute.Acceptance.Specs/ReturningResults.cs index 3a363e6fe..d34983449 100644 --- a/tests/NSubstitute.Acceptance.Specs/ReturningResults.cs +++ b/tests/NSubstitute.Acceptance.Specs/ReturningResults.cs @@ -1,6 +1,4 @@ -using System; -using System.Threading.Tasks; -using NSubstitute.Acceptance.Specs.Infrastructure; +using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Exceptions; using NSubstitute.ReturnsExtensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/ReturnsAndDoes.cs b/tests/NSubstitute.Acceptance.Specs/ReturnsAndDoes.cs index 27ba4baf0..6463d8744 100644 --- a/tests/NSubstitute.Acceptance.Specs/ReturnsAndDoes.cs +++ b/tests/NSubstitute.Acceptance.Specs/ReturnsAndDoes.cs @@ -1,5 +1,4 @@ -using System.Collections.Generic; -using NUnit.Framework; +using NUnit.Framework; namespace NSubstitute.Acceptance.Specs { diff --git a/tests/NSubstitute.Acceptance.Specs/ReturnsForAll.cs b/tests/NSubstitute.Acceptance.Specs/ReturnsForAll.cs index 1350993d9..db4c6cb51 100644 --- a/tests/NSubstitute.Acceptance.Specs/ReturnsForAll.cs +++ b/tests/NSubstitute.Acceptance.Specs/ReturnsForAll.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Acceptance.Specs.Infrastructure; +using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Extensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/ReturnsForAllFromFunc.cs b/tests/NSubstitute.Acceptance.Specs/ReturnsForAllFromFunc.cs index f42e8a99a..300fa6715 100644 --- a/tests/NSubstitute.Acceptance.Specs/ReturnsForAllFromFunc.cs +++ b/tests/NSubstitute.Acceptance.Specs/ReturnsForAllFromFunc.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Acceptance.Specs.Infrastructure; +using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Extensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/SequenceChecking.cs b/tests/NSubstitute.Acceptance.Specs/SequenceChecking.cs index 8fb9eb5b4..91fe16999 100644 --- a/tests/NSubstitute.Acceptance.Specs/SequenceChecking.cs +++ b/tests/NSubstitute.Acceptance.Specs/SequenceChecking.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Exceptions; +using NSubstitute.Exceptions; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/SubbingForConcreteTypesAndMultipleInterfaces.cs b/tests/NSubstitute.Acceptance.Specs/SubbingForConcreteTypesAndMultipleInterfaces.cs index e2a3809cb..8f4e7188e 100644 --- a/tests/NSubstitute.Acceptance.Specs/SubbingForConcreteTypesAndMultipleInterfaces.cs +++ b/tests/NSubstitute.Acceptance.Specs/SubbingForConcreteTypesAndMultipleInterfaces.cs @@ -1,4 +1,3 @@ -using System; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/SubbingForEventHandler.cs b/tests/NSubstitute.Acceptance.Specs/SubbingForEventHandler.cs index d09c080dc..6b98716df 100644 --- a/tests/NSubstitute.Acceptance.Specs/SubbingForEventHandler.cs +++ b/tests/NSubstitute.Acceptance.Specs/SubbingForEventHandler.cs @@ -1,4 +1,3 @@ -using System; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/SubstituteTimingAndInteractions.cs b/tests/NSubstitute.Acceptance.Specs/SubstituteTimingAndInteractions.cs index 05174e30c..567307258 100644 --- a/tests/NSubstitute.Acceptance.Specs/SubstituteTimingAndInteractions.cs +++ b/tests/NSubstitute.Acceptance.Specs/SubstituteTimingAndInteractions.cs @@ -1,4 +1,3 @@ -using System; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/SubstitutingForDelegates.cs b/tests/NSubstitute.Acceptance.Specs/SubstitutingForDelegates.cs index 290be7547..9d1d1a03c 100644 --- a/tests/NSubstitute.Acceptance.Specs/SubstitutingForDelegates.cs +++ b/tests/NSubstitute.Acceptance.Specs/SubstitutingForDelegates.cs @@ -1,4 +1,3 @@ -using System; using NUnit.Framework; namespace NSubstitute.Acceptance.Specs diff --git a/tests/NSubstitute.Acceptance.Specs/ThrowingAsyncExceptions.cs b/tests/NSubstitute.Acceptance.Specs/ThrowingAsyncExceptions.cs index 792cd3c36..4a65a4597 100644 --- a/tests/NSubstitute.Acceptance.Specs/ThrowingAsyncExceptions.cs +++ b/tests/NSubstitute.Acceptance.Specs/ThrowingAsyncExceptions.cs @@ -1,9 +1,6 @@ using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.ExceptionExtensions; using NUnit.Framework; -using System; -using System.Linq; -using System.Threading.Tasks; namespace NSubstitute.Acceptance.Specs { diff --git a/tests/NSubstitute.Acceptance.Specs/ThrowingExceptions.cs b/tests/NSubstitute.Acceptance.Specs/ThrowingExceptions.cs index cfe19dc18..f2e642e34 100644 --- a/tests/NSubstitute.Acceptance.Specs/ThrowingExceptions.cs +++ b/tests/NSubstitute.Acceptance.Specs/ThrowingExceptions.cs @@ -1,5 +1,4 @@ -using System; -using NSubstitute.Acceptance.Specs.Infrastructure; +using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.ExceptionExtensions; using NUnit.Framework; diff --git a/tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs b/tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs index 6778947c1..08e22e1be 100644 --- a/tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs +++ b/tests/NSubstitute.Acceptance.Specs/WhenCalledDo.cs @@ -1,5 +1,3 @@ -using System; -using System.Threading.Tasks; using NSubstitute.Acceptance.Specs.Infrastructure; using NSubstitute.Core; using NUnit.Framework;