From d23690f35916a9bc1b76f632c92af3a24efd26aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Sat, 6 Jun 2026 12:13:23 +0200 Subject: [PATCH 1/4] chore: normalize all .cs files to UTF-8 BOM and enforce via .editorconfig/.gitattributes Add the UTF-8 BOM to 613 .cs files so all tracked .cs files are consistently UTF-8 with BOM and CRLF line endings. No content or line-ending changes - each file diff is only the BOM marker. Enforcement: - .editorconfig: charset = utf-8-bom for [*.cs] (git cannot enforce a BOM) - .gitattributes: *.cs text eol=crlf --- .editorconfig | 1 + .gitattributes | 1 + Pipeline/Build.ApiChecks.cs | 2 +- Pipeline/Build.Benchmarks.cs | 2 +- Pipeline/Build.CodeAnalysis.cs | 2 +- Pipeline/Build.CodeCoverage.cs | 2 +- Pipeline/Build.Compile.cs | 2 +- Pipeline/Build.MutationTests.cs | 2 +- Pipeline/Build.Pack.cs | 2 +- Pipeline/Build.UnitTest.cs | 2 +- Pipeline/Build.cs | 2 +- Pipeline/Configuration.cs | 2 +- .../Collections/AssembliesAbstractSealedBuilder.cs | 2 +- Source/aweXpect.Reflection/Collections/AssembliesTypeBuilder.cs | 2 +- Source/aweXpect.Reflection/Collections/Filter.cs | 2 +- Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs | 2 +- Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs | 2 +- Source/aweXpect.Reflection/Collections/Filtered.Events.cs | 2 +- Source/aweXpect.Reflection/Collections/Filtered.Fields.cs | 2 +- Source/aweXpect.Reflection/Collections/Filtered.Methods.cs | 2 +- Source/aweXpect.Reflection/Collections/Filtered.Properties.cs | 2 +- Source/aweXpect.Reflection/Collections/Filtered.Types.cs | 2 +- Source/aweXpect.Reflection/Collections/Filtered.cs | 2 +- .../Collections/ILimitedAbstractSealedTypeAssemblies.cs | 2 +- .../Collections/ILimitedStaticTypeAssemblies.cs | 2 +- Source/aweXpect.Reflection/Collections/IMembers.cs | 2 +- Source/aweXpect.Reflection/Collections/ITypeAssemblies.cs | 2 +- Source/aweXpect.Reflection/Collections/MemberFilterState.cs | 2 +- Source/aweXpect.Reflection/Collections/TypesMemberBuilder.cs | 2 +- Source/aweXpect.Reflection/Filters/AssemblyFilters.Except.cs | 2 +- .../Filters/AssemblyFilters.WhichAreStrongNamed.cs | 2 +- .../Filters/AssemblyFilters.WhichDependOn.cs | 2 +- .../Filters/AssemblyFilters.WhichDependOnlyOn.cs | 2 +- .../Filters/AssemblyFilters.WhichDoNotDependOn.cs | 2 +- .../aweXpect.Reflection/Filters/AssemblyFilters.WhichTarget.cs | 2 +- Source/aweXpect.Reflection/Filters/AssemblyFilters.With.cs | 2 +- .../aweXpect.Reflection/Filters/AssemblyFilters.WithVersion.cs | 2 +- Source/aweXpect.Reflection/Filters/ConstructorFilters.Except.cs | 2 +- .../Filters/ConstructorFilters.WhichAreObsolete.cs | 2 +- .../Filters/ConstructorFilters.WhichAreStatic.cs | 2 +- .../Filters/ConstructorFilters.WithInParameter.cs | 2 +- .../Filters/ConstructorFilters.WithOptionalParameter.cs | 2 +- .../Filters/ConstructorFilters.WithOutParameter.cs | 2 +- .../Filters/ConstructorFilters.WithParameter.cs | 2 +- .../Filters/ConstructorFilters.WithParameterCount.cs | 2 +- .../Filters/ConstructorFilters.WithParameterExactly.cs | 2 +- .../Filters/ConstructorFilters.WithParamsParameter.cs | 2 +- .../Filters/ConstructorFilters.WithRefParameter.cs | 2 +- .../Filters/ConstructorFilters.WithoutParameters.cs | 2 +- Source/aweXpect.Reflection/Filters/EventFilters.Except.cs | 2 +- .../Filters/EventFilters.WhichAreAbstract.cs | 2 +- .../Filters/EventFilters.WhichAreObsolete.cs | 2 +- .../aweXpect.Reflection/Filters/EventFilters.WhichAreSealed.cs | 2 +- Source/aweXpect.Reflection/Filters/FieldFilters.Except.cs | 2 +- .../Filters/FieldFilters.WhichAreConstant.cs | 2 +- .../Filters/FieldFilters.WhichAreObsolete.cs | 2 +- .../Filters/FieldFilters.WhichAreReadOnly.cs | 2 +- .../aweXpect.Reflection/Filters/FieldFilters.WhichAreStatic.cs | 2 +- Source/aweXpect.Reflection/Filters/MethodFilters.Except.cs | 2 +- .../Filters/MethodFilters.WhichAreAbstract.cs | 2 +- .../aweXpect.Reflection/Filters/MethodFilters.WhichAreAsync.cs | 2 +- .../Filters/MethodFilters.WhichAreExtensionMethods.cs | 2 +- .../Filters/MethodFilters.WhichAreObsolete.cs | 2 +- .../aweXpect.Reflection/Filters/MethodFilters.WhichAreSealed.cs | 2 +- .../aweXpect.Reflection/Filters/MethodFilters.WhichAreStatic.cs | 2 +- Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturn.cs | 2 +- .../Filters/MethodFilters.WhichReturnExactly.cs | 2 +- .../Filters/MethodFilters.WhichReturnVoid.cs | 2 +- .../Filters/MethodFilters.WithInParameter.cs | 2 +- .../Filters/MethodFilters.WithOptionalParameter.cs | 2 +- .../Filters/MethodFilters.WithOutParameter.cs | 2 +- .../aweXpect.Reflection/Filters/MethodFilters.WithParameter.cs | 2 +- .../Filters/MethodFilters.WithParameterCount.cs | 2 +- .../Filters/MethodFilters.WithParameterExactly.cs | 2 +- .../Filters/MethodFilters.WithParamsParameter.cs | 2 +- .../Filters/MethodFilters.WithRefParameter.cs | 2 +- .../Filters/MethodFilters.WithoutParameters.cs | 2 +- Source/aweXpect.Reflection/Filters/PropertyFilters.Except.cs | 2 +- .../Filters/PropertyFilters.WhichAreAbstract.cs | 2 +- .../Filters/PropertyFilters.WhichAreExtensionProperties.cs | 2 +- .../Filters/PropertyFilters.WhichAreIndexers.cs | 2 +- .../Filters/PropertyFilters.WhichAreObsolete.cs | 2 +- .../Filters/PropertyFilters.WhichAreReadOnly.cs | 2 +- .../Filters/PropertyFilters.WhichAreReadWrite.cs | 2 +- .../Filters/PropertyFilters.WhichAreReadable.cs | 2 +- .../Filters/PropertyFilters.WhichAreSealed.cs | 2 +- .../Filters/PropertyFilters.WhichAreStatic.cs | 2 +- .../Filters/PropertyFilters.WhichAreWritable.cs | 2 +- .../Filters/PropertyFilters.WhichAreWriteOnly.cs | 2 +- Source/aweXpect.Reflection/Filters/TypeFilters.Except.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreAbstract.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreClasses.cs | 2 +- Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreEnums.cs | 2 +- .../Filters/TypeFilters.WhichAreInterfaces.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreNested.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreObsolete.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreReadOnly.cs | 2 +- .../Filters/TypeFilters.WhichAreRecordStructs.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreRecords.cs | 2 +- .../Filters/TypeFilters.WhichAreRefStructs.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreSealed.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreStatic.cs | 2 +- .../aweXpect.Reflection/Filters/TypeFilters.WhichAreStructs.cs | 2 +- .../Filters/TypeFilters.WhichContainConstructors.cs | 2 +- .../Filters/TypeFilters.WhichContainEvents.cs | 2 +- .../Filters/TypeFilters.WhichContainFields.cs | 2 +- .../Filters/TypeFilters.WhichContainMethods.cs | 2 +- .../Filters/TypeFilters.WhichContainProperties.cs | 2 +- Source/aweXpect.Reflection/Formatting/FormatterRegistration.cs | 2 +- Source/aweXpect.Reflection/Helpers/AssemblyHelpers.cs | 2 +- Source/aweXpect.Reflection/Helpers/AtIndexMatch.cs | 2 +- .../aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs | 2 +- Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs | 2 +- Source/aweXpect.Reflection/Helpers/NullabilityHelpers.cs | 2 +- Source/aweXpect.Reflection/Helpers/ParameterInfoHelpers.cs | 2 +- Source/aweXpect.Reflection/Helpers/ParameterModifierHelpers.cs | 2 +- Source/aweXpect.Reflection/Helpers/PropertyInfoHelpers.cs | 2 +- Source/aweXpect.Reflection/Options/DependencyCyclesOptions.cs | 2 +- Source/aweXpect.Reflection/Options/TypeSetDependencyOptions.cs | 2 +- Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs | 2 +- .../Results/NamespaceDependencyOnlyOnResult.cs | 2 +- .../Results/TypeSetDependencyOnlyOnResult.cs | 2 +- Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs | 2 +- Source/aweXpect.Reflection/ThatAssemblies.AreStrongNamed.cs | 2 +- Source/aweXpect.Reflection/ThatAssemblies.DependOnlyOn.cs | 2 +- Source/aweXpect.Reflection/ThatAssemblies.Target.cs | 2 +- Source/aweXpect.Reflection/ThatAssembly.DependsOn.cs | 2 +- Source/aweXpect.Reflection/ThatAssembly.DependsOnlyOn.cs | 2 +- Source/aweXpect.Reflection/ThatAssembly.DoesNotDependOn.cs | 2 +- Source/aweXpect.Reflection/ThatAssembly.IsStrongNamed.cs | 2 +- Source/aweXpect.Reflection/ThatAssembly.Targets.cs | 2 +- Source/aweXpect.Reflection/ThatConstructor.HasInParameter.cs | 2 +- .../aweXpect.Reflection/ThatConstructor.HasOptionalParameter.cs | 2 +- Source/aweXpect.Reflection/ThatConstructor.HasOutParameter.cs | 2 +- .../aweXpect.Reflection/ThatConstructor.HasParamsParameter.cs | 2 +- Source/aweXpect.Reflection/ThatConstructor.HasRefParameter.cs | 2 +- Source/aweXpect.Reflection/ThatConstructor.cs | 2 +- Source/aweXpect.Reflection/ThatConstructors.HaveInParameter.cs | 2 +- .../ThatConstructors.HaveOptionalParameter.cs | 2 +- Source/aweXpect.Reflection/ThatConstructors.HaveOutParameter.cs | 2 +- .../aweXpect.Reflection/ThatConstructors.HaveParamsParameter.cs | 2 +- Source/aweXpect.Reflection/ThatConstructors.HaveRefParameter.cs | 2 +- Source/aweXpect.Reflection/ThatEvent.IsAbstract.cs | 2 +- Source/aweXpect.Reflection/ThatEvent.IsSealed.cs | 2 +- Source/aweXpect.Reflection/ThatEvents.AreAbstract.cs | 2 +- Source/aweXpect.Reflection/ThatField.IsConstant.cs | 2 +- Source/aweXpect.Reflection/ThatField.IsReadOnly.cs | 2 +- Source/aweXpect.Reflection/ThatFields.AreConstant.cs | 2 +- Source/aweXpect.Reflection/ThatFields.AreReadOnly.cs | 2 +- Source/aweXpect.Reflection/ThatMember.IsObsolete.cs | 2 +- Source/aweXpect.Reflection/ThatMembers.AreObsolete.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.HasInParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.HasOptionalParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.HasOutParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.HasParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.HasParamsParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.HasRefParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.IsAbstract.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.IsAnExtensionMethod.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.IsAsync.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.IsGeneric.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.IsSealed.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.Returns.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.ReturnsExactly.cs | 2 +- Source/aweXpect.Reflection/ThatMethod.ReturnsVoid.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.AreAsync.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.AreExtensionMethods.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.AreOperators.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.HaveInParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.HaveOptionalParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.HaveOutParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.HaveParamsParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.HaveRefParameter.cs | 2 +- Source/aweXpect.Reflection/ThatMethods.ReturnVoid.cs | 2 +- .../ThatProperties.AreExtensionProperties.cs | 2 +- Source/aweXpect.Reflection/ThatProperties.AreIndexers.cs | 2 +- Source/aweXpect.Reflection/ThatProperties.AreReadOnly.cs | 2 +- Source/aweXpect.Reflection/ThatProperties.AreReadWrite.cs | 2 +- Source/aweXpect.Reflection/ThatProperties.AreReadable.cs | 2 +- Source/aweXpect.Reflection/ThatProperties.AreWritable.cs | 2 +- Source/aweXpect.Reflection/ThatProperties.AreWriteOnly.cs | 2 +- Source/aweXpect.Reflection/ThatProperty.IsAbstract.cs | 2 +- .../aweXpect.Reflection/ThatProperty.IsAnExtensionProperty.cs | 2 +- Source/aweXpect.Reflection/ThatProperty.IsAnIndexer.cs | 2 +- Source/aweXpect.Reflection/ThatProperty.IsReadOnly.cs | 2 +- Source/aweXpect.Reflection/ThatProperty.IsReadWrite.cs | 2 +- Source/aweXpect.Reflection/ThatProperty.IsReadable.cs | 2 +- Source/aweXpect.Reflection/ThatProperty.IsSealed.cs | 2 +- Source/aweXpect.Reflection/ThatProperty.IsWritable.cs | 2 +- Source/aweXpect.Reflection/ThatProperty.IsWriteOnly.cs | 2 +- Source/aweXpect.Reflection/ThatType.InheritsFrom.cs | 2 +- Source/aweXpect.Reflection/ThatType.IsARefStruct.cs | 2 +- Source/aweXpect.Reflection/ThatType.IsGeneric.cs | 2 +- Source/aweXpect.Reflection/ThatType.IsReadOnly.cs | 2 +- Source/aweXpect.Reflection/ThatTypes.AreReadOnly.cs | 2 +- Source/aweXpect.Reflection/ThatTypes.AreRefStructs.cs | 2 +- Source/aweXpect.Reflection/ThatTypes.HaveConversionOperator.cs | 2 +- Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs | 2 +- Source/aweXpect.Reflection/Types.cs | 2 +- .../Helpers/AssemblyHelpersTests.cs | 2 +- .../Helpers/AtIndexMatchTests.cs | 2 +- .../Helpers/CollectionConstraintResultTests.cs | 2 +- .../Helpers/LinqAsyncHelpersTests.cs | 2 +- .../TestHelpers/ValueFormatterHelper.cs | 2 +- .../Collections/AccessModifiersExtensions.Tests.cs | 2 +- .../Collections/FilteredReuseIndependenceTests.cs | 2 +- .../Collections/MemberFilterState.Tests.cs | 2 +- .../DependencyResolverCustomizationTests.cs | 2 +- .../Examples/CecilDependencyResolver.cs | 2 +- .../Examples/CecilDependencyResolverTests.cs | 2 +- Tests/aweXpect.Reflection.Tests/Examples/ExampleTests.cs | 2 +- .../ExtensionGroupingTypeFilteringTests.cs | 2 +- .../ExtensionPropertyDiscoveryTests.cs | 2 +- .../Filters/AssemblyFilters.Except.Tests.cs | 2 +- .../Filters/AssemblyFilters.MemberAccess.Tests.cs | 2 +- .../Filters/AssemblyFilters.WhichAreNotStrongNamed.Tests.cs | 2 +- .../Filters/AssemblyFilters.WhichAreStrongNamed.Tests.cs | 2 +- .../Filters/AssemblyFilters.WhichDependOn.Tests.cs | 2 +- .../Filters/AssemblyFilters.WhichDependOnlyOn.Tests.cs | 2 +- .../Filters/AssemblyFilters.WhichDoNotDependOn.Tests.cs | 2 +- .../Filters/AssemblyFilters.WhichTarget.Tests.cs | 2 +- .../Filters/AssemblyFilters.With.AttributeTests.cs | 2 +- .../Filters/AssemblyFilters.WithVersion.Tests.cs | 2 +- .../Filters/ConstructorFilters.Except.Tests.cs | 2 +- ...onstructorFilters.ParameterModifierExactlyOverloads.Tests.cs | 2 +- .../ConstructorFilters.ParameterModifierTypedOverloads.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAre.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreInternal.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreNotInternal.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreNotObsolete.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreNotPrivate.Tests.cs | 2 +- .../ConstructorFilters.WhichAreNotPrivateProtected.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreNotProtected.Tests.cs | 2 +- .../ConstructorFilters.WhichAreNotProtectedInternal.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreNotPublic.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreNotStatic.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreObsolete.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichArePrivate.Tests.cs | 2 +- .../ConstructorFilters.WhichArePrivateProtected.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreProtected.Tests.cs | 2 +- .../ConstructorFilters.WhichAreProtectedInternal.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichArePublic.Tests.cs | 2 +- .../Filters/ConstructorFilters.WhichAreStatic.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithInParameter.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithOptionalParameter.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithOutParameter.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithParameter.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithParameterCount.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithParameterExactly.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithParameterModifier.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithParamsParameter.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithRefParameter.Tests.cs | 2 +- .../Filters/ConstructorFilters.WithoutParameters.Tests.cs | 2 +- .../Filters/EventFilters.Except.Tests.cs | 2 +- .../Filters/EventFilters.WhichAre.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreAbstract.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreInternal.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotAbstract.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotInternal.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotObsolete.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotPrivate.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotPrivateProtected.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotProtected.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotProtectedInternal.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotPublic.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreNotSealed.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreObsolete.Tests.cs | 2 +- .../Filters/EventFilters.WhichArePrivate.Tests.cs | 2 +- .../Filters/EventFilters.WhichArePrivateProtected.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreProtected.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreProtectedInternal.Tests.cs | 2 +- .../Filters/EventFilters.WhichArePublic.Tests.cs | 2 +- .../Filters/EventFilters.WhichAreSealed.Tests.cs | 2 +- .../Filters/FieldFilters.Except.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAre.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreConstant.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreInternal.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotConstant.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotInternal.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotObsolete.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotPrivate.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotPrivateProtected.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotProtected.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotProtectedInternal.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotPublic.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotReadOnly.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreNotStatic.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreObsolete.Tests.cs | 2 +- .../Filters/FieldFilters.WhichArePrivate.Tests.cs | 2 +- .../Filters/FieldFilters.WhichArePrivateProtected.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreProtected.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreProtectedInternal.Tests.cs | 2 +- .../Filters/FieldFilters.WhichArePublic.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreReadOnly.Tests.cs | 2 +- .../Filters/FieldFilters.WhichAreStatic.Tests.cs | 2 +- .../Filters/MethodFilters.Except.Tests.cs | 2 +- .../MethodFilters.ParameterModifierExactlyOverloads.Tests.cs | 2 +- .../MethodFilters.ParameterModifierTypedOverloads.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAre.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreAbstract.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreAsync.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreExtensionMethods.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreInternal.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotAbstract.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotAsync.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotExtensionMethods.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotInternal.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotObsolete.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotPrivate.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotPrivateProtected.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotProtected.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotProtectedInternal.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotPublic.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotSealed.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreNotStatic.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreObsolete.Tests.cs | 2 +- .../Filters/MethodFilters.WhichArePrivate.Tests.cs | 2 +- .../Filters/MethodFilters.WhichArePrivateProtected.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreProtected.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreProtectedInternal.Tests.cs | 2 +- .../Filters/MethodFilters.WhichArePublic.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreSealed.Tests.cs | 2 +- .../Filters/MethodFilters.WhichAreStatic.Tests.cs | 2 +- .../Filters/MethodFilters.WhichReturn.Tests.cs | 2 +- .../Filters/MethodFilters.WhichReturnExactly.Tests.cs | 2 +- .../Filters/MethodFilters.WhichReturnVoid.Tests.cs | 2 +- .../Filters/MethodFilters.WithInParameter.Tests.cs | 2 +- .../Filters/MethodFilters.WithOptionalParameter.Tests.cs | 2 +- .../Filters/MethodFilters.WithOutParameter.Tests.cs | 2 +- .../Filters/MethodFilters.WithParameter.Tests.cs | 2 +- .../Filters/MethodFilters.WithParameterCount.Tests.cs | 2 +- .../Filters/MethodFilters.WithParameterExactly.Tests.cs | 2 +- .../Filters/MethodFilters.WithParameterModifier.Tests.cs | 2 +- .../Filters/MethodFilters.WithParamsParameter.Tests.cs | 2 +- .../Filters/MethodFilters.WithRefParameter.Tests.cs | 2 +- .../Filters/MethodFilters.WithoutParameters.Tests.cs | 2 +- .../Filters/PropertyFilters.Except.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAre.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreAbstract.Tests.cs | 2 +- .../PropertyFilters.WhichAreExtensionProperties.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreIndexers.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreInternal.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotAbstract.Tests.cs | 2 +- .../PropertyFilters.WhichAreNotExtensionProperties.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotIndexers.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotInternal.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotObsolete.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotPrivate.Tests.cs | 2 +- .../PropertyFilters.WhichAreNotPrivateProtected.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotProtected.Tests.cs | 2 +- .../PropertyFilters.WhichAreNotProtectedInternal.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotPublic.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotSealed.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreNotStatic.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreObsolete.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichArePrivate.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichArePrivateProtected.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreProtected.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreProtectedInternal.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichArePublic.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreReadOnly.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreReadWrite.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreReadable.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreSealed.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreStatic.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreWritable.Tests.cs | 2 +- .../Filters/PropertyFilters.WhichAreWriteOnly.Tests.cs | 2 +- .../Filters/TypeFilters.Except.Tests.cs | 2 +- .../Filters/TypeFilters.MemberAccess.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAre.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreAbstract.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreClasses.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreEnums.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreInterfaces.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreInternal.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNested.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotAbstract.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotClasses.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotEnums.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotInterfaces.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotInternal.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotNested.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotObsolete.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotPrivate.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotPrivateProtected.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotProtected.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotProtectedInternal.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotPublic.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotReadOnly.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotRecordStructs.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotRecords.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotRefStructs.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotSealed.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotStatic.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreNotStructs.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreObsolete.Tests.cs | 2 +- .../Filters/TypeFilters.WhichArePrivate.Tests.cs | 2 +- .../Filters/TypeFilters.WhichArePrivateProtected.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreProtected.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreProtectedInternal.Tests.cs | 2 +- .../Filters/TypeFilters.WhichArePublic.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreReadOnly.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreRecordStructs.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreRecords.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreRefStructs.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreSealed.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreStatic.Tests.cs | 2 +- .../Filters/TypeFilters.WhichAreStructs.Tests.cs | 2 +- .../Filters/TypeFilters.WhichContainConstructors.Tests.cs | 2 +- .../Filters/TypeFilters.WhichContainEvents.Tests.cs | 2 +- .../Filters/TypeFilters.WhichContainFields.Tests.cs | 2 +- .../Filters/TypeFilters.WhichContainMethods.Tests.cs | 2 +- .../Filters/TypeFilters.WhichContainProperties.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/TestHelpers/AssemblyExtensions.cs | 2 +- .../TestHelpers/AsyncEnumerableExtensions.cs | 2 +- .../TestHelpers/Dependencies/CycleFixtures.cs | 2 +- .../TestHelpers/MethodInfoExtensions.cs | 2 +- .../TestHelpers/Types/AbstractClassWithMembers.cs | 2 +- .../TestHelpers/Types/ClassInNamespaceScope.cs | 2 +- .../TestHelpers/Types/ClassInNestedNamespaceScope.cs | 2 +- .../TestHelpers/Types/ClassInSiblingNamespaceScope.cs | 2 +- .../TestHelpers/Types/ClassWithAsyncMembers.cs | 2 +- .../TestHelpers/Types/ClassWithObsoleteMembers.cs | 2 +- .../TestHelpers/Types/ClassWithOperators.cs | 2 +- .../TestHelpers/Types/ClassWithSealedMembers.cs | 2 +- .../TestHelpers/Types/GenericClassWithNewExtensionMethods.cs | 2 +- .../TestHelpers/Types/GenericClassWithNewExtensionProperties.cs | 2 +- .../TestHelpers/Types/InternalClass.cs | 2 +- .../aweXpect.Reflection.Tests/TestHelpers/Types/InternalEnum.cs | 2 +- .../TestHelpers/Types/InternalGenericRecord.cs | 2 +- .../TestHelpers/Types/InternalGenericRecordStruct.cs | 2 +- .../TestHelpers/Types/InternalGenericStruct.cs | 2 +- .../TestHelpers/Types/InternalRecord.cs | 2 +- .../TestHelpers/Types/InternalRecordStruct.cs | 2 +- .../TestHelpers/Types/InternalStruct.cs | 2 +- .../TestHelpers/Types/ObsoleteClass.cs | 2 +- .../TestHelpers/Types/ProtectedGenericRecord.cs | 2 +- .../TestHelpers/Types/ProtectedGenericRecordStruct.cs | 2 +- .../TestHelpers/Types/ProtectedGenericStruct.cs | 2 +- .../TestHelpers/Types/PublicAbstractRecord.cs | 2 +- .../aweXpect.Reflection.Tests/TestHelpers/Types/PublicClass.cs | 2 +- Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicEnum.cs | 2 +- .../TestHelpers/Types/PublicReadOnlyStruct.cs | 2 +- .../aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecord.cs | 2 +- .../TestHelpers/Types/PublicRecordStruct.cs | 2 +- .../TestHelpers/Types/PublicRefStruct.cs | 2 +- .../aweXpect.Reflection.Tests/TestHelpers/Types/PublicStruct.cs | 2 +- .../TestHelpers/Types/StaticClassWithExtensionMethods.cs | 2 +- .../TestHelpers/Types/StaticClassWithNewExtensionMethods.cs | 2 +- .../TestHelpers/Types/StaticClassWithNewExtensionProperties.cs | 2 +- .../TestHelpers/Types/TestClassWithFieldModifiers.cs | 2 +- .../TestHelpers/Types/TestClassWithIndexers.cs | 2 +- .../TestHelpers/Types/TestClassWithReadWriteProperties.cs | 2 +- .../ThatAssemblies.AreNotStrongNamed.Tests.cs | 2 +- .../ThatAssemblies.AreStrongNamed.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatAssemblies.DependOn.Tests.cs | 2 +- .../ThatAssemblies.DependOnlyOn.Tests.cs | 2 +- .../ThatAssemblies.DoNotDependOn.Tests.cs | 2 +- .../ThatAssemblies.Have.AttributeTests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatAssemblies.Target.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOn.Tests.cs | 2 +- .../ThatAssembly.DependsOnlyOn.Tests.cs | 2 +- .../ThatAssembly.DoesNotDependOn.Tests.cs | 2 +- .../ThatAssembly.Has.AttributeTests.cs | 2 +- .../ThatAssembly.IsNotStrongNamed.Tests.cs | 2 +- .../ThatAssembly.IsStrongNamed.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatAssembly.Targets.Tests.cs | 2 +- .../ThatConstructor.Has.AttributeTests.cs | 2 +- .../ThatConstructor.HasInParameter.Tests.cs | 2 +- .../ThatConstructor.HasOptionalParameter.Tests.cs | 2 +- .../ThatConstructor.HasOutParameter.Tests.cs | 2 +- .../ThatConstructor.HasParamsParameter.Tests.cs | 2 +- .../ThatConstructor.HasRefParameter.Tests.cs | 2 +- .../ThatConstructor.IsNotObsolete.Tests.cs | 2 +- .../ThatConstructor.IsNotStatic.Tests.cs | 2 +- .../ThatConstructor.IsObsolete.Tests.cs | 2 +- .../ThatConstructor.ParameterModifierExactlyOverloads.Tests.cs | 2 +- .../ThatConstructor.ParameterModifierTypedOverloads.Tests.cs | 2 +- .../ThatConstructors.AreNotObsolete.Tests.cs | 2 +- .../ThatConstructors.AreObsolete.Tests.cs | 2 +- .../ThatConstructors.HaveInParameter.Tests.cs | 2 +- .../ThatConstructors.HaveOptionalParameter.Tests.cs | 2 +- .../ThatConstructors.HaveOutParameter.Tests.cs | 2 +- .../ThatConstructors.HaveParameterExactly.Tests.cs | 2 +- .../ThatConstructors.HaveParamsParameter.Tests.cs | 2 +- .../ThatConstructors.HaveRefParameter.Tests.cs | 2 +- .../ThatConstructors.ParameterModifierExactlyOverloads.Tests.cs | 2 +- .../ThatConstructors.ParameterModifierTypedOverloads.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatEvent.Has.AttributeTests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatEvent.IsAbstract.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatEvent.IsNotAbstract.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatEvent.IsNotObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotSealed.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatEvent.IsObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatEvent.IsSealed.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatEvents.AreAbstract.Tests.cs | 2 +- .../ThatEvents.AreNotObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatEvents.AreObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatEvents.AreSealed.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatField.Has.AttributeTests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatField.IsConstant.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatField.IsNotConstant.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatField.IsNotObsolete.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatField.IsNotReadOnly.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatField.IsNotStatic.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatField.IsObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatField.IsReadOnly.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatFields.AreConstant.Tests.cs | 2 +- .../ThatFields.AreNotConstant.Tests.cs | 2 +- .../ThatFields.AreNotObsolete.Tests.cs | 2 +- .../ThatFields.AreNotReadOnly.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatFields.AreObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatFields.AreReadOnly.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatMethod.Has.AttributeTests.cs | 2 +- .../ThatMethod.HasInParameter.Tests.cs | 2 +- .../ThatMethod.HasOptionalParameter.Tests.cs | 2 +- .../ThatMethod.HasOutParameter.Tests.cs | 2 +- .../ThatMethod.HasParamsParameter.Tests.cs | 2 +- .../ThatMethod.HasRefParameter.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.IsAbstract.Tests.cs | 2 +- .../ThatMethod.IsAnExtensionMethod.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.IsAsync.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.Tests.cs | 2 +- .../ThatMethod.IsGeneric.WithArgument.Tests.cs | 2 +- .../ThatMethod.IsGeneric.WithArgumentCount.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatMethod.IsNotAbstract.Tests.cs | 2 +- .../ThatMethod.IsNotAnExtensionMethod.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAsync.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatMethod.IsNotGeneric.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatMethod.IsNotObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotSealed.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotStatic.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.IsObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.IsSealed.Tests.cs | 2 +- .../ThatMethod.ParameterModifierExactlyOverloads.Tests.cs | 2 +- .../ThatMethod.ParameterModifierTypedOverloads.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethod.ReturnsVoid.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatMethods.AreAbstract.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethods.AreAsync.Tests.cs | 2 +- .../ThatMethods.AreExtensionMethods.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.Tests.cs | 2 +- .../ThatMethods.AreGeneric.WithArgument.Tests.cs | 2 +- .../ThatMethods.AreGeneric.WithArgumentCount.Tests.cs | 2 +- .../ThatMethods.AreNotAbstract.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatMethods.AreNotAsync.Tests.cs | 2 +- .../ThatMethods.AreNotExtensionMethods.Tests.cs | 2 +- .../ThatMethods.AreNotGeneric.Tests.cs | 2 +- .../ThatMethods.AreNotObsolete.Tests.cs | 2 +- .../ThatMethods.AreNotOperators.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatMethods.AreObsolete.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatMethods.AreOperators.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethods.AreSealed.Tests.cs | 2 +- .../ThatMethods.HaveInParameter.Tests.cs | 2 +- .../ThatMethods.HaveOptionalParameter.Tests.cs | 2 +- .../ThatMethods.HaveOutParameter.Tests.cs | 2 +- .../ThatMethods.HaveParameterExactly.Tests.cs | 2 +- .../ThatMethods.HaveParamsParameter.Tests.cs | 2 +- .../ThatMethods.HaveRefParameter.Tests.cs | 2 +- .../ThatMethods.ParameterModifierExactlyOverloads.Tests.cs | 2 +- .../ThatMethods.ParameterModifierTypedOverloads.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatMethods.ReturnVoid.Tests.cs | 2 +- .../ThatProperties.AreAbstract.Tests.cs | 2 +- .../ThatProperties.AreExtensionProperties.Tests.cs | 2 +- .../ThatProperties.AreIndexers.Tests.cs | 2 +- .../ThatProperties.AreNotExtensionProperties.Tests.cs | 2 +- .../ThatProperties.AreNotIndexers.Tests.cs | 2 +- .../ThatProperties.AreNotObsolete.Tests.cs | 2 +- .../ThatProperties.AreObsolete.Tests.cs | 2 +- .../ThatProperties.AreReadOnly.Tests.cs | 2 +- .../ThatProperties.AreReadWrite.Tests.cs | 2 +- .../ThatProperties.AreReadable.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperties.AreSealed.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperties.AreStatic.Tests.cs | 2 +- .../ThatProperties.AreWritable.Tests.cs | 2 +- .../ThatProperties.AreWriteOnly.Tests.cs | 2 +- .../ThatProperty.Has.AttributeTests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsAbstract.Tests.cs | 2 +- .../ThatProperty.IsAnExtensionProperty.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsAnIndexer.Tests.cs | 2 +- .../ThatProperty.IsNotAbstract.Tests.cs | 2 +- .../ThatProperty.IsNotAnExtensionProperty.Tests.cs | 2 +- .../ThatProperty.IsNotAnIndexer.Tests.cs | 2 +- .../ThatProperty.IsNotObsolete.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsNotSealed.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsNotStatic.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsObsolete.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsReadOnly.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsReadWrite.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsReadable.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatProperty.IsSealed.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsWritable.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatProperty.IsWriteOnly.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatType.ContainsMethods.Tests.cs | 2 +- .../ThatType.DoesNotInheritFrom.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatType.InheritsFrom.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatType.IsARefStruct.Tests.cs | 2 +- .../ThatType.IsGeneric.WithArgument.Tests.cs | 2 +- .../ThatType.IsGeneric.WithArgumentCount.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatType.IsNotARefStruct.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatType.IsNotObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatType.IsNotReadOnly.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatType.IsObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatType.IsReadOnly.Tests.cs | 2 +- .../ThatTypes.AreGeneric.WithArgument.Tests.cs | 2 +- .../ThatTypes.AreGeneric.WithArgumentCount.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatTypes.AreNotObsolete.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatTypes.AreNotReadOnly.Tests.cs | 2 +- .../ThatTypes.AreNotRefStructs.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatTypes.AreObsolete.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatTypes.AreReadOnly.Tests.cs | 2 +- .../aweXpect.Reflection.Tests/ThatTypes.AreRefStructs.Tests.cs | 2 +- .../ThatTypes.DoNotInheritFrom.Tests.cs | 2 +- .../ThatTypes.HaveNoDependencyCycles.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/ThatTypes.InheritFrom.Tests.cs | 2 +- Tests/aweXpect.Reflection.Tests/TypesTests.cs | 2 +- 615 files changed, 615 insertions(+), 613 deletions(-) diff --git a/.editorconfig b/.editorconfig index 0c648429..3f910679 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,6 +17,7 @@ insert_final_newline = true # C# files [*.cs] +charset = utf-8-bom #### .NET Coding Conventions #### diff --git a/.gitattributes b/.gitattributes index 1f24147a..69d1e691 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,6 +8,7 @@ # ReSharper DotSettings files are in Unix Format *.DotSettings text eol=lf *.sln text eol=crlf +*.cs text eol=crlf # Allows checking out and developing in Windows # while mounting and running tests in Linux diff --git a/Pipeline/Build.ApiChecks.cs b/Pipeline/Build.ApiChecks.cs index 81cac454..ff507bb5 100644 --- a/Pipeline/Build.ApiChecks.cs +++ b/Pipeline/Build.ApiChecks.cs @@ -1,4 +1,4 @@ -using Nuke.Common; +using Nuke.Common; using Nuke.Common.ProjectModel; using Nuke.Common.Tooling; using Nuke.Common.Tools.DotNet; diff --git a/Pipeline/Build.Benchmarks.cs b/Pipeline/Build.Benchmarks.cs index 7fa7706b..42d668c0 100644 --- a/Pipeline/Build.Benchmarks.cs +++ b/Pipeline/Build.Benchmarks.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Text; diff --git a/Pipeline/Build.CodeAnalysis.cs b/Pipeline/Build.CodeAnalysis.cs index 729cc070..0788de86 100644 --- a/Pipeline/Build.CodeAnalysis.cs +++ b/Pipeline/Build.CodeAnalysis.cs @@ -1,4 +1,4 @@ -using Nuke.Common; +using Nuke.Common; using Nuke.Common.Tools.SonarScanner; // ReSharper disable AllUnderscoreLocalParameterName diff --git a/Pipeline/Build.CodeCoverage.cs b/Pipeline/Build.CodeCoverage.cs index e264a627..162fc51d 100644 --- a/Pipeline/Build.CodeCoverage.cs +++ b/Pipeline/Build.CodeCoverage.cs @@ -1,4 +1,4 @@ -using Nuke.Common; +using Nuke.Common; using Nuke.Common.Tooling; using Nuke.Common.Tools.ReportGenerator; using static Nuke.Common.Tools.ReportGenerator.ReportGeneratorTasks; diff --git a/Pipeline/Build.Compile.cs b/Pipeline/Build.Compile.cs index f035ffa1..79acd109 100644 --- a/Pipeline/Build.Compile.cs +++ b/Pipeline/Build.Compile.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using Nuke.Common; using Nuke.Common.IO; diff --git a/Pipeline/Build.MutationTests.cs b/Pipeline/Build.MutationTests.cs index e7507889..9435e8e8 100644 --- a/Pipeline/Build.MutationTests.cs +++ b/Pipeline/Build.MutationTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; diff --git a/Pipeline/Build.Pack.cs b/Pipeline/Build.Pack.cs index 8f474a3c..61bb5a03 100644 --- a/Pipeline/Build.Pack.cs +++ b/Pipeline/Build.Pack.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; diff --git a/Pipeline/Build.UnitTest.cs b/Pipeline/Build.UnitTest.cs index 4b9d16f9..c98b9258 100644 --- a/Pipeline/Build.UnitTest.cs +++ b/Pipeline/Build.UnitTest.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using Nuke.Common; using Nuke.Common.ProjectModel; using Nuke.Common.Tooling; diff --git a/Pipeline/Build.cs b/Pipeline/Build.cs index ee7a4770..8e3370ee 100644 --- a/Pipeline/Build.cs +++ b/Pipeline/Build.cs @@ -1,4 +1,4 @@ -using Nuke.Common; +using Nuke.Common; using Nuke.Common.CI.GitHubActions; using Nuke.Common.IO; using Nuke.Common.ProjectModel; diff --git a/Pipeline/Configuration.cs b/Pipeline/Configuration.cs index 82b0bead..6e024072 100644 --- a/Pipeline/Configuration.cs +++ b/Pipeline/Configuration.cs @@ -1,4 +1,4 @@ -using System.ComponentModel; +using System.ComponentModel; using Nuke.Common.Tooling; [TypeConverter(typeof(TypeConverter))] diff --git a/Source/aweXpect.Reflection/Collections/AssembliesAbstractSealedBuilder.cs b/Source/aweXpect.Reflection/Collections/AssembliesAbstractSealedBuilder.cs index b39b590d..2dbe2e35 100644 --- a/Source/aweXpect.Reflection/Collections/AssembliesAbstractSealedBuilder.cs +++ b/Source/aweXpect.Reflection/Collections/AssembliesAbstractSealedBuilder.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/Collections/AssembliesTypeBuilder.cs b/Source/aweXpect.Reflection/Collections/AssembliesTypeBuilder.cs index 47ffff19..600a517b 100644 --- a/Source/aweXpect.Reflection/Collections/AssembliesTypeBuilder.cs +++ b/Source/aweXpect.Reflection/Collections/AssembliesTypeBuilder.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/Collections/Filter.cs b/Source/aweXpect.Reflection/Collections/Filter.cs index de3a3116..91130941 100644 --- a/Source/aweXpect.Reflection/Collections/Filter.cs +++ b/Source/aweXpect.Reflection/Collections/Filter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Threading.Tasks; diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs b/Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs index 9cd18ce9..cffacffd 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs b/Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs index 0a40c396..afaa1999 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Events.cs b/Source/aweXpect.Reflection/Collections/Filtered.Events.cs index 41ed5ca3..6e9db70d 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Events.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Events.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Fields.cs b/Source/aweXpect.Reflection/Collections/Filtered.Fields.cs index c014b7fe..286bc90d 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Fields.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Fields.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Methods.cs b/Source/aweXpect.Reflection/Collections/Filtered.Methods.cs index fdd8f4e8..d80118c7 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Methods.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Methods.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Properties.cs b/Source/aweXpect.Reflection/Collections/Filtered.Properties.cs index cf3bb5a3..6eb34736 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Properties.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Properties.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text.RegularExpressions; diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Types.cs b/Source/aweXpect.Reflection/Collections/Filtered.Types.cs index ae45a164..2bdcac85 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Types.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Types.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/Collections/Filtered.cs b/Source/aweXpect.Reflection/Collections/Filtered.cs index 271eec04..ed286c26 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.cs @@ -1,4 +1,4 @@ -#if NET8_0_OR_GREATER +#if NET8_0_OR_GREATER using System.Threading; using System.Threading.Tasks; #else diff --git a/Source/aweXpect.Reflection/Collections/ILimitedAbstractSealedTypeAssemblies.cs b/Source/aweXpect.Reflection/Collections/ILimitedAbstractSealedTypeAssemblies.cs index 568210f5..6dacc4db 100644 --- a/Source/aweXpect.Reflection/Collections/ILimitedAbstractSealedTypeAssemblies.cs +++ b/Source/aweXpect.Reflection/Collections/ILimitedAbstractSealedTypeAssemblies.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Collections; +namespace aweXpect.Reflection.Collections; /// /// A limited interface for filtering types in assemblies after an Abstract or Sealed modifier. diff --git a/Source/aweXpect.Reflection/Collections/ILimitedStaticTypeAssemblies.cs b/Source/aweXpect.Reflection/Collections/ILimitedStaticTypeAssemblies.cs index 172a6fef..d0edced7 100644 --- a/Source/aweXpect.Reflection/Collections/ILimitedStaticTypeAssemblies.cs +++ b/Source/aweXpect.Reflection/Collections/ILimitedStaticTypeAssemblies.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Collections; +namespace aweXpect.Reflection.Collections; /// /// A limited interface to allow basic filtering for types in assemblies. diff --git a/Source/aweXpect.Reflection/Collections/IMembers.cs b/Source/aweXpect.Reflection/Collections/IMembers.cs index abec2e0c..cbc40e51 100644 --- a/Source/aweXpect.Reflection/Collections/IMembers.cs +++ b/Source/aweXpect.Reflection/Collections/IMembers.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Collections; +namespace aweXpect.Reflection.Collections; /// /// A terminal interface that exposes the five member-kind selectors. diff --git a/Source/aweXpect.Reflection/Collections/ITypeAssemblies.cs b/Source/aweXpect.Reflection/Collections/ITypeAssemblies.cs index 1e0eefcc..9299c987 100644 --- a/Source/aweXpect.Reflection/Collections/ITypeAssemblies.cs +++ b/Source/aweXpect.Reflection/Collections/ITypeAssemblies.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Collections; +namespace aweXpect.Reflection.Collections; /// /// An interface to allow filtering for types in assemblies. diff --git a/Source/aweXpect.Reflection/Collections/MemberFilterState.cs b/Source/aweXpect.Reflection/Collections/MemberFilterState.cs index 553b1035..6cbfe119 100644 --- a/Source/aweXpect.Reflection/Collections/MemberFilterState.cs +++ b/Source/aweXpect.Reflection/Collections/MemberFilterState.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Helpers; namespace aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Collections/TypesMemberBuilder.cs b/Source/aweXpect.Reflection/Collections/TypesMemberBuilder.cs index 01685ef3..adea08c0 100644 --- a/Source/aweXpect.Reflection/Collections/TypesMemberBuilder.cs +++ b/Source/aweXpect.Reflection/Collections/TypesMemberBuilder.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/AssemblyFilters.Except.cs b/Source/aweXpect.Reflection/Filters/AssemblyFilters.Except.cs index e8b9ae8f..5123c0d3 100644 --- a/Source/aweXpect.Reflection/Filters/AssemblyFilters.Except.cs +++ b/Source/aweXpect.Reflection/Filters/AssemblyFilters.Except.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichAreStrongNamed.cs b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichAreStrongNamed.cs index 88342b9e..36667d5a 100644 --- a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichAreStrongNamed.cs +++ b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichAreStrongNamed.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDependOn.cs b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDependOn.cs index fa427efc..5d6c1c66 100644 --- a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDependOn.cs +++ b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDependOn.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Core; using aweXpect.Options; diff --git a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDependOnlyOn.cs b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDependOnlyOn.cs index 48bc05a8..22b5b342 100644 --- a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDependOnlyOn.cs +++ b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDependOnlyOn.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Core; using aweXpect.Customization; diff --git a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDoNotDependOn.cs b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDoNotDependOn.cs index 5be518bb..c9edff4a 100644 --- a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDoNotDependOn.cs +++ b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichDoNotDependOn.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Core; using aweXpect.Options; diff --git a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichTarget.cs b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichTarget.cs index 345864a9..a3516743 100644 --- a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichTarget.cs +++ b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WhichTarget.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Core; using aweXpect.Options; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/AssemblyFilters.With.cs b/Source/aweXpect.Reflection/Filters/AssemblyFilters.With.cs index 3750d336..13ed090b 100644 --- a/Source/aweXpect.Reflection/Filters/AssemblyFilters.With.cs +++ b/Source/aweXpect.Reflection/Filters/AssemblyFilters.With.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WithVersion.cs b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WithVersion.cs index ebb72ae5..a5dd7723 100644 --- a/Source/aweXpect.Reflection/Filters/AssemblyFilters.WithVersion.cs +++ b/Source/aweXpect.Reflection/Filters/AssemblyFilters.WithVersion.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.Except.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.Except.cs index 3b741572..ba7f4dc1 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.Except.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.Except.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WhichAreObsolete.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WhichAreObsolete.cs index e31c475d..d827cda6 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WhichAreObsolete.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WhichAreObsolete.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WhichAreStatic.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WhichAreStatic.cs index d529e3bd..5d08c74d 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WhichAreStatic.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WhichAreStatic.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithInParameter.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithInParameter.cs index 7fb0cf60..9bad8010 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithInParameter.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithInParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithOptionalParameter.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithOptionalParameter.cs index 196fb019..aaa471be 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithOptionalParameter.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithOptionalParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithOutParameter.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithOutParameter.cs index 470a3076..310b0db6 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithOutParameter.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithOutParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameter.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameter.cs index dcfa8ae0..4aef707a 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameter.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameterCount.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameterCount.cs index 7e37ec97..607b8075 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameterCount.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameterCount.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameterExactly.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameterExactly.cs index fe94c265..21ec08ce 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameterExactly.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParameterExactly.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParamsParameter.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParamsParameter.cs index b058a17d..1e9f2bf7 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParamsParameter.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithParamsParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithRefParameter.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithRefParameter.cs index 9c73b48b..2b896e16 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithRefParameter.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithRefParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithoutParameters.cs b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithoutParameters.cs index 5861c85a..88bc9d20 100644 --- a/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithoutParameters.cs +++ b/Source/aweXpect.Reflection/Filters/ConstructorFilters.WithoutParameters.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/EventFilters.Except.cs b/Source/aweXpect.Reflection/Filters/EventFilters.Except.cs index df60ec70..f602620d 100644 --- a/Source/aweXpect.Reflection/Filters/EventFilters.Except.cs +++ b/Source/aweXpect.Reflection/Filters/EventFilters.Except.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreAbstract.cs b/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreAbstract.cs index 65dac1bf..4a2b0ad9 100644 --- a/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreAbstract.cs +++ b/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreAbstract.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreObsolete.cs b/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreObsolete.cs index d3e4d2e4..4a10fc58 100644 --- a/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreObsolete.cs +++ b/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreObsolete.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreSealed.cs b/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreSealed.cs index 1a9286ce..89302706 100644 --- a/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreSealed.cs +++ b/Source/aweXpect.Reflection/Filters/EventFilters.WhichAreSealed.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/FieldFilters.Except.cs b/Source/aweXpect.Reflection/Filters/FieldFilters.Except.cs index 752aed7e..34d0263c 100644 --- a/Source/aweXpect.Reflection/Filters/FieldFilters.Except.cs +++ b/Source/aweXpect.Reflection/Filters/FieldFilters.Except.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreConstant.cs b/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreConstant.cs index 8a728bbc..6eab500c 100644 --- a/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreConstant.cs +++ b/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreConstant.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreObsolete.cs b/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreObsolete.cs index 8d3eefc0..565dad7b 100644 --- a/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreObsolete.cs +++ b/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreObsolete.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreReadOnly.cs b/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreReadOnly.cs index d2cc5319..9637ca23 100644 --- a/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreReadOnly.cs +++ b/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreReadOnly.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreStatic.cs b/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreStatic.cs index 8831d2a0..bb27fa63 100644 --- a/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreStatic.cs +++ b/Source/aweXpect.Reflection/Filters/FieldFilters.WhichAreStatic.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.Except.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.Except.cs index 05db24ae..25a69403 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.Except.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.Except.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreAbstract.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreAbstract.cs index e015f5ce..2125aae4 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreAbstract.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreAbstract.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreAsync.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreAsync.cs index 6875c0ff..933c188f 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreAsync.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreAsync.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreExtensionMethods.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreExtensionMethods.cs index 735046cb..211b890c 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreExtensionMethods.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreExtensionMethods.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreObsolete.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreObsolete.cs index 46741e8b..6e7356c5 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreObsolete.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreObsolete.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreSealed.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreSealed.cs index 4614a2e4..a6423120 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreSealed.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreSealed.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreStatic.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreStatic.cs index d93b94e2..0d301eb9 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreStatic.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichAreStatic.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturn.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturn.cs index 2e3e291d..ae2508df 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturn.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturn.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturnExactly.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturnExactly.cs index 2ef40784..ffcf1030 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturnExactly.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturnExactly.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturnVoid.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturnVoid.cs index f4572b9a..ad63d633 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturnVoid.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WhichReturnVoid.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithInParameter.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithInParameter.cs index 3c08ce91..8e918a3f 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithInParameter.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithInParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithOptionalParameter.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithOptionalParameter.cs index 1f8ec2f9..3a3762b7 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithOptionalParameter.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithOptionalParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithOutParameter.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithOutParameter.cs index f05d95b7..f0630cb0 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithOutParameter.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithOutParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameter.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameter.cs index 6da2effc..f0f8dc37 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameter.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameterCount.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameterCount.cs index 6934ab9e..fe35fead 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameterCount.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameterCount.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameterExactly.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameterExactly.cs index 572bc4b0..e7332ee1 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameterExactly.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithParameterExactly.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithParamsParameter.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithParamsParameter.cs index b9a58a45..b5d7a06f 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithParamsParameter.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithParamsParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithRefParameter.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithRefParameter.cs index 9ccb0e91..d02d9566 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithRefParameter.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithRefParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/MethodFilters.WithoutParameters.cs b/Source/aweXpect.Reflection/Filters/MethodFilters.WithoutParameters.cs index 73096e08..8a8bbb39 100644 --- a/Source/aweXpect.Reflection/Filters/MethodFilters.WithoutParameters.cs +++ b/Source/aweXpect.Reflection/Filters/MethodFilters.WithoutParameters.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.Except.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.Except.cs index 813e6f87..542ad96e 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.Except.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.Except.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreAbstract.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreAbstract.cs index 33e896db..8e344976 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreAbstract.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreAbstract.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreExtensionProperties.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreExtensionProperties.cs index a68bd8b7..7e870c1b 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreExtensionProperties.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreExtensionProperties.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreIndexers.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreIndexers.cs index ff006029..7dd43a90 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreIndexers.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreIndexers.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreObsolete.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreObsolete.cs index a9fd9d71..62cc716f 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreObsolete.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreObsolete.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadOnly.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadOnly.cs index 0e850c41..017858c0 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadOnly.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadOnly.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadWrite.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadWrite.cs index 275eb453..efcc7b35 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadWrite.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadWrite.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadable.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadable.cs index cc815da2..be2c5b39 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadable.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreReadable.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreSealed.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreSealed.cs index 0f271428..144b99ae 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreSealed.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreSealed.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreStatic.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreStatic.cs index 9fc26bd9..f21b69a4 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreStatic.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreStatic.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreWritable.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreWritable.cs index ea7d822f..09eebb24 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreWritable.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreWritable.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreWriteOnly.cs b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreWriteOnly.cs index d8b806f4..b9af9438 100644 --- a/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreWriteOnly.cs +++ b/Source/aweXpect.Reflection/Filters/PropertyFilters.WhichAreWriteOnly.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.Except.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.Except.cs index 223e5ecd..6fa56fad 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.Except.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.Except.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Runtime.CompilerServices; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreAbstract.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreAbstract.cs index f30717f4..62f9b2c4 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreAbstract.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreAbstract.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreClasses.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreClasses.cs index 92651e9c..12895e1a 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreClasses.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreClasses.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreEnums.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreEnums.cs index 9b315aeb..e55da227 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreEnums.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreEnums.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreInterfaces.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreInterfaces.cs index a56a38bc..5df871b4 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreInterfaces.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreInterfaces.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreNested.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreNested.cs index 37e0cbe5..ad72c2c6 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreNested.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreNested.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreObsolete.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreObsolete.cs index 46a04865..8920dd09 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreObsolete.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreObsolete.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreReadOnly.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreReadOnly.cs index c4d1b10c..908460e3 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreReadOnly.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreReadOnly.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRecordStructs.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRecordStructs.cs index 0e6ee9f5..fd4b43ab 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRecordStructs.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRecordStructs.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRecords.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRecords.cs index dfb6ddf5..52fdaf1c 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRecords.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRecords.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRefStructs.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRefStructs.cs index 2f3f4811..350a20b9 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRefStructs.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreRefStructs.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreSealed.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreSealed.cs index 74a1b76e..e7aeb25e 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreSealed.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreSealed.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreStatic.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreStatic.cs index 4103f21c..bd8a63a3 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreStatic.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreStatic.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreStructs.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreStructs.cs index 78de480a..e2a95256 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreStructs.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichAreStructs.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainConstructors.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainConstructors.cs index b0b81d2e..d6ed8865 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainConstructors.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainConstructors.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Core; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainEvents.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainEvents.cs index 51ea8d50..2d3f542b 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainEvents.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainEvents.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Core; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainFields.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainFields.cs index 63d43397..c56c0960 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainFields.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainFields.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Core; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainMethods.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainMethods.cs index 4b23d21b..82c6c215 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainMethods.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainMethods.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Core; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainProperties.cs b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainProperties.cs index 769fd004..c7205242 100644 --- a/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainProperties.cs +++ b/Source/aweXpect.Reflection/Filters/TypeFilters.WhichContainProperties.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Core; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Formatting/FormatterRegistration.cs b/Source/aweXpect.Reflection/Formatting/FormatterRegistration.cs index 5c846632..a8ffd7fd 100644 --- a/Source/aweXpect.Reflection/Formatting/FormatterRegistration.cs +++ b/Source/aweXpect.Reflection/Formatting/FormatterRegistration.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Core.Initialization; namespace aweXpect.Reflection.Formatting; diff --git a/Source/aweXpect.Reflection/Helpers/AssemblyHelpers.cs b/Source/aweXpect.Reflection/Helpers/AssemblyHelpers.cs index 057068f9..13002642 100644 --- a/Source/aweXpect.Reflection/Helpers/AssemblyHelpers.cs +++ b/Source/aweXpect.Reflection/Helpers/AssemblyHelpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/Helpers/AtIndexMatch.cs b/Source/aweXpect.Reflection/Helpers/AtIndexMatch.cs index 9b43759f..853b6f74 100644 --- a/Source/aweXpect.Reflection/Helpers/AtIndexMatch.cs +++ b/Source/aweXpect.Reflection/Helpers/AtIndexMatch.cs @@ -1,4 +1,4 @@ -using System; +using System; using aweXpect.Options; namespace aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs b/Source/aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs index d34d1a6d..6fe5758c 100644 --- a/Source/aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs +++ b/Source/aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs b/Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs index f0dad551..636b6a4b 100644 --- a/Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs +++ b/Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; diff --git a/Source/aweXpect.Reflection/Helpers/NullabilityHelpers.cs b/Source/aweXpect.Reflection/Helpers/NullabilityHelpers.cs index eede8bad..ccc13342 100644 --- a/Source/aweXpect.Reflection/Helpers/NullabilityHelpers.cs +++ b/Source/aweXpect.Reflection/Helpers/NullabilityHelpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Helpers/ParameterInfoHelpers.cs b/Source/aweXpect.Reflection/Helpers/ParameterInfoHelpers.cs index 60b19964..79445905 100644 --- a/Source/aweXpect.Reflection/Helpers/ParameterInfoHelpers.cs +++ b/Source/aweXpect.Reflection/Helpers/ParameterInfoHelpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/Helpers/ParameterModifierHelpers.cs b/Source/aweXpect.Reflection/Helpers/ParameterModifierHelpers.cs index 89c7f017..488b9921 100644 --- a/Source/aweXpect.Reflection/Helpers/ParameterModifierHelpers.cs +++ b/Source/aweXpect.Reflection/Helpers/ParameterModifierHelpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Core; using aweXpect.Reflection.Options; diff --git a/Source/aweXpect.Reflection/Helpers/PropertyInfoHelpers.cs b/Source/aweXpect.Reflection/Helpers/PropertyInfoHelpers.cs index d2a0e518..24ee51b9 100644 --- a/Source/aweXpect.Reflection/Helpers/PropertyInfoHelpers.cs +++ b/Source/aweXpect.Reflection/Helpers/PropertyInfoHelpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Source/aweXpect.Reflection/Options/DependencyCyclesOptions.cs b/Source/aweXpect.Reflection/Options/DependencyCyclesOptions.cs index 26c0da30..4092df73 100644 --- a/Source/aweXpect.Reflection/Options/DependencyCyclesOptions.cs +++ b/Source/aweXpect.Reflection/Options/DependencyCyclesOptions.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Options; +namespace aweXpect.Reflection.Options; /// /// Options for a namespace dependency cycle assertion. diff --git a/Source/aweXpect.Reflection/Options/TypeSetDependencyOptions.cs b/Source/aweXpect.Reflection/Options/TypeSetDependencyOptions.cs index 3c3c4343..bdff7850 100644 --- a/Source/aweXpect.Reflection/Options/TypeSetDependencyOptions.cs +++ b/Source/aweXpect.Reflection/Options/TypeSetDependencyOptions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading; diff --git a/Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs b/Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs index a3ce8131..5d65abe4 100644 --- a/Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs +++ b/Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs @@ -1,4 +1,4 @@ -using aweXpect.Core; +using aweXpect.Core; using aweXpect.Reflection.Options; using aweXpect.Results; diff --git a/Source/aweXpect.Reflection/Results/NamespaceDependencyOnlyOnResult.cs b/Source/aweXpect.Reflection/Results/NamespaceDependencyOnlyOnResult.cs index e1608204..9b2f9e15 100644 --- a/Source/aweXpect.Reflection/Results/NamespaceDependencyOnlyOnResult.cs +++ b/Source/aweXpect.Reflection/Results/NamespaceDependencyOnlyOnResult.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Core; using aweXpect.Reflection.Options; using aweXpect.Results; diff --git a/Source/aweXpect.Reflection/Results/TypeSetDependencyOnlyOnResult.cs b/Source/aweXpect.Reflection/Results/TypeSetDependencyOnlyOnResult.cs index a260919c..a197ef70 100644 --- a/Source/aweXpect.Reflection/Results/TypeSetDependencyOnlyOnResult.cs +++ b/Source/aweXpect.Reflection/Results/TypeSetDependencyOnlyOnResult.cs @@ -1,4 +1,4 @@ -using aweXpect.Core; +using aweXpect.Core; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Options; using aweXpect.Results; diff --git a/Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs b/Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs index 38d702f1..35754980 100644 --- a/Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs +++ b/Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs @@ -1,4 +1,4 @@ -using aweXpect.Core; +using aweXpect.Core; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Options; using aweXpect.Results; diff --git a/Source/aweXpect.Reflection/ThatAssemblies.AreStrongNamed.cs b/Source/aweXpect.Reflection/ThatAssemblies.AreStrongNamed.cs index 61252c87..910a8d18 100644 --- a/Source/aweXpect.Reflection/ThatAssemblies.AreStrongNamed.cs +++ b/Source/aweXpect.Reflection/ThatAssemblies.AreStrongNamed.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatAssemblies.DependOnlyOn.cs b/Source/aweXpect.Reflection/ThatAssemblies.DependOnlyOn.cs index a6d3fe74..1aaeda50 100644 --- a/Source/aweXpect.Reflection/ThatAssemblies.DependOnlyOn.cs +++ b/Source/aweXpect.Reflection/ThatAssemblies.DependOnlyOn.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatAssemblies.Target.cs b/Source/aweXpect.Reflection/ThatAssemblies.Target.cs index dc3c9c3d..0c9a5e7a 100644 --- a/Source/aweXpect.Reflection/ThatAssemblies.Target.cs +++ b/Source/aweXpect.Reflection/ThatAssemblies.Target.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using System.Threading; diff --git a/Source/aweXpect.Reflection/ThatAssembly.DependsOn.cs b/Source/aweXpect.Reflection/ThatAssembly.DependsOn.cs index 00a0f062..05cc2bd6 100644 --- a/Source/aweXpect.Reflection/ThatAssembly.DependsOn.cs +++ b/Source/aweXpect.Reflection/ThatAssembly.DependsOn.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using System.Text; using System.Threading; diff --git a/Source/aweXpect.Reflection/ThatAssembly.DependsOnlyOn.cs b/Source/aweXpect.Reflection/ThatAssembly.DependsOnlyOn.cs index 2fca6ad3..2a44f861 100644 --- a/Source/aweXpect.Reflection/ThatAssembly.DependsOnlyOn.cs +++ b/Source/aweXpect.Reflection/ThatAssembly.DependsOnlyOn.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using System.Text; using System.Threading; diff --git a/Source/aweXpect.Reflection/ThatAssembly.DoesNotDependOn.cs b/Source/aweXpect.Reflection/ThatAssembly.DoesNotDependOn.cs index c9b60c48..cfa537d1 100644 --- a/Source/aweXpect.Reflection/ThatAssembly.DoesNotDependOn.cs +++ b/Source/aweXpect.Reflection/ThatAssembly.DoesNotDependOn.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Core; using aweXpect.Core.Constraints; using aweXpect.Options; diff --git a/Source/aweXpect.Reflection/ThatAssembly.IsStrongNamed.cs b/Source/aweXpect.Reflection/ThatAssembly.IsStrongNamed.cs index a4ec989d..6c155127 100644 --- a/Source/aweXpect.Reflection/ThatAssembly.IsStrongNamed.cs +++ b/Source/aweXpect.Reflection/ThatAssembly.IsStrongNamed.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatAssembly.Targets.cs b/Source/aweXpect.Reflection/ThatAssembly.Targets.cs index 6c91a58e..79a6f25f 100644 --- a/Source/aweXpect.Reflection/ThatAssembly.Targets.cs +++ b/Source/aweXpect.Reflection/ThatAssembly.Targets.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/Source/aweXpect.Reflection/ThatConstructor.HasInParameter.cs b/Source/aweXpect.Reflection/ThatConstructor.HasInParameter.cs index 5a3a30a9..3993b2de 100644 --- a/Source/aweXpect.Reflection/ThatConstructor.HasInParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructor.HasInParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatConstructor.HasOptionalParameter.cs b/Source/aweXpect.Reflection/ThatConstructor.HasOptionalParameter.cs index c9718540..65612ec5 100644 --- a/Source/aweXpect.Reflection/ThatConstructor.HasOptionalParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructor.HasOptionalParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatConstructor.HasOutParameter.cs b/Source/aweXpect.Reflection/ThatConstructor.HasOutParameter.cs index 141fbf4a..22778baf 100644 --- a/Source/aweXpect.Reflection/ThatConstructor.HasOutParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructor.HasOutParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatConstructor.HasParamsParameter.cs b/Source/aweXpect.Reflection/ThatConstructor.HasParamsParameter.cs index 552d1153..7dae2fea 100644 --- a/Source/aweXpect.Reflection/ThatConstructor.HasParamsParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructor.HasParamsParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatConstructor.HasRefParameter.cs b/Source/aweXpect.Reflection/ThatConstructor.HasRefParameter.cs index 3869a28e..58d03dc4 100644 --- a/Source/aweXpect.Reflection/ThatConstructor.HasRefParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructor.HasRefParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatConstructor.cs b/Source/aweXpect.Reflection/ThatConstructor.cs index aeb89025..442ebe06 100644 --- a/Source/aweXpect.Reflection/ThatConstructor.cs +++ b/Source/aweXpect.Reflection/ThatConstructor.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/ThatConstructors.HaveInParameter.cs b/Source/aweXpect.Reflection/ThatConstructors.HaveInParameter.cs index 249a797e..212df0af 100644 --- a/Source/aweXpect.Reflection/ThatConstructors.HaveInParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructors.HaveInParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatConstructors.HaveOptionalParameter.cs b/Source/aweXpect.Reflection/ThatConstructors.HaveOptionalParameter.cs index eceddadc..8fbc5ad3 100644 --- a/Source/aweXpect.Reflection/ThatConstructors.HaveOptionalParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructors.HaveOptionalParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatConstructors.HaveOutParameter.cs b/Source/aweXpect.Reflection/ThatConstructors.HaveOutParameter.cs index 4bcbb22f..aeba068d 100644 --- a/Source/aweXpect.Reflection/ThatConstructors.HaveOutParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructors.HaveOutParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatConstructors.HaveParamsParameter.cs b/Source/aweXpect.Reflection/ThatConstructors.HaveParamsParameter.cs index 3215065e..72cfaab6 100644 --- a/Source/aweXpect.Reflection/ThatConstructors.HaveParamsParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructors.HaveParamsParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatConstructors.HaveRefParameter.cs b/Source/aweXpect.Reflection/ThatConstructors.HaveRefParameter.cs index 3781def8..b1e6db5f 100644 --- a/Source/aweXpect.Reflection/ThatConstructors.HaveRefParameter.cs +++ b/Source/aweXpect.Reflection/ThatConstructors.HaveRefParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatEvent.IsAbstract.cs b/Source/aweXpect.Reflection/ThatEvent.IsAbstract.cs index b33ce608..02180619 100644 --- a/Source/aweXpect.Reflection/ThatEvent.IsAbstract.cs +++ b/Source/aweXpect.Reflection/ThatEvent.IsAbstract.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatEvent.IsSealed.cs b/Source/aweXpect.Reflection/ThatEvent.IsSealed.cs index d95b0043..51145f9a 100644 --- a/Source/aweXpect.Reflection/ThatEvent.IsSealed.cs +++ b/Source/aweXpect.Reflection/ThatEvent.IsSealed.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatEvents.AreAbstract.cs b/Source/aweXpect.Reflection/ThatEvents.AreAbstract.cs index 37f84bee..2a3b2985 100644 --- a/Source/aweXpect.Reflection/ThatEvents.AreAbstract.cs +++ b/Source/aweXpect.Reflection/ThatEvents.AreAbstract.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatField.IsConstant.cs b/Source/aweXpect.Reflection/ThatField.IsConstant.cs index c55d472c..6b2dfc61 100644 --- a/Source/aweXpect.Reflection/ThatField.IsConstant.cs +++ b/Source/aweXpect.Reflection/ThatField.IsConstant.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatField.IsReadOnly.cs b/Source/aweXpect.Reflection/ThatField.IsReadOnly.cs index aecf24cf..53166271 100644 --- a/Source/aweXpect.Reflection/ThatField.IsReadOnly.cs +++ b/Source/aweXpect.Reflection/ThatField.IsReadOnly.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatFields.AreConstant.cs b/Source/aweXpect.Reflection/ThatFields.AreConstant.cs index 984a7407..9f33a5c4 100644 --- a/Source/aweXpect.Reflection/ThatFields.AreConstant.cs +++ b/Source/aweXpect.Reflection/ThatFields.AreConstant.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatFields.AreReadOnly.cs b/Source/aweXpect.Reflection/ThatFields.AreReadOnly.cs index b45ca823..c316ba8f 100644 --- a/Source/aweXpect.Reflection/ThatFields.AreReadOnly.cs +++ b/Source/aweXpect.Reflection/ThatFields.AreReadOnly.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatMember.IsObsolete.cs b/Source/aweXpect.Reflection/ThatMember.IsObsolete.cs index 9cb034f5..6ed0e301 100644 --- a/Source/aweXpect.Reflection/ThatMember.IsObsolete.cs +++ b/Source/aweXpect.Reflection/ThatMember.IsObsolete.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatMembers.AreObsolete.cs b/Source/aweXpect.Reflection/ThatMembers.AreObsolete.cs index de9a4d99..353462c5 100644 --- a/Source/aweXpect.Reflection/ThatMembers.AreObsolete.cs +++ b/Source/aweXpect.Reflection/ThatMembers.AreObsolete.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatMethod.HasInParameter.cs b/Source/aweXpect.Reflection/ThatMethod.HasInParameter.cs index f03cef22..bd65d593 100644 --- a/Source/aweXpect.Reflection/ThatMethod.HasInParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethod.HasInParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatMethod.HasOptionalParameter.cs b/Source/aweXpect.Reflection/ThatMethod.HasOptionalParameter.cs index 60566195..514f5a07 100644 --- a/Source/aweXpect.Reflection/ThatMethod.HasOptionalParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethod.HasOptionalParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatMethod.HasOutParameter.cs b/Source/aweXpect.Reflection/ThatMethod.HasOutParameter.cs index fd9935d1..750565b3 100644 --- a/Source/aweXpect.Reflection/ThatMethod.HasOutParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethod.HasOutParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatMethod.HasParameter.cs b/Source/aweXpect.Reflection/ThatMethod.HasParameter.cs index 4e20ddc6..54c53c22 100644 --- a/Source/aweXpect.Reflection/ThatMethod.HasParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethod.HasParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatMethod.HasParamsParameter.cs b/Source/aweXpect.Reflection/ThatMethod.HasParamsParameter.cs index f9092c09..09911c37 100644 --- a/Source/aweXpect.Reflection/ThatMethod.HasParamsParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethod.HasParamsParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatMethod.HasRefParameter.cs b/Source/aweXpect.Reflection/ThatMethod.HasRefParameter.cs index fde35cb3..cc62f22b 100644 --- a/Source/aweXpect.Reflection/ThatMethod.HasRefParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethod.HasRefParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Linq; using System.Reflection; using System.Text; diff --git a/Source/aweXpect.Reflection/ThatMethod.IsAbstract.cs b/Source/aweXpect.Reflection/ThatMethod.IsAbstract.cs index a4cfdc62..298e0818 100644 --- a/Source/aweXpect.Reflection/ThatMethod.IsAbstract.cs +++ b/Source/aweXpect.Reflection/ThatMethod.IsAbstract.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatMethod.IsAnExtensionMethod.cs b/Source/aweXpect.Reflection/ThatMethod.IsAnExtensionMethod.cs index ea466a5b..af4706f4 100644 --- a/Source/aweXpect.Reflection/ThatMethod.IsAnExtensionMethod.cs +++ b/Source/aweXpect.Reflection/ThatMethod.IsAnExtensionMethod.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatMethod.IsAsync.cs b/Source/aweXpect.Reflection/ThatMethod.IsAsync.cs index 7eba6737..36f09f7e 100644 --- a/Source/aweXpect.Reflection/ThatMethod.IsAsync.cs +++ b/Source/aweXpect.Reflection/ThatMethod.IsAsync.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatMethod.IsGeneric.cs b/Source/aweXpect.Reflection/ThatMethod.IsGeneric.cs index e2a887e2..882c60e4 100644 --- a/Source/aweXpect.Reflection/ThatMethod.IsGeneric.cs +++ b/Source/aweXpect.Reflection/ThatMethod.IsGeneric.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/Source/aweXpect.Reflection/ThatMethod.IsSealed.cs b/Source/aweXpect.Reflection/ThatMethod.IsSealed.cs index e4b27a68..7da157b3 100644 --- a/Source/aweXpect.Reflection/ThatMethod.IsSealed.cs +++ b/Source/aweXpect.Reflection/ThatMethod.IsSealed.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatMethod.Returns.cs b/Source/aweXpect.Reflection/ThatMethod.Returns.cs index 94f8105b..f8ee3bb0 100644 --- a/Source/aweXpect.Reflection/ThatMethod.Returns.cs +++ b/Source/aweXpect.Reflection/ThatMethod.Returns.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatMethod.ReturnsExactly.cs b/Source/aweXpect.Reflection/ThatMethod.ReturnsExactly.cs index af3fee7a..6677c563 100644 --- a/Source/aweXpect.Reflection/ThatMethod.ReturnsExactly.cs +++ b/Source/aweXpect.Reflection/ThatMethod.ReturnsExactly.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Reflection; using aweXpect.Core; using aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/ThatMethod.ReturnsVoid.cs b/Source/aweXpect.Reflection/ThatMethod.ReturnsVoid.cs index e5286181..4b5bf1f4 100644 --- a/Source/aweXpect.Reflection/ThatMethod.ReturnsVoid.cs +++ b/Source/aweXpect.Reflection/ThatMethod.ReturnsVoid.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Core; namespace aweXpect.Reflection; diff --git a/Source/aweXpect.Reflection/ThatMethods.AreAsync.cs b/Source/aweXpect.Reflection/ThatMethods.AreAsync.cs index da673027..ac6ec920 100644 --- a/Source/aweXpect.Reflection/ThatMethods.AreAsync.cs +++ b/Source/aweXpect.Reflection/ThatMethods.AreAsync.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatMethods.AreExtensionMethods.cs b/Source/aweXpect.Reflection/ThatMethods.AreExtensionMethods.cs index 679561cb..3911d770 100644 --- a/Source/aweXpect.Reflection/ThatMethods.AreExtensionMethods.cs +++ b/Source/aweXpect.Reflection/ThatMethods.AreExtensionMethods.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatMethods.AreOperators.cs b/Source/aweXpect.Reflection/ThatMethods.AreOperators.cs index 830b82a3..f16141da 100644 --- a/Source/aweXpect.Reflection/ThatMethods.AreOperators.cs +++ b/Source/aweXpect.Reflection/ThatMethods.AreOperators.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatMethods.HaveInParameter.cs b/Source/aweXpect.Reflection/ThatMethods.HaveInParameter.cs index 1db73741..90d79997 100644 --- a/Source/aweXpect.Reflection/ThatMethods.HaveInParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethods.HaveInParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatMethods.HaveOptionalParameter.cs b/Source/aweXpect.Reflection/ThatMethods.HaveOptionalParameter.cs index fc792d79..8fdf6851 100644 --- a/Source/aweXpect.Reflection/ThatMethods.HaveOptionalParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethods.HaveOptionalParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatMethods.HaveOutParameter.cs b/Source/aweXpect.Reflection/ThatMethods.HaveOutParameter.cs index 4a15e807..694fd1ed 100644 --- a/Source/aweXpect.Reflection/ThatMethods.HaveOutParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethods.HaveOutParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatMethods.HaveParamsParameter.cs b/Source/aweXpect.Reflection/ThatMethods.HaveParamsParameter.cs index 9d0444e5..d8daeb2d 100644 --- a/Source/aweXpect.Reflection/ThatMethods.HaveParamsParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethods.HaveParamsParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatMethods.HaveRefParameter.cs b/Source/aweXpect.Reflection/ThatMethods.HaveRefParameter.cs index 5736875b..93e129e3 100644 --- a/Source/aweXpect.Reflection/ThatMethods.HaveRefParameter.cs +++ b/Source/aweXpect.Reflection/ThatMethods.HaveRefParameter.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/Source/aweXpect.Reflection/ThatMethods.ReturnVoid.cs b/Source/aweXpect.Reflection/ThatMethods.ReturnVoid.cs index a0b4f9cc..0ceebef5 100644 --- a/Source/aweXpect.Reflection/ThatMethods.ReturnVoid.cs +++ b/Source/aweXpect.Reflection/ThatMethods.ReturnVoid.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatProperties.AreExtensionProperties.cs b/Source/aweXpect.Reflection/ThatProperties.AreExtensionProperties.cs index d9f39f63..94614091 100644 --- a/Source/aweXpect.Reflection/ThatProperties.AreExtensionProperties.cs +++ b/Source/aweXpect.Reflection/ThatProperties.AreExtensionProperties.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatProperties.AreIndexers.cs b/Source/aweXpect.Reflection/ThatProperties.AreIndexers.cs index 94e175e0..5a603562 100644 --- a/Source/aweXpect.Reflection/ThatProperties.AreIndexers.cs +++ b/Source/aweXpect.Reflection/ThatProperties.AreIndexers.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatProperties.AreReadOnly.cs b/Source/aweXpect.Reflection/ThatProperties.AreReadOnly.cs index 1c439f83..ec617509 100644 --- a/Source/aweXpect.Reflection/ThatProperties.AreReadOnly.cs +++ b/Source/aweXpect.Reflection/ThatProperties.AreReadOnly.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatProperties.AreReadWrite.cs b/Source/aweXpect.Reflection/ThatProperties.AreReadWrite.cs index 8e2382c0..e60da95d 100644 --- a/Source/aweXpect.Reflection/ThatProperties.AreReadWrite.cs +++ b/Source/aweXpect.Reflection/ThatProperties.AreReadWrite.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatProperties.AreReadable.cs b/Source/aweXpect.Reflection/ThatProperties.AreReadable.cs index 01a47592..aeadd5d0 100644 --- a/Source/aweXpect.Reflection/ThatProperties.AreReadable.cs +++ b/Source/aweXpect.Reflection/ThatProperties.AreReadable.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatProperties.AreWritable.cs b/Source/aweXpect.Reflection/ThatProperties.AreWritable.cs index 88f8ce38..d69f56b6 100644 --- a/Source/aweXpect.Reflection/ThatProperties.AreWritable.cs +++ b/Source/aweXpect.Reflection/ThatProperties.AreWritable.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatProperties.AreWriteOnly.cs b/Source/aweXpect.Reflection/ThatProperties.AreWriteOnly.cs index 705e6363..e227222b 100644 --- a/Source/aweXpect.Reflection/ThatProperties.AreWriteOnly.cs +++ b/Source/aweXpect.Reflection/ThatProperties.AreWriteOnly.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsAbstract.cs b/Source/aweXpect.Reflection/ThatProperty.IsAbstract.cs index 6d9027eb..2b172c0a 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsAbstract.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsAbstract.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsAnExtensionProperty.cs b/Source/aweXpect.Reflection/ThatProperty.IsAnExtensionProperty.cs index 79034816..2da13d02 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsAnExtensionProperty.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsAnExtensionProperty.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsAnIndexer.cs b/Source/aweXpect.Reflection/ThatProperty.IsAnIndexer.cs index 453b1ac0..23f6638c 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsAnIndexer.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsAnIndexer.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsReadOnly.cs b/Source/aweXpect.Reflection/ThatProperty.IsReadOnly.cs index 9ead45a9..2ac3c811 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsReadOnly.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsReadOnly.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsReadWrite.cs b/Source/aweXpect.Reflection/ThatProperty.IsReadWrite.cs index d45c0046..8d475d69 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsReadWrite.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsReadWrite.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsReadable.cs b/Source/aweXpect.Reflection/ThatProperty.IsReadable.cs index 31818019..bbdda010 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsReadable.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsReadable.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsSealed.cs b/Source/aweXpect.Reflection/ThatProperty.IsSealed.cs index 1086b9cb..552fa915 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsSealed.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsSealed.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsWritable.cs b/Source/aweXpect.Reflection/ThatProperty.IsWritable.cs index bef6fce7..106ac02a 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsWritable.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsWritable.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatProperty.IsWriteOnly.cs b/Source/aweXpect.Reflection/ThatProperty.IsWriteOnly.cs index fc8b6ba1..96c79e71 100644 --- a/Source/aweXpect.Reflection/ThatProperty.IsWriteOnly.cs +++ b/Source/aweXpect.Reflection/ThatProperty.IsWriteOnly.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatType.InheritsFrom.cs b/Source/aweXpect.Reflection/ThatType.InheritsFrom.cs index 95b4e4e2..a75e6ff1 100644 --- a/Source/aweXpect.Reflection/ThatType.InheritsFrom.cs +++ b/Source/aweXpect.Reflection/ThatType.InheritsFrom.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatType.IsARefStruct.cs b/Source/aweXpect.Reflection/ThatType.IsARefStruct.cs index 11b0c1d6..feadbe13 100644 --- a/Source/aweXpect.Reflection/ThatType.IsARefStruct.cs +++ b/Source/aweXpect.Reflection/ThatType.IsARefStruct.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatType.IsGeneric.cs b/Source/aweXpect.Reflection/ThatType.IsGeneric.cs index d2313000..ef5f9828 100644 --- a/Source/aweXpect.Reflection/ThatType.IsGeneric.cs +++ b/Source/aweXpect.Reflection/ThatType.IsGeneric.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using System.Threading; using System.Threading.Tasks; diff --git a/Source/aweXpect.Reflection/ThatType.IsReadOnly.cs b/Source/aweXpect.Reflection/ThatType.IsReadOnly.cs index ea97f2d1..72aa7965 100644 --- a/Source/aweXpect.Reflection/ThatType.IsReadOnly.cs +++ b/Source/aweXpect.Reflection/ThatType.IsReadOnly.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Text; using aweXpect.Core; using aweXpect.Core.Constraints; diff --git a/Source/aweXpect.Reflection/ThatTypes.AreReadOnly.cs b/Source/aweXpect.Reflection/ThatTypes.AreReadOnly.cs index 1b197d09..1e9879c3 100644 --- a/Source/aweXpect.Reflection/ThatTypes.AreReadOnly.cs +++ b/Source/aweXpect.Reflection/ThatTypes.AreReadOnly.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatTypes.AreRefStructs.cs b/Source/aweXpect.Reflection/ThatTypes.AreRefStructs.cs index ef76de6c..341fcec1 100644 --- a/Source/aweXpect.Reflection/ThatTypes.AreRefStructs.cs +++ b/Source/aweXpect.Reflection/ThatTypes.AreRefStructs.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatTypes.HaveConversionOperator.cs b/Source/aweXpect.Reflection/ThatTypes.HaveConversionOperator.cs index 6bd96868..f69688d7 100644 --- a/Source/aweXpect.Reflection/ThatTypes.HaveConversionOperator.cs +++ b/Source/aweXpect.Reflection/ThatTypes.HaveConversionOperator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Text; using aweXpect.Core; diff --git a/Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs b/Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs index 633e2d91..ed40c5cf 100644 --- a/Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs +++ b/Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/Source/aweXpect.Reflection/Types.cs b/Source/aweXpect.Reflection/Types.cs index 9b277302..0ba3ba0d 100644 --- a/Source/aweXpect.Reflection/Types.cs +++ b/Source/aweXpect.Reflection/Types.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AssemblyHelpersTests.cs b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AssemblyHelpersTests.cs index b70c9677..63fe28d3 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AssemblyHelpersTests.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AssemblyHelpersTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Runtime.Versioning; using aweXpect.Reflection.Helpers; diff --git a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AtIndexMatchTests.cs b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AtIndexMatchTests.cs index c9647b7a..deebf57b 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AtIndexMatchTests.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AtIndexMatchTests.cs @@ -1,4 +1,4 @@ -using aweXpect.Options; +using aweXpect.Options; using aweXpect.Reflection.Helpers; namespace aweXpect.Reflection.Internal.Tests.Helpers; diff --git a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/CollectionConstraintResultTests.cs b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/CollectionConstraintResultTests.cs index 2e09c342..15900742 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/CollectionConstraintResultTests.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/CollectionConstraintResultTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Text; using aweXpect.Core; using aweXpect.Reflection.Helpers; diff --git a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/LinqAsyncHelpersTests.cs b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/LinqAsyncHelpersTests.cs index 84903326..d2f49514 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/LinqAsyncHelpersTests.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/LinqAsyncHelpersTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; #if NET8_0_OR_GREATER #endif diff --git a/Tests/aweXpect.Reflection.Internal.Tests/TestHelpers/ValueFormatterHelper.cs b/Tests/aweXpect.Reflection.Internal.Tests/TestHelpers/ValueFormatterHelper.cs index 8922a65c..f0dfefd3 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/TestHelpers/ValueFormatterHelper.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/TestHelpers/ValueFormatterHelper.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using aweXpect.Formatting; namespace aweXpect.Reflection.Internal.Tests.TestHelpers; diff --git a/Tests/aweXpect.Reflection.Tests/Collections/AccessModifiersExtensions.Tests.cs b/Tests/aweXpect.Reflection.Tests/Collections/AccessModifiersExtensions.Tests.cs index 36c2b368..f04dce74 100644 --- a/Tests/aweXpect.Reflection.Tests/Collections/AccessModifiersExtensions.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Collections/AccessModifiersExtensions.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Collections/FilteredReuseIndependenceTests.cs b/Tests/aweXpect.Reflection.Tests/Collections/FilteredReuseIndependenceTests.cs index a2cdc40b..a60548cd 100644 --- a/Tests/aweXpect.Reflection.Tests/Collections/FilteredReuseIndependenceTests.cs +++ b/Tests/aweXpect.Reflection.Tests/Collections/FilteredReuseIndependenceTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Consumers; diff --git a/Tests/aweXpect.Reflection.Tests/Collections/MemberFilterState.Tests.cs b/Tests/aweXpect.Reflection.Tests/Collections/MemberFilterState.Tests.cs index 4a8a7ff8..70e50277 100644 --- a/Tests/aweXpect.Reflection.Tests/Collections/MemberFilterState.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Collections/MemberFilterState.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers.Types; +using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/DependencyResolverCustomizationTests.cs b/Tests/aweXpect.Reflection.Tests/DependencyResolverCustomizationTests.cs index fc4c5656..80552826 100644 --- a/Tests/aweXpect.Reflection.Tests/DependencyResolverCustomizationTests.cs +++ b/Tests/aweXpect.Reflection.Tests/DependencyResolverCustomizationTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using aweXpect.Customization; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Consumers; diff --git a/Tests/aweXpect.Reflection.Tests/Examples/CecilDependencyResolver.cs b/Tests/aweXpect.Reflection.Tests/Examples/CecilDependencyResolver.cs index 5de80483..11351157 100644 --- a/Tests/aweXpect.Reflection.Tests/Examples/CecilDependencyResolver.cs +++ b/Tests/aweXpect.Reflection.Tests/Examples/CecilDependencyResolver.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using Mono.Cecil; using Mono.Cecil.Cil; diff --git a/Tests/aweXpect.Reflection.Tests/Examples/CecilDependencyResolverTests.cs b/Tests/aweXpect.Reflection.Tests/Examples/CecilDependencyResolverTests.cs index 284a5115..513a2673 100644 --- a/Tests/aweXpect.Reflection.Tests/Examples/CecilDependencyResolverTests.cs +++ b/Tests/aweXpect.Reflection.Tests/Examples/CecilDependencyResolverTests.cs @@ -1,4 +1,4 @@ -using aweXpect.Customization; +using aweXpect.Customization; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Synthetic; namespace aweXpect.Reflection.Tests.Examples; diff --git a/Tests/aweXpect.Reflection.Tests/Examples/ExampleTests.cs b/Tests/aweXpect.Reflection.Tests/Examples/ExampleTests.cs index e9869b80..f133bf81 100644 --- a/Tests/aweXpect.Reflection.Tests/Examples/ExampleTests.cs +++ b/Tests/aweXpect.Reflection.Tests/Examples/ExampleTests.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.Examples; +namespace aweXpect.Reflection.Tests.Examples; public sealed class ExampleTests { diff --git a/Tests/aweXpect.Reflection.Tests/ExtensionGroupingTypeFilteringTests.cs b/Tests/aweXpect.Reflection.Tests/ExtensionGroupingTypeFilteringTests.cs index 02b7658d..612efdea 100644 --- a/Tests/aweXpect.Reflection.Tests/ExtensionGroupingTypeFilteringTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ExtensionGroupingTypeFilteringTests.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER using System; using System.Collections.Generic; using System.Linq; diff --git a/Tests/aweXpect.Reflection.Tests/ExtensionPropertyDiscoveryTests.cs b/Tests/aweXpect.Reflection.Tests/ExtensionPropertyDiscoveryTests.cs index 8ca3da20..949a31aa 100644 --- a/Tests/aweXpect.Reflection.Tests/ExtensionPropertyDiscoveryTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ExtensionPropertyDiscoveryTests.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER using System.Collections.Generic; using System.Reflection; using System.Threading.Tasks; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.Except.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.Except.Tests.cs index 9322422f..b1edc8b6 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.Except.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.Except.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.MemberAccess.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.MemberAccess.Tests.cs index e3032e12..625e4a5d 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.MemberAccess.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.MemberAccess.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichAreNotStrongNamed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichAreNotStrongNamed.Tests.cs index 3e733c1c..b618d7d6 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichAreNotStrongNamed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichAreNotStrongNamed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichAreStrongNamed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichAreStrongNamed.Tests.cs index 72b1ec6f..78681892 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichAreStrongNamed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichAreStrongNamed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDependOn.Tests.cs index 65790304..9f3938a1 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDependOn.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDependOnlyOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDependOnlyOn.Tests.cs index b6bf624c..392a0902 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDependOnlyOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDependOnlyOn.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDoNotDependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDoNotDependOn.Tests.cs index dee9802f..51fa0171 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDoNotDependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichDoNotDependOn.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichTarget.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichTarget.Tests.cs index cf55a6f9..63f6b535 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichTarget.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WhichTarget.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.With.AttributeTests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.With.AttributeTests.cs index 98efca44..fb097cf9 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.With.AttributeTests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.With.AttributeTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WithVersion.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WithVersion.Tests.cs index 58c6d0a7..ef6251a0 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WithVersion.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/AssemblyFilters.WithVersion.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.Except.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.Except.Tests.cs index 3db945b9..438eb48a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.Except.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.Except.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.ParameterModifierExactlyOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.ParameterModifierExactlyOverloads.Tests.cs index 46678c72..d2076561 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.ParameterModifierExactlyOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.ParameterModifierExactlyOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.ParameterModifierTypedOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.ParameterModifierTypedOverloads.Tests.cs index 47a09e15..8d9cbc3e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.ParameterModifierTypedOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.ParameterModifierTypedOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAre.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAre.Tests.cs index 1619e6c4..8a4dcaed 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAre.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAre.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreInternal.Tests.cs index 69c4edf1..d7a46e77 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotInternal.Tests.cs index 12c70555..dd5631ce 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotObsolete.Tests.cs index 7bae21ea..5b4526b4 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPrivate.Tests.cs index 7f5f3c0d..44027196 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPrivateProtected.Tests.cs index 84acabfe..84913e22 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotProtected.Tests.cs index 39df2ab6..cb77fd28 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotProtectedInternal.Tests.cs index 3034cc5b..ef727e57 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPublic.Tests.cs index 82421964..e9b8cb0c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotPublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotStatic.Tests.cs index 2310a919..36bc4847 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreObsolete.Tests.cs index b5cbf86b..a03c5d76 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePrivate.Tests.cs index 6269d081..1bbeeaff 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePrivateProtected.Tests.cs index efd84b45..abf0b787 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreProtected.Tests.cs index 2e0eefb4..7a3b9b8a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreProtectedInternal.Tests.cs index a097b172..9877a19c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePublic.Tests.cs index 050c6a7b..2b8b3ed9 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichArePublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreStatic.Tests.cs index 19479983..28ccab5d 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WhichAreStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithInParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithInParameter.Tests.cs index cbf47472..a51bf911 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithInParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithInParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithOptionalParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithOptionalParameter.Tests.cs index 1daba215..a9a0851d 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithOptionalParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithOptionalParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithOutParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithOutParameter.Tests.cs index fcb6d475..8016bdd3 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithOutParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithOutParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameter.Tests.cs index ad22f0f1..843f8b5f 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameter.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterCount.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterCount.Tests.cs index 014c20f4..4c479477 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterCount.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterCount.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterExactly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterExactly.Tests.cs index 59e84a29..47975c8e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterExactly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterExactly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterModifier.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterModifier.Tests.cs index 6e5d6694..6d481bfd 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterModifier.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParameterModifier.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParamsParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParamsParameter.Tests.cs index 1d0d367a..685f206c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParamsParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithParamsParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithRefParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithRefParameter.Tests.cs index 34a5d35d..b6764785 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithRefParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithRefParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithoutParameters.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithoutParameters.Tests.cs index bb85637a..57bf74fe 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithoutParameters.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/ConstructorFilters.WithoutParameters.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.Except.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.Except.Tests.cs index 14245127..0c0c03db 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.Except.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.Except.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAre.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAre.Tests.cs index 40261c91..02d68015 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAre.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAre.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreAbstract.Tests.cs index 884c0e0f..69f24768 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreAbstract.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreInternal.Tests.cs index e22d6c08..2f0f221a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotAbstract.Tests.cs index 8b750fb3..5e58bb68 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotAbstract.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotInternal.Tests.cs index d63047c3..ea9d67ce 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotObsolete.Tests.cs index 4e46a329..3b2282fd 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPrivate.Tests.cs index 97b9f100..d4a2f9cb 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPrivateProtected.Tests.cs index 890e1c71..f2df5aa5 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotProtected.Tests.cs index 37bdf35c..edfda7fa 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotProtectedInternal.Tests.cs index d765f123..d18fd0eb 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPublic.Tests.cs index 11fa9372..f3c3dab9 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotPublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotSealed.Tests.cs index 0290a06b..83e118be 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreNotSealed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreObsolete.Tests.cs index c7d5412f..a54024a6 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePrivate.Tests.cs index c0fe4c87..6627f45b 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePrivateProtected.Tests.cs index 619953f1..11fd712e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreProtected.Tests.cs index 75aaef49..e1be4960 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreProtectedInternal.Tests.cs index a01f1d80..4d2d5029 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePublic.Tests.cs index e321071e..1b013804 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichArePublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreSealed.Tests.cs index dc933d2f..d8ffe003 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/EventFilters.WhichAreSealed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.Except.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.Except.Tests.cs index 8b8dbba5..7f67a00a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.Except.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.Except.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAre.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAre.Tests.cs index bb63e442..c5e25773 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAre.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAre.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreConstant.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreConstant.Tests.cs index a6e43621..867c9a9c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreConstant.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreConstant.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreInternal.Tests.cs index 32330d43..4f4228d5 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotConstant.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotConstant.Tests.cs index 43687a6b..def10ead 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotConstant.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotConstant.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotInternal.Tests.cs index 7c0493e4..7512857b 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotObsolete.Tests.cs index becff26e..48ee0326 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPrivate.Tests.cs index 18dde121..e4db7e09 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPrivateProtected.Tests.cs index 6d41eb5a..cd3a572e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotProtected.Tests.cs index dc251927..13504137 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotProtectedInternal.Tests.cs index c41a731b..586e3501 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPublic.Tests.cs index 7c8c8df6..56308cdb 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotPublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotReadOnly.Tests.cs index 29e4d498..10ba174d 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotStatic.Tests.cs index fe2ad2e3..3022c1b1 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreObsolete.Tests.cs index 7b4dbd98..53ff379e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePrivate.Tests.cs index adb2e609..7bd20d6a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePrivateProtected.Tests.cs index 760b1ba9..c1192359 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreProtected.Tests.cs index 0d88838e..a467bbba 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreProtectedInternal.Tests.cs index 93a343c0..6fda0315 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePublic.Tests.cs index bdd9015b..e5a43f3d 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichArePublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreReadOnly.Tests.cs index 6a9022a0..2675f23a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreStatic.Tests.cs index 3f53c33e..03ae190c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/FieldFilters.WhichAreStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.Except.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.Except.Tests.cs index c0573759..d1a6b721 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.Except.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.Except.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.ParameterModifierExactlyOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.ParameterModifierExactlyOverloads.Tests.cs index e96cdc78..3521195e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.ParameterModifierExactlyOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.ParameterModifierExactlyOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.ParameterModifierTypedOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.ParameterModifierTypedOverloads.Tests.cs index 1686cce4..c8d67c74 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.ParameterModifierTypedOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.ParameterModifierTypedOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAre.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAre.Tests.cs index fa5e2999..e5b95211 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAre.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAre.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreAbstract.Tests.cs index b48a8cf5..863ae0f3 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreAbstract.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreAsync.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreAsync.Tests.cs index 22c6641e..dd89d880 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreAsync.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreAsync.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreExtensionMethods.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreExtensionMethods.Tests.cs index e6be8ecf..4b90c5e7 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreExtensionMethods.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreExtensionMethods.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; #if NET10_0_OR_GREATER using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreInternal.Tests.cs index 5af66eef..5f550a1a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotAbstract.Tests.cs index 46771b7c..ed55da6c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotAbstract.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotAsync.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotAsync.Tests.cs index 12bf2958..64206773 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotAsync.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotAsync.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotExtensionMethods.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotExtensionMethods.Tests.cs index 3606d6fd..965eb42c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotExtensionMethods.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotExtensionMethods.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; #if NET10_0_OR_GREATER using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotInternal.Tests.cs index 0fca321f..4f7691fa 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotObsolete.Tests.cs index a2ea309e..a2933de6 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPrivate.Tests.cs index c0c51c1f..01993d5b 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPrivateProtected.Tests.cs index 64bc3deb..37f00840 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotProtected.Tests.cs index 378c400b..02921c21 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotProtectedInternal.Tests.cs index 2ee2aece..49907f2d 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPublic.Tests.cs index dac0f79e..f7c67191 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotPublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotSealed.Tests.cs index 88523338..62df188f 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotSealed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotStatic.Tests.cs index 429bb337..134be06b 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreObsolete.Tests.cs index f2c57efb..78cd2c09 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePrivate.Tests.cs index 9869be7b..4eaf84f8 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePrivateProtected.Tests.cs index 912ee5b9..281839fa 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreProtected.Tests.cs index 6aa18e85..2f019b36 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreProtectedInternal.Tests.cs index 3a650bae..c080ba47 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePublic.Tests.cs index d7c4b3b0..0dd5ab0b 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichArePublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreSealed.Tests.cs index 174f6ef8..f896375a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreSealed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreStatic.Tests.cs index 36be30a3..ca57629a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturn.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturn.Tests.cs index d0355aff..46beca0e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturn.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturnExactly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturnExactly.Tests.cs index 73744a07..f1af133d 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturnExactly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturnExactly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturnVoid.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturnVoid.Tests.cs index 7a3668cb..8bde04ae 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturnVoid.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichReturnVoid.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithInParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithInParameter.Tests.cs index 92a688c2..4b4d44ab 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithInParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithInParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithOptionalParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithOptionalParameter.Tests.cs index cdd198dd..345e4329 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithOptionalParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithOptionalParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithOutParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithOutParameter.Tests.cs index 7adf042a..d8e4daa0 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithOutParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithOutParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameter.Tests.cs index 2d3c0da3..60b1a5cf 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameter.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterCount.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterCount.Tests.cs index 1e60e2ca..6db9662c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterCount.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterCount.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterExactly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterExactly.Tests.cs index 7c953a1b..3fe33bc7 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterExactly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterExactly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterModifier.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterModifier.Tests.cs index c6a0089d..4a6bdb50 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterModifier.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParameterModifier.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParamsParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParamsParameter.Tests.cs index 9c54be2c..8406d9ad 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParamsParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithParamsParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Collections; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithRefParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithRefParameter.Tests.cs index 4e8b8cd5..5d5b52d5 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithRefParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithRefParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithoutParameters.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithoutParameters.Tests.cs index 16718825..e886485b 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithoutParameters.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WithoutParameters.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.Except.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.Except.Tests.cs index f772b5fe..30135184 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.Except.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.Except.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAre.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAre.Tests.cs index 164f8d02..8dd320c9 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAre.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAre.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreAbstract.Tests.cs index 3f008b9a..1a3a5e1a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreAbstract.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreExtensionProperties.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreExtensionProperties.Tests.cs index 62f5eba9..0a3cf80a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreExtensionProperties.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreExtensionProperties.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreIndexers.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreIndexers.Tests.cs index 552b766e..6e8f217a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreIndexers.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreIndexers.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreInternal.Tests.cs index 43b99876..ed06f066 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotAbstract.Tests.cs index 238b922c..33128243 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotAbstract.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotExtensionProperties.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotExtensionProperties.Tests.cs index 8b11fc5b..9101e242 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotExtensionProperties.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotExtensionProperties.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotIndexers.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotIndexers.Tests.cs index cba9f0db..b7118165 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotIndexers.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotIndexers.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotInternal.Tests.cs index 980f16b1..d1940073 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotObsolete.Tests.cs index 65d098f1..98a24dc7 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPrivate.Tests.cs index dd002d9f..38db745e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPrivateProtected.Tests.cs index d2b08e08..67f60725 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotProtected.Tests.cs index 280f8744..4b26b0bb 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotProtectedInternal.Tests.cs index c0cdc698..9b3baf55 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPublic.Tests.cs index 4cd06223..d1ca4e55 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotPublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotSealed.Tests.cs index dd54a2e2..d67c0dff 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotSealed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotStatic.Tests.cs index 55dda5cb..0b5687ea 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreObsolete.Tests.cs index 057adfab..f8e2e71f 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePrivate.Tests.cs index 54dab90f..846e2733 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePrivateProtected.Tests.cs index 94e7e190..f7175d97 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreProtected.Tests.cs index f6585c26..f9129095 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreProtectedInternal.Tests.cs index 2a2b36e1..55c5f30a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePublic.Tests.cs index 2b02b379..63dca545 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichArePublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadOnly.Tests.cs index bf924036..f9add688 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadWrite.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadWrite.Tests.cs index c8cdfb12..3dc18bce 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadWrite.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadWrite.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadable.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadable.Tests.cs index 65ab8a9a..16953726 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreReadable.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreSealed.Tests.cs index d8657c02..41e188c0 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreSealed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreStatic.Tests.cs index 7d4e8aab..98438bbb 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreWritable.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreWritable.Tests.cs index b7164935..82acc033 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreWritable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreWritable.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreWriteOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreWriteOnly.Tests.cs index 4a30bb9c..cbb0eff9 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreWriteOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/PropertyFilters.WhichAreWriteOnly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.Except.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.Except.Tests.cs index 979e3e38..1867fa1c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.Except.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.Except.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs index 1ff09572..07830e80 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAre.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAre.Tests.cs index eab6cb69..5038d352 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAre.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAre.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreAbstract.Tests.cs index eb8fbf3b..96382061 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreAbstract.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreClasses.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreClasses.Tests.cs index 22249cde..7f896b16 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreClasses.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreClasses.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreEnums.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreEnums.Tests.cs index 2b3b3919..f8fc671e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreEnums.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreEnums.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreInterfaces.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreInterfaces.Tests.cs index 248b1e75..fdbb58bf 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreInterfaces.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreInterfaces.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreInternal.Tests.cs index 209574ad..d3e4a448 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNested.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNested.Tests.cs index 32c37a9a..81d4207c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNested.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNested.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotAbstract.Tests.cs index 2343f263..a8da636f 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotAbstract.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotClasses.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotClasses.Tests.cs index 60101a2d..92101b56 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotClasses.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotClasses.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotEnums.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotEnums.Tests.cs index 558ff047..f432079b 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotEnums.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotEnums.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotInterfaces.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotInterfaces.Tests.cs index b6e43fd7..b5e48d83 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotInterfaces.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotInterfaces.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotInternal.Tests.cs index f17be8f4..537917b0 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotNested.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotNested.Tests.cs index f1b487a0..48ab60d3 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotNested.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotNested.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotObsolete.Tests.cs index ecf0901d..611de217 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPrivate.Tests.cs index 08ce2494..28b7855f 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPrivateProtected.Tests.cs index 8efbac3f..2790ca99 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotProtected.Tests.cs index f1dd6ac5..548fbcf3 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotProtectedInternal.Tests.cs index e17558ca..c3884f46 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPublic.Tests.cs index 4640ba58..0a348d59 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotPublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotReadOnly.Tests.cs index 01b1bf26..3de70214 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRecordStructs.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRecordStructs.Tests.cs index ad601fb3..02ea4be1 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRecordStructs.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRecordStructs.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRecords.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRecords.Tests.cs index 36760ccb..db241885 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRecords.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRecords.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRefStructs.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRefStructs.Tests.cs index 6ba0eb64..9895935c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRefStructs.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotRefStructs.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotSealed.Tests.cs index e8578b52..74e0ffc3 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotSealed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotStatic.Tests.cs index 6f7fd3bf..759e3b2e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotStructs.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotStructs.Tests.cs index 4ebbfd04..62ae65c4 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotStructs.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreNotStructs.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreObsolete.Tests.cs index 78a03ac6..cec468e5 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePrivate.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePrivate.Tests.cs index e23f42bc..9ee7ede3 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePrivate.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePrivate.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePrivateProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePrivateProtected.Tests.cs index 1da3e2cb..8cb60c72 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePrivateProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePrivateProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreProtected.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreProtected.Tests.cs index 91409ce0..4641dc59 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreProtected.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreProtected.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreProtectedInternal.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreProtectedInternal.Tests.cs index 5be2e3c3..4bae0705 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreProtectedInternal.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreProtectedInternal.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePublic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePublic.Tests.cs index c6fb2cce..ee89ac9f 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePublic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichArePublic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreReadOnly.Tests.cs index 0ca7b65e..c14f98b3 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRecordStructs.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRecordStructs.Tests.cs index eb34cc15..355b59f0 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRecordStructs.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRecordStructs.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRecords.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRecords.Tests.cs index f04c89da..5a16a1d2 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRecords.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRecords.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRefStructs.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRefStructs.Tests.cs index 696c51a0..056868ee 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRefStructs.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreRefStructs.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreSealed.Tests.cs index 4e183c6d..17f06ba9 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreSealed.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreStatic.Tests.cs index 1051262b..a9dee24e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreStatic.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreStructs.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreStructs.Tests.cs index f22c4882..8c172c4d 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreStructs.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichAreStructs.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainConstructors.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainConstructors.Tests.cs index 06aeaeb6..96b06e5e 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainConstructors.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainConstructors.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainEvents.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainEvents.Tests.cs index 035bfbd2..66cd0b9c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainEvents.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainEvents.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainFields.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainFields.Tests.cs index 540461e6..8cb2ab20 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainFields.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainFields.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainMethods.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainMethods.Tests.cs index 43600b13..5457a40c 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainMethods.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainMethods.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using Xunit.Sdk; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainProperties.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainProperties.Tests.cs index 36e73948..b1f66c47 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainProperties.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichContainProperties.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests.Filters; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/AssemblyExtensions.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/AssemblyExtensions.cs index ceece76d..99a6ef24 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/AssemblyExtensions.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/AssemblyExtensions.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace aweXpect.Reflection.Tests.TestHelpers; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/AsyncEnumerableExtensions.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/AsyncEnumerableExtensions.cs index 90131850..9a05bb1c 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/AsyncEnumerableExtensions.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/AsyncEnumerableExtensions.cs @@ -1,4 +1,4 @@ -#if NET8_0_OR_GREATER +#if NET8_0_OR_GREATER using System.Collections.Generic; namespace aweXpect.Reflection.Tests.TestHelpers; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/CycleFixtures.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/CycleFixtures.cs index f3408d85..162ab823 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/CycleFixtures.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/CycleFixtures.cs @@ -1,4 +1,4 @@ -// ReSharper disable All +// ReSharper disable All #pragma warning disable CS0169 // field is never used #pragma warning disable CS0649 // field is never assigned diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/MethodInfoExtensions.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/MethodInfoExtensions.cs index 67bd5683..6793e3ad 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/MethodInfoExtensions.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/MethodInfoExtensions.cs @@ -1,4 +1,4 @@ -using System.Globalization; +using System.Globalization; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/AbstractClassWithMembers.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/AbstractClassWithMembers.cs index 8b074af4..5440423c 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/AbstractClassWithMembers.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/AbstractClassWithMembers.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public abstract class AbstractClassWithMembers { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInNamespaceScope.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInNamespaceScope.cs index 805f231a..f69becee 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInNamespaceScope.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInNamespaceScope.cs @@ -1,4 +1,4 @@ -// ReSharper disable once CheckNamespace +// ReSharper disable once CheckNamespace namespace aweXpect.Reflection.Tests.TestHelpers.Types.NamespaceScope; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInNestedNamespaceScope.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInNestedNamespaceScope.cs index a2ea316b..95411b84 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInNestedNamespaceScope.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInNestedNamespaceScope.cs @@ -1,4 +1,4 @@ -// ReSharper disable once CheckNamespace +// ReSharper disable once CheckNamespace namespace aweXpect.Reflection.Tests.TestHelpers.Types.NamespaceScope.Nested; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInSiblingNamespaceScope.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInSiblingNamespaceScope.cs index 428db0a6..0f59ba90 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInSiblingNamespaceScope.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassInSiblingNamespaceScope.cs @@ -1,4 +1,4 @@ -// ReSharper disable once CheckNamespace +// ReSharper disable once CheckNamespace namespace aweXpect.Reflection.Tests.TestHelpers.Types.NamespaceScopeSibling; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithAsyncMembers.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithAsyncMembers.cs index 7197ebd9..174713b0 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithAsyncMembers.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithAsyncMembers.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public class ClassWithAsyncMembers { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithObsoleteMembers.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithObsoleteMembers.cs index a2d25b8a..beb8c29b 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithObsoleteMembers.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithObsoleteMembers.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public class ClassWithObsoleteMembers { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithOperators.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithOperators.cs index f270ced4..87a9decc 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithOperators.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithOperators.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public class ClassWithOperators { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithSealedMembers.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithSealedMembers.cs index 2c78d8bf..ca68ba25 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithSealedMembers.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ClassWithSealedMembers.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public class ClassWithSealedMembers : AbstractClassWithMembers { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/GenericClassWithNewExtensionMethods.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/GenericClassWithNewExtensionMethods.cs index cb492405..bc97677a 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/GenericClassWithNewExtensionMethods.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/GenericClassWithNewExtensionMethods.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER using System.Collections.Generic; namespace aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/GenericClassWithNewExtensionProperties.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/GenericClassWithNewExtensionProperties.cs index c11bc753..5efb3d7a 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/GenericClassWithNewExtensionProperties.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/GenericClassWithNewExtensionProperties.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER namespace aweXpect.Reflection.Tests.TestHelpers.Types; /// diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalClass.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalClass.cs index ad9d8f54..020eacba 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalClass.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalClass.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; internal class InternalClass; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalEnum.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalEnum.cs index 598ed47a..b5be0d9d 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalEnum.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalEnum.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; internal enum InternalEnum; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericRecord.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericRecord.cs index fd5f301e..7ac72007 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericRecord.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericRecord.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; internal record InternalGenericRecord; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericRecordStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericRecordStruct.cs index 455f9aa1..58d3735d 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericRecordStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericRecordStruct.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; internal record struct InternalGenericRecordStruct; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericStruct.cs index 44ecadf3..2270c019 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalGenericStruct.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; internal struct InternalGenericStruct; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalRecord.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalRecord.cs index 89486bdf..58896bb0 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalRecord.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalRecord.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; internal record InternalRecord; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalRecordStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalRecordStruct.cs index dcca4dc5..8beeaf29 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalRecordStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalRecordStruct.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; internal record struct InternalRecordStruct; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalStruct.cs index 5086922f..47081c90 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/InternalStruct.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; internal struct InternalStruct; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ObsoleteClass.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ObsoleteClass.cs index 332b9ddb..e41e52e9 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ObsoleteClass.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ObsoleteClass.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; [Obsolete("This class is obsolete.")] public class ObsoleteClass diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericRecord.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericRecord.cs index 1932df82..9065d826 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericRecord.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericRecord.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public partial class Container { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericRecordStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericRecordStruct.cs index 982fde42..f476e5c0 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericRecordStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericRecordStruct.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public partial class Container { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericStruct.cs index eeb7015f..8dc6c5c9 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ProtectedGenericStruct.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public partial class Container { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicAbstractRecord.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicAbstractRecord.cs index cbdb8898..71dcd30c 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicAbstractRecord.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicAbstractRecord.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public abstract record PublicAbstractRecord; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicClass.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicClass.cs index 3dcfd027..822cab84 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicClass.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicClass.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public class PublicClass; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicEnum.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicEnum.cs index 24441be8..bfe6a49d 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicEnum.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicEnum.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public enum PublicEnum; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicReadOnlyStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicReadOnlyStruct.cs index 1728b1f9..a0c1df61 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicReadOnlyStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicReadOnlyStruct.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public readonly struct PublicReadOnlyStruct; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecord.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecord.cs index 9893bece..e8eb8b9b 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecord.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecord.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public record PublicRecord; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecordStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecordStruct.cs index 7a1a9329..0b040097 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecordStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRecordStruct.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public record struct PublicRecordStruct; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRefStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRefStruct.cs index 3a1a04e6..2a01f279 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRefStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicRefStruct.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public ref struct PublicRefStruct; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicStruct.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicStruct.cs index f5bfcc26..32c7d42a 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicStruct.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/PublicStruct.cs @@ -1,3 +1,3 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public struct PublicStruct; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithExtensionMethods.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithExtensionMethods.cs index b991ee9a..7193f276 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithExtensionMethods.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithExtensionMethods.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public static class StaticClassWithExtensionMethods { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithNewExtensionMethods.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithNewExtensionMethods.cs index 522e774d..6f2b20fd 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithNewExtensionMethods.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithNewExtensionMethods.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER using System; namespace aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithNewExtensionProperties.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithNewExtensionProperties.cs index 65b48959..b7c4434a 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithNewExtensionProperties.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/StaticClassWithNewExtensionProperties.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER using System; namespace aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithFieldModifiers.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithFieldModifiers.cs index ebd7f843..1ef1f70f 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithFieldModifiers.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithFieldModifiers.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; #pragma warning disable CS0169 // Field is never used #pragma warning disable CS0649 // Field is never assigned to, and will always have its default value diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithIndexers.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithIndexers.cs index e9e72c32..2daf3c9b 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithIndexers.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithIndexers.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public class TestClassWithIndexers { diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithReadWriteProperties.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithReadWriteProperties.cs index 0e10868a..c4874b89 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithReadWriteProperties.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TestClassWithReadWriteProperties.cs @@ -1,4 +1,4 @@ -namespace aweXpect.Reflection.Tests.TestHelpers.Types; +namespace aweXpect.Reflection.Tests.TestHelpers.Types; public class TestClassWithReadWriteProperties { diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.AreNotStrongNamed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.AreNotStrongNamed.Tests.cs index 63dcfddb..67daced0 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.AreNotStrongNamed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.AreNotStrongNamed.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.AreStrongNamed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.AreStrongNamed.Tests.cs index f9a9d92c..170b8606 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.AreStrongNamed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.AreStrongNamed.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DependOn.Tests.cs index 971ebaba..068eb678 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DependOn.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DependOnlyOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DependOnlyOn.Tests.cs index 5ae1c2e0..57faed7f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DependOnlyOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DependOnlyOn.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DoNotDependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DoNotDependOn.Tests.cs index 6acac797..9b501b7d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DoNotDependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.DoNotDependOn.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.Have.AttributeTests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.Have.AttributeTests.cs index b26aba4c..4a501276 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.Have.AttributeTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.Have.AttributeTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.Target.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.Target.Tests.cs index 8a3abce6..498b1baf 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssemblies.Target.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssemblies.Target.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOn.Tests.cs index aab44ad0..40836921 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOn.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOnlyOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOnlyOn.Tests.cs index 5a788a30..3891ad2b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOnlyOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOnlyOn.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Customization; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssembly.DoesNotDependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssembly.DoesNotDependOn.Tests.cs index cd7730de..9d61c87d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssembly.DoesNotDependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssembly.DoesNotDependOn.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssembly.Has.AttributeTests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssembly.Has.AttributeTests.cs index 6ee39657..f11e49ff 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssembly.Has.AttributeTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssembly.Has.AttributeTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssembly.IsNotStrongNamed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssembly.IsNotStrongNamed.Tests.cs index 5b2b48ef..fe3a33cd 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssembly.IsNotStrongNamed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssembly.IsNotStrongNamed.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssembly.IsStrongNamed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssembly.IsStrongNamed.Tests.cs index 7d8f9369..c4b29e39 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssembly.IsStrongNamed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssembly.IsStrongNamed.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssembly.Targets.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssembly.Targets.Tests.cs index 390a05d8..115b5f7d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssembly.Targets.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssembly.Targets.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.Has.AttributeTests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.Has.AttributeTests.cs index fa407523..b8c48cbb 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.Has.AttributeTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.Has.AttributeTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasInParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasInParameter.Tests.cs index 4fe189bb..4be8c7ab 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasInParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasInParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasOptionalParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasOptionalParameter.Tests.cs index 0824b001..ea28f894 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasOptionalParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasOptionalParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasOutParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasOutParameter.Tests.cs index fed9e4b0..57756a07 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasOutParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasOutParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasParamsParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasParamsParameter.Tests.cs index b9565be3..ffa06845 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasParamsParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasParamsParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasRefParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasRefParameter.Tests.cs index d1ccca26..42814a7e 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasRefParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.HasRefParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsNotObsolete.Tests.cs index 04fb4a3e..61876af0 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsNotStatic.Tests.cs index b6870263..5b24566e 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsObsolete.Tests.cs index 2ac1167c..dee658df 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.IsObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.ParameterModifierExactlyOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.ParameterModifierExactlyOverloads.Tests.cs index d7f0de34..d1cbb047 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.ParameterModifierExactlyOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.ParameterModifierExactlyOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructor.ParameterModifierTypedOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructor.ParameterModifierTypedOverloads.Tests.cs index ea5a2a3f..cac29218 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructor.ParameterModifierTypedOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructor.ParameterModifierTypedOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.AreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.AreNotObsolete.Tests.cs index 47ba5de9..d29df61e 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.AreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.AreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.AreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.AreObsolete.Tests.cs index b59d7c66..780a0d8b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.AreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.AreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveInParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveInParameter.Tests.cs index be4b150d..bb36001f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveInParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveInParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveOptionalParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveOptionalParameter.Tests.cs index b8d56365..bc30797b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveOptionalParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveOptionalParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveOutParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveOutParameter.Tests.cs index 5bc35184..849ac4ba 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveOutParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveOutParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveParameterExactly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveParameterExactly.Tests.cs index 58851e0e..8ea2af24 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveParameterExactly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveParameterExactly.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveParamsParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveParamsParameter.Tests.cs index f3b39150..91de189b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveParamsParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveParamsParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveRefParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveRefParameter.Tests.cs index aa71145b..cd6ffe68 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveRefParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.HaveRefParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.ParameterModifierExactlyOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.ParameterModifierExactlyOverloads.Tests.cs index 413b3b33..d5820cae 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.ParameterModifierExactlyOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.ParameterModifierExactlyOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; diff --git a/Tests/aweXpect.Reflection.Tests/ThatConstructors.ParameterModifierTypedOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatConstructors.ParameterModifierTypedOverloads.Tests.cs index 659c36c3..142fdd79 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatConstructors.ParameterModifierTypedOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatConstructors.ParameterModifierTypedOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvent.Has.AttributeTests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvent.Has.AttributeTests.cs index 34bab5ef..a678e2e6 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvent.Has.AttributeTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvent.Has.AttributeTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsAbstract.Tests.cs index a7222342..2ba07c58 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotAbstract.Tests.cs index db48c84e..7954e8d2 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotObsolete.Tests.cs index b45f1af9..6cdb7eae 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotSealed.Tests.cs index 8560e7de..5f64630e 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsNotSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsObsolete.Tests.cs index 6ccc5495..8e7094d0 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsSealed.Tests.cs index 0d6e7514..98b64a6c 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvent.IsSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvent.IsSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvents.AreAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvents.AreAbstract.Tests.cs index 9ce0c68b..7a305707 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvents.AreAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvents.AreAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvents.AreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvents.AreNotObsolete.Tests.cs index 6e2c67de..43f7f39c 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvents.AreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvents.AreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvents.AreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvents.AreObsolete.Tests.cs index 472eaf6a..226e445f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvents.AreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvents.AreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatEvents.AreSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatEvents.AreSealed.Tests.cs index 3dcef693..65c07e84 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatEvents.AreSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatEvents.AreSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.Has.AttributeTests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.Has.AttributeTests.cs index c7298918..9d9e5e1d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.Has.AttributeTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.Has.AttributeTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsConstant.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsConstant.Tests.cs index e9c1e5db..78e740a3 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsConstant.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsConstant.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotConstant.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotConstant.Tests.cs index 2a13df3d..6a837a27 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotConstant.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotConstant.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotObsolete.Tests.cs index 5d018183..ce1a1e3e 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotReadOnly.Tests.cs index e9556940..1f45fa55 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotStatic.Tests.cs index 09eab8f3..a8e3ee7b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsObsolete.Tests.cs index c8e242a9..5961be1f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsReadOnly.Tests.cs index afd97b91..91e2f4ce 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatFields.AreConstant.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatFields.AreConstant.Tests.cs index d6a6b543..d88b9644 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatFields.AreConstant.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatFields.AreConstant.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotConstant.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotConstant.Tests.cs index 44e1c7d5..3509bd9b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotConstant.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotConstant.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotObsolete.Tests.cs index 8dfdee8c..03686b2d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotReadOnly.Tests.cs index 8a2aa203..dccbf91d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatFields.AreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatFields.AreObsolete.Tests.cs index 1abd4bf7..3b91d41a 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatFields.AreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatFields.AreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatFields.AreReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatFields.AreReadOnly.Tests.cs index da02fe0e..f633ecd2 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatFields.AreReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatFields.AreReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.Has.AttributeTests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.Has.AttributeTests.cs index 29a59136..f6b0c62f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.Has.AttributeTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.Has.AttributeTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasInParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasInParameter.Tests.cs index f4f30b55..66c5fbb3 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasInParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasInParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasOptionalParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasOptionalParameter.Tests.cs index 7a8697d3..34dada76 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasOptionalParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasOptionalParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasOutParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasOutParameter.Tests.cs index 87560349..929e7d7a 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasOutParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasOutParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasParamsParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasParamsParameter.Tests.cs index 938a8034..86d4e4f8 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasParamsParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasParamsParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasRefParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasRefParameter.Tests.cs index d3e5a35f..bfa2d8aa 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.HasRefParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.HasRefParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAbstract.Tests.cs index 032d5e82..e320373c 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAnExtensionMethod.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAnExtensionMethod.Tests.cs index e6f73947..c887a874 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAnExtensionMethod.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAnExtensionMethod.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Reflection.Emit; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAsync.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAsync.Tests.cs index 7e5fa80b..f4e525ce 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAsync.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsAsync.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.Tests.cs index bea79a89..0deeb668 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.WithArgument.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.WithArgument.Tests.cs index e4d3b484..9069a856 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.WithArgument.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.WithArgument.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.WithArgumentCount.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.WithArgumentCount.Tests.cs index 22af797c..aab286a6 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.WithArgumentCount.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsGeneric.WithArgumentCount.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAbstract.Tests.cs index 254ea0c5..3194c2e3 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAnExtensionMethod.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAnExtensionMethod.Tests.cs index 6cd87dbf..cf78d695 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAnExtensionMethod.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAnExtensionMethod.Tests.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER using System; #endif using System.Reflection; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAsync.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAsync.Tests.cs index e65ef1c5..15bd5171 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAsync.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotAsync.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotGeneric.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotGeneric.Tests.cs index 07a0e970..87fc3506 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotGeneric.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotGeneric.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotObsolete.Tests.cs index 9273f8e3..64c19a82 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotSealed.Tests.cs index d1203c30..bff4dbb3 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotStatic.Tests.cs index 78975788..3c89e32f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsObsolete.Tests.cs index 329ef4be..aeacf5c2 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsSealed.Tests.cs index 2191bb31..12614aee 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.IsSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.IsSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.ParameterModifierExactlyOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.ParameterModifierExactlyOverloads.Tests.cs index edc9b3cb..d3731e79 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.ParameterModifierExactlyOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.ParameterModifierExactlyOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.ParameterModifierTypedOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.ParameterModifierTypedOverloads.Tests.cs index abb25e6b..e7b443bc 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.ParameterModifierTypedOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.ParameterModifierTypedOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethod.ReturnsVoid.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethod.ReturnsVoid.Tests.cs index ceaf474f..7946b5ef 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethod.ReturnsVoid.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethod.ReturnsVoid.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreAbstract.Tests.cs index 116097e0..2dc9e7f7 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreAsync.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreAsync.Tests.cs index 9d3693dd..a30a40f0 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreAsync.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreAsync.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreExtensionMethods.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreExtensionMethods.Tests.cs index 39d555eb..64d444f8 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreExtensionMethods.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreExtensionMethods.Tests.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER using System; #endif using System.Collections.Generic; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.Tests.cs index 56c759f0..228fd11c 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Collections; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.WithArgument.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.WithArgument.Tests.cs index 62aef153..82e64c1b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.WithArgument.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.WithArgument.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.WithArgumentCount.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.WithArgumentCount.Tests.cs index c523a792..e5e562aa 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.WithArgumentCount.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreGeneric.WithArgumentCount.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotAbstract.Tests.cs index ae347341..56bab361 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotAsync.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotAsync.Tests.cs index 128f2bc1..683da963 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotAsync.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotAsync.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotExtensionMethods.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotExtensionMethods.Tests.cs index 97f81d45..71a99a8a 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotExtensionMethods.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotExtensionMethods.Tests.cs @@ -1,4 +1,4 @@ -#if NET10_0_OR_GREATER +#if NET10_0_OR_GREATER using System; #endif using System.Collections.Generic; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotGeneric.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotGeneric.Tests.cs index 7d18e7df..e994c5b5 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotGeneric.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotGeneric.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Collections; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotObsolete.Tests.cs index bfead6d9..e33e2022 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotOperators.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotOperators.Tests.cs index b70dfc8d..6d27b671 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotOperators.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreNotOperators.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreObsolete.Tests.cs index f411081d..ed5d35f7 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreOperators.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreOperators.Tests.cs index 6793785b..7f48581a 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreOperators.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreOperators.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreSealed.Tests.cs index bbb76817..7f0d6a5f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.AreSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.AreSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveInParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveInParameter.Tests.cs index 369df8a6..beeb7905 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveInParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveInParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveOptionalParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveOptionalParameter.Tests.cs index c2a449f3..92e894b0 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveOptionalParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveOptionalParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveOutParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveOutParameter.Tests.cs index 6be510f5..13a84927 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveOutParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveOutParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveParameterExactly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveParameterExactly.Tests.cs index 315f3046..c878a36c 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveParameterExactly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveParameterExactly.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveParamsParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveParamsParameter.Tests.cs index 6947e1eb..28c5be1b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveParamsParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveParamsParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveRefParameter.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveRefParameter.Tests.cs index 37d8c168..6bbdfb97 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveRefParameter.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.HaveRefParameter.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.ParameterModifierExactlyOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.ParameterModifierExactlyOverloads.Tests.cs index 23618f26..fc305068 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.ParameterModifierExactlyOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.ParameterModifierExactlyOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.ParameterModifierTypedOverloads.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.ParameterModifierTypedOverloads.Tests.cs index 56711eec..6a8ccda9 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.ParameterModifierTypedOverloads.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.ParameterModifierTypedOverloads.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatMethods.ReturnVoid.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatMethods.ReturnVoid.Tests.cs index e82cb7fe..34ecedcd 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatMethods.ReturnVoid.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatMethods.ReturnVoid.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Collections; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreAbstract.Tests.cs index 4b822be6..eff3a9c3 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreExtensionProperties.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreExtensionProperties.Tests.cs index 0b4b3506..daec12a9 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreExtensionProperties.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreExtensionProperties.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreIndexers.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreIndexers.Tests.cs index ceb14e40..a0ae16f2 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreIndexers.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreIndexers.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotExtensionProperties.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotExtensionProperties.Tests.cs index 9bb79d17..2569ab56 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotExtensionProperties.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotExtensionProperties.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotIndexers.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotIndexers.Tests.cs index 9ce1c3df..382966a3 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotIndexers.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotIndexers.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotObsolete.Tests.cs index dc813860..e4f8f1cc 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreObsolete.Tests.cs index 513ec867..31df44f0 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadOnly.Tests.cs index 504e257e..dd562691 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadWrite.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadWrite.Tests.cs index d555a485..3d7182d6 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadWrite.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadWrite.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadable.Tests.cs index 7b4b05cc..d2af81d7 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreReadable.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreSealed.Tests.cs index 48d3f521..02c03e96 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreStatic.Tests.cs index f0113f9c..138a6222 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreStatic.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreWritable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreWritable.Tests.cs index 2ea285b1..a74b51c0 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreWritable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreWritable.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreWriteOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreWriteOnly.Tests.cs index 88ac2e38..6c05361f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreWriteOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreWriteOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.Has.AttributeTests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.Has.AttributeTests.cs index 1d2159fa..4967b7b2 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.Has.AttributeTests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.Has.AttributeTests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAbstract.Tests.cs index 6c4ff32f..2b433e79 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnExtensionProperty.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnExtensionProperty.Tests.cs index 6fe740bb..7b859150 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnExtensionProperty.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnExtensionProperty.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnIndexer.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnIndexer.Tests.cs index 4b0f0fb9..3341b0c7 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnIndexer.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnIndexer.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAbstract.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAbstract.Tests.cs index 676d87c8..cc1337e5 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAbstract.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAbstract.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAnExtensionProperty.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAnExtensionProperty.Tests.cs index 4ff7aa7e..5c000cd6 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAnExtensionProperty.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAnExtensionProperty.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; #if NET10_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAnIndexer.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAnIndexer.Tests.cs index c650738f..2b425567 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAnIndexer.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotAnIndexer.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotObsolete.Tests.cs index 3be62d7f..716ef11a 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotSealed.Tests.cs index f8679341..8341113b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotStatic.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotStatic.Tests.cs index dc58cdaf..aff5332c 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotStatic.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotStatic.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsObsolete.Tests.cs index 844d7b78..180b1a1d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadOnly.Tests.cs index 65832842..6e1f5085 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadWrite.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadWrite.Tests.cs index f054bf3e..a8836a80 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadWrite.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadWrite.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadable.Tests.cs index de8d71ff..7972580a 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsReadable.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsSealed.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsSealed.Tests.cs index 0c05f71b..44a90585 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsSealed.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsSealed.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsWritable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsWritable.Tests.cs index 7260c47d..fe49debb 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsWritable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsWritable.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsWriteOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsWriteOnly.Tests.cs index 912081f6..45757023 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsWriteOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsWriteOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.ContainsMethods.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.ContainsMethods.Tests.cs index 92e28f59..18e8de7d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.ContainsMethods.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.ContainsMethods.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.DoesNotInheritFrom.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.DoesNotInheritFrom.Tests.cs index 488ea200..36d9d9e8 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.DoesNotInheritFrom.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.DoesNotInheritFrom.Tests.cs @@ -1,4 +1,4 @@ -using Xunit.Sdk; +using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.InheritsFrom.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.InheritsFrom.Tests.cs index 36fb1726..239440c7 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.InheritsFrom.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.InheritsFrom.Tests.cs @@ -1,4 +1,4 @@ -using Xunit.Sdk; +using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsARefStruct.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsARefStruct.Tests.cs index 90a64d33..057598c1 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsARefStruct.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsARefStruct.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers.Types; +using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsGeneric.WithArgument.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsGeneric.WithArgument.Tests.cs index 01bcd984..0e6d2ed0 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsGeneric.WithArgument.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsGeneric.WithArgument.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers; +using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsGeneric.WithArgumentCount.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsGeneric.WithArgumentCount.Tests.cs index 4104a93e..5fc32224 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsGeneric.WithArgumentCount.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsGeneric.WithArgumentCount.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers.Types; +using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsNotARefStruct.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsNotARefStruct.Tests.cs index 005156bd..218bb22d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsNotARefStruct.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsNotARefStruct.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers.Types; +using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsNotObsolete.Tests.cs index 0eedc5c2..6962d520 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers.Types; +using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsNotReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsNotReadOnly.Tests.cs index f2be9994..e67fd68f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsNotReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsNotReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers.Types; +using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsObsolete.Tests.cs index 8effa7f9..3635e3c7 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsObsolete.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers.Types; +using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsReadOnly.Tests.cs index 21d1a567..3aba532f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Tests.TestHelpers.Types; +using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreGeneric.WithArgument.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreGeneric.WithArgument.Tests.cs index dd960e44..613baf94 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreGeneric.WithArgument.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreGeneric.WithArgument.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreGeneric.WithArgumentCount.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreGeneric.WithArgumentCount.Tests.cs index 1dbb45c9..574241fb 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreGeneric.WithArgumentCount.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreGeneric.WithArgumentCount.Tests.cs @@ -1,4 +1,4 @@ -using aweXpect.Reflection.Collections; +using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types; namespace aweXpect.Reflection.Tests; diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotObsolete.Tests.cs index 839b3627..645c6ebd 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotReadOnly.Tests.cs index 87265138..1a837f39 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotRefStructs.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotRefStructs.Tests.cs index c98a7c8c..93acd659 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotRefStructs.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreNotRefStructs.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreObsolete.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreObsolete.Tests.cs index 7a8ecde8..fba075d9 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreObsolete.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreObsolete.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreReadOnly.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreReadOnly.Tests.cs index 30082375..44f616e8 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreReadOnly.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreReadOnly.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreRefStructs.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreRefStructs.Tests.cs index a39759f4..2db9007c 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.AreRefStructs.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.AreRefStructs.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Reflection.Tests.TestHelpers.Types; using Xunit.Sdk; #if NET8_0_OR_GREATER diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.DoNotInheritFrom.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.DoNotInheritFrom.Tests.cs index 4c11fc52..093f53ab 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.DoNotInheritFrom.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.DoNotInheritFrom.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Reflection.Collections; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveNoDependencyCycles.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveNoDependencyCycles.Tests.cs index 15f9138e..4dbb1bac 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveNoDependencyCycles.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveNoDependencyCycles.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using aweXpect.Customization; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Acyclic.High; diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.InheritFrom.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.InheritFrom.Tests.cs index a1619c92..8d7813e4 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.InheritFrom.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.InheritFrom.Tests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using aweXpect.Reflection.Collections; using Xunit.Sdk; diff --git a/Tests/aweXpect.Reflection.Tests/TypesTests.cs b/Tests/aweXpect.Reflection.Tests/TypesTests.cs index ac436db3..e4372f18 100644 --- a/Tests/aweXpect.Reflection.Tests/TypesTests.cs +++ b/Tests/aweXpect.Reflection.Tests/TypesTests.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Reflection; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Types.NamespaceScope; From a8076b9ca3d5c091c28fc3eb2b81023e7ad8f776 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Sat, 6 Jun 2026 12:44:46 +0200 Subject: [PATCH 2/4] chore: apply code style cleanup (member ordering, formatting, test reordering) --- README.md | 78 +-- .../Collections/Filtered.Assemblies.cs | 8 +- .../Collections/Filtered.Constructors.cs | 8 +- .../Collections/Filtered.Events.cs | 8 +- .../Collections/Filtered.Fields.cs | 8 +- .../Collections/Filtered.Methods.cs | 12 +- .../Collections/Filtered.Properties.cs | 8 +- .../Collections/Filtered.Types.cs | 14 +- .../Helpers/DependencyViolationRenderer.cs | 1 - .../Helpers/MemberViolationRenderer.cs | 1 - .../Helpers/NamespaceDependencyGraph.cs | 15 +- .../Helpers/TypeHelpers.cs | 20 +- .../Options/NamespaceDependencyOptions.cs | 24 +- .../Options/TypeDependencyOptions.cs | 5 +- .../Results/DependencyCyclesResult.cs | 4 +- .../NamespaceDependencyOnlyOnResult.cs | 4 +- .../NamespaceDependencyOutsideResult.cs | 4 +- .../Results/NamespaceDependencyResult.cs | 4 +- .../Results/TypeDependencyResult.cs | 4 +- .../Results/TypeSetDependencyOnlyOnResult.cs | 4 +- .../Results/TypeSetDependencyOutsideResult.cs | 4 +- .../Results/TypeSetDependencyResult.cs | 4 +- .../ThatTypes.HaveNoDependencyCycles.cs | 2 +- .../Helpers/AssemblyHelpersTests.cs | 76 +-- .../Helpers/LinqAsyncHelpersTests.cs | 2 +- .../Helpers/NullabilityHelpersTests.cs | 206 +++--- .../Helpers/TypeHelpersTests.cs | 2 +- .../ArchitectureRules.Tests.cs | 48 +- .../FilteredReuseIndependenceTests.cs | 92 +-- ...ethodFilters.WhichAreNotOperators.Tests.cs | 24 +- .../Filters/TypeFilters.Except.Tests.cs | 18 +- .../Filters/TypeFilters.MemberAccess.Tests.cs | 4 +- .../TypeFilters.WhichDependOn.Tests.cs | 55 +- .../TypeFilters.WhichDependOnlyOn.Tests.cs | 32 +- ...ters.WhichHaveDependenciesOutside.Tests.cs | 80 +-- .../TestHelpers/Dependencies/CycleFixtures.cs | 47 +- .../Dependencies/DependencyFixtures.cs | 5 +- .../Types/ImmutabilityTestTypes.cs | 3 +- .../Types/TypesWithNullableMembers.cs | 9 +- .../ThatAssembly.DependsOnlyOn.Tests.cs | 36 +- .../ThatField.IsNotNullable.Tests.cs | 24 +- .../ThatField.IsNullable.Tests.cs | 134 ++-- .../ThatFields.AreNotNullable.Tests.cs | 18 +- .../ThatProperties.AreNotNullable.Tests.cs | 18 +- ...hatProperty.IsAnExtensionProperty.Tests.cs | 64 +- .../ThatProperty.IsNotNullable.Tests.cs | 24 +- .../ThatProperty.IsNullable.Tests.cs | 128 ++-- .../ThatType.DependsOn.Tests.cs | 589 ++++++++++-------- .../ThatType.DependsOnlyOn.Tests.cs | 258 ++++---- .../ThatType.DoesNotDependOn.Tests.cs | 334 +++++----- .../ThatType.HasDependenciesOutside.Tests.cs | 296 +++++---- .../ThatType.HasOperator.Tests.cs | 12 +- .../ThatType.IsImmutable.Tests.cs | 90 +-- .../ThatType.IsNotImmutable.Tests.cs | 24 +- ...hatType.OnlyHasNonNullableMembers.Tests.cs | 34 +- .../ThatType.OnlyHasNullableMembers.Tests.cs | 56 +- .../ThatTypes.DependOn.Tests.cs | 50 +- .../ThatTypes.DependOnlyOn.Tests.cs | 102 +-- .../ThatTypes.DoNotDependOn.Tests.cs | 64 +- ...ThatTypes.HaveDependenciesOutside.Tests.cs | 236 ++++--- .../ThatTypes.HaveNoDependencyCycles.Tests.cs | 252 ++++---- .../ThatTypes.HaveOperator.Tests.cs | 46 +- ...tTypes.OnlyHaveNonNullableMembers.Tests.cs | 46 +- ...ThatTypes.OnlyHaveNullableMembers.Tests.cs | 46 +- Tests/aweXpect.Reflection.Tests/TypesTests.cs | 120 ++-- 65 files changed, 2234 insertions(+), 1814 deletions(-) diff --git a/README.md b/README.md index 5b6991a8..77535b5a 100644 --- a/README.md +++ b/README.md @@ -103,12 +103,12 @@ evaluated collection that you can navigate and filter further. While `In` starts from concrete reflection objects, `Types` selects types *by criteria* — the natural entry point for architecture rules: -| Source | Returns | -|-----------------------------------------------------------------|---------------------------------------------------------------------------------| -| `Types.InNamespace("ns")` | all types within a namespace and its sub-namespaces (across loaded assemblies) | -| `Types.InAllLoadedAssemblies()` | all types in all currently loaded assemblies | -| `Types.InAssemblies(a1, a2, …)` | all types in the given assemblies | -| `Types.InAssemblyContaining()` / `…(typeof(T))` | all types in the assembly that declares `T` | +| Source | Returns | +|----------------------------------------------------|--------------------------------------------------------------------------------| +| `Types.InNamespace("ns")` | all types within a namespace and its sub-namespaces (across loaded assemblies) | +| `Types.InAllLoadedAssemblies()` | all types in all currently loaded assemblies | +| `Types.InAssemblies(a1, a2, …)` | all types in the given assemblies | +| `Types.InAssemblyContaining()` / `…(typeof(T))` | all types in the assembly that declares `T` | `Types.InNamespace(…)` searches all loaded assemblies by default; chain one of the same `In*` methods directly after it to clarify the assembly source (it can only be specified once, before any further filters): @@ -267,34 +267,34 @@ outside the namespace. ### Types -| Kind | Filter | Assert (single) | Assert (many) | -|---------------------|-------------------------------------------------|-----------------------------|------------------------------| -| class | `.WhichAreClasses()` / `.Classes()` | `.IsAClass()` | `.AreClasses()` | -| interface | `.WhichAreInterfaces()` / `.Interfaces()` | `.IsAnInterface()` | `.AreInterfaces()` | -| enum | `.WhichAreEnums()` / `.Enums()` | `.IsAnEnum()` | `.AreEnums()` | -| struct | `.WhichAreStructs()` / `.Structs()` | `.IsAStruct()` | `.AreStructs()` | -| record | `.WhichAreRecords()` / `.Records()` | `.IsARecord()` | `.AreRecords()` | -| record struct | `.WhichAreRecordStructs()` / `.RecordStructs()` | `.IsARecordStruct()` | `.AreRecordStructs()` | -| readonly struct | `.WhichAreReadOnly()` | `.IsReadOnly()` | `.AreReadOnly()` | -| ref struct | `.WhichAreRefStructs()` | `.IsARefStruct()` | `.AreRefStructs()` | -| delegate | `.WhichAreDelegates()` | `.IsADelegate()` | `.AreDelegates()` | -| exception | `.WhichAreExceptions()` | `.IsAnException()` | `.AreExceptions()` | -| attribute | `.WhichAreAttributes()` | `.IsAnAttribute()` | `.AreAttributes()` | -| abstract | `.WhichAreAbstract()` / `.Abstract` | `.IsAbstract()` | `.AreAbstract()` | -| sealed | `.WhichAreSealed()` / `.Sealed` | `.IsSealed()` | `.AreSealed()` | -| static | `.WhichAreStatic()` / `.Static` | `.IsStatic()` | `.AreStatic()` | -| generic | `.WhichAreGeneric()` / `.Generic` | `.IsGeneric()` | `.AreGeneric()` | -| nested | `.WhichAreNested()` / `.Nested` | `.IsNested()` | `.AreNested()` | -| inherits from | `.WhichInheritFrom()` | `.InheritsFrom()` | `.InheritFrom()` | -| implements | `.WhichImplement()` | `.Implements()` | `.Implement()` | -| assignable to | `.WhichAreAssignableTo()` | `.IsAssignableTo()` | `.AreAssignableTo()` | -| assignable from | `.WhichAreAssignableFrom()` | `.IsAssignableFrom()` | `.AreAssignableFrom()` | -| instantiable | `.WhichAreInstantiable()` | `.IsInstantiable()` | `.AreInstantiable()` | -| immutable | `.WhichAreImmutable()` | `.IsImmutable()` | `.AreImmutable()` | -| default constructor | `.WhichHaveADefaultConstructor()` | `.HasADefaultConstructor()` | `.HaveADefaultConstructor()` | -| only nullable members | `.WhichOnlyHaveNullableMembers()` | `.OnlyHasNullableMembers()` | `.OnlyHaveNullableMembers()` | -| only non-nullable members | `.WhichOnlyHaveNonNullableMembers()` | `.OnlyHasNonNullableMembers()` | `.OnlyHaveNonNullableMembers()` | -| custom predicate | `.Which(t => …)` | `.Satisfies(t => …)` | `.All().Satisfy(t => …)` | +| Kind | Filter | Assert (single) | Assert (many) | +|---------------------------|-------------------------------------------------|--------------------------------|---------------------------------| +| class | `.WhichAreClasses()` / `.Classes()` | `.IsAClass()` | `.AreClasses()` | +| interface | `.WhichAreInterfaces()` / `.Interfaces()` | `.IsAnInterface()` | `.AreInterfaces()` | +| enum | `.WhichAreEnums()` / `.Enums()` | `.IsAnEnum()` | `.AreEnums()` | +| struct | `.WhichAreStructs()` / `.Structs()` | `.IsAStruct()` | `.AreStructs()` | +| record | `.WhichAreRecords()` / `.Records()` | `.IsARecord()` | `.AreRecords()` | +| record struct | `.WhichAreRecordStructs()` / `.RecordStructs()` | `.IsARecordStruct()` | `.AreRecordStructs()` | +| readonly struct | `.WhichAreReadOnly()` | `.IsReadOnly()` | `.AreReadOnly()` | +| ref struct | `.WhichAreRefStructs()` | `.IsARefStruct()` | `.AreRefStructs()` | +| delegate | `.WhichAreDelegates()` | `.IsADelegate()` | `.AreDelegates()` | +| exception | `.WhichAreExceptions()` | `.IsAnException()` | `.AreExceptions()` | +| attribute | `.WhichAreAttributes()` | `.IsAnAttribute()` | `.AreAttributes()` | +| abstract | `.WhichAreAbstract()` / `.Abstract` | `.IsAbstract()` | `.AreAbstract()` | +| sealed | `.WhichAreSealed()` / `.Sealed` | `.IsSealed()` | `.AreSealed()` | +| static | `.WhichAreStatic()` / `.Static` | `.IsStatic()` | `.AreStatic()` | +| generic | `.WhichAreGeneric()` / `.Generic` | `.IsGeneric()` | `.AreGeneric()` | +| nested | `.WhichAreNested()` / `.Nested` | `.IsNested()` | `.AreNested()` | +| inherits from | `.WhichInheritFrom()` | `.InheritsFrom()` | `.InheritFrom()` | +| implements | `.WhichImplement()` | `.Implements()` | `.Implement()` | +| assignable to | `.WhichAreAssignableTo()` | `.IsAssignableTo()` | `.AreAssignableTo()` | +| assignable from | `.WhichAreAssignableFrom()` | `.IsAssignableFrom()` | `.AreAssignableFrom()` | +| instantiable | `.WhichAreInstantiable()` | `.IsInstantiable()` | `.AreInstantiable()` | +| immutable | `.WhichAreImmutable()` | `.IsImmutable()` | `.AreImmutable()` | +| default constructor | `.WhichHaveADefaultConstructor()` | `.HasADefaultConstructor()` | `.HaveADefaultConstructor()` | +| only nullable members | `.WhichOnlyHaveNullableMembers()` | `.OnlyHasNullableMembers()` | `.OnlyHaveNullableMembers()` | +| only non-nullable members | `.WhichOnlyHaveNonNullableMembers()` | `.OnlyHasNonNullableMembers()` | `.OnlyHaveNonNullableMembers()` | +| custom predicate | `.Which(t => …)` | `.Satisfies(t => …)` | `.All().Satisfy(t => …)` | `WhichInheritFrom` / `InheritsFrom` consider only the **base-class chain** (not implemented interfaces) and accept a generic argument or a `Type`, plus an optional `forceDirect` flag to require *direct* inheritance. @@ -788,11 +788,11 @@ how to combine them with reusable type selections into a full architecture test The dependency filters and assertions follow the familiar filter/assert pairing: -| | Filter | Assert (single) | Assert (many) | -|--------------------------|------------------------------|-------------------------|------------------------| -| depends on namespace | `.WhichDependOn("x", …)` | `.DependsOn("x", …)` | `.DependOn("x", …)` | -| does not depend on | `.WhichDoNotDependOn("x", …)`| `.DoesNotDependOn("x", …)` | `.DoNotDependOn("x", …)` | -| depends only on set | `.WhichDependOnlyOn("x", …)` | `.DependsOnlyOn("x", …)`| `.DependOnlyOn("x", …)`| +| | Filter | Assert (single) | Assert (many) | +|------------------------------|-----------------------------------------|-----------------------------------|------------------------------------| +| depends on namespace | `.WhichDependOn("x", …)` | `.DependsOn("x", …)` | `.DependOn("x", …)` | +| does not depend on | `.WhichDoNotDependOn("x", …)` | `.DoesNotDependOn("x", …)` | `.DoNotDependOn("x", …)` | +| depends only on set | `.WhichDependOnlyOn("x", …)` | `.DependsOnlyOn("x", …)` | `.DependOnlyOn("x", …)` | | has dependencies outside set | `.WhichHaveDependenciesOutside("x", …)` | `.HasDependenciesOutside("x", …)` | `.HaveDependenciesOutside("x", …)` | ```csharp diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs b/Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs index cffacffd..eec7de95 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Assemblies.cs @@ -59,10 +59,6 @@ private Assemblies(Assemblies inner, List> filters) : base(inn _description = inner._description; } - /// - private protected override Assemblies CloneWith(List> filters) - => new(this, filters); - /// /// Filters for public types. /// @@ -165,6 +161,10 @@ public Types Enums(AccessModifiers accessModifier = AccessModifiers.Any) /// public Properties Properties() => NewBuilder(MemberFilterState.Empty).Properties(); + /// + private protected override Assemblies CloneWith(List> filters) + => new(this, filters); + private AssembliesTypeBuilder NewBuilder(MemberFilterState memberState) => new(this, memberState, new List>(), ""); diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs b/Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs index afaa1999..72cac342 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Constructors.cs @@ -50,10 +50,6 @@ private Constructors(Constructors inner, List> filters) _types = inner._types; } - /// - private protected override Constructors CloneWith(List> filters) - => new(this, filters); - /// public string GetDescription() { @@ -71,6 +67,10 @@ public string GetDescription() return description; } + /// + private protected override Constructors CloneWith(List> filters) + => new(this, filters); + /// /// Get all declaring types of the filtered constructors. /// diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Events.cs b/Source/aweXpect.Reflection/Collections/Filtered.Events.cs index 6e9db70d..28fab5f2 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Events.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Events.cs @@ -53,10 +53,6 @@ private Events(Events inner, List> filters) : base(inner, fil _types = inner._types; } - /// - private protected override Events CloneWith(List> filters) - => new(this, filters); - /// public string GetDescription() { @@ -74,6 +70,10 @@ public string GetDescription() return description; } + /// + private protected override Events CloneWith(List> filters) + => new(this, filters); + /// /// Get all declaring types of the filtered events. /// diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Fields.cs b/Source/aweXpect.Reflection/Collections/Filtered.Fields.cs index 286bc90d..a755016d 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Fields.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Fields.cs @@ -53,10 +53,6 @@ private Fields(Fields inner, List> filters) : base(inner, fil _types = inner._types; } - /// - private protected override Fields CloneWith(List> filters) - => new(this, filters); - /// public string GetDescription() { @@ -74,6 +70,10 @@ public string GetDescription() return description; } + /// + private protected override Fields CloneWith(List> filters) + => new(this, filters); + /// /// Get all declaring types of the filtered fields. /// diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Methods.cs b/Source/aweXpect.Reflection/Collections/Filtered.Methods.cs index d80118c7..9c4ff75e 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Methods.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Methods.cs @@ -27,7 +27,7 @@ public class Methods : Filtered, IDescribableSubject /// internal Methods(Types types, string description, MemberScope memberScope = MemberScope.DeclaredOnly) - : this(types, description, memberScope, includeOperators: false) + : this(types, description, memberScope, false) { } @@ -64,10 +64,6 @@ private Methods(Methods inner, List> filters) : base(inner, _includeOperators = inner._includeOperators; } - /// - private protected override Methods CloneWith(List> filters) - => new(this, filters); - /// public string GetDescription() { @@ -85,6 +81,10 @@ public string GetDescription() return description; } + /// + private protected override Methods CloneWith(List> filters) + => new(this, filters); + /// /// Returns a copy of this collection that additionally includes operator special-name members, so that operator /// filters work even when operators are not opted in via IncludedSpecialNameMembers. @@ -102,7 +102,7 @@ internal Methods WithOperatorsIncluded() return this; } - Methods rebuilt = new(_types, _description, _memberScope, includeOperators: true); + Methods rebuilt = new(_types, _description, _memberScope, true); return rebuilt.CloneWith([.. Filters,]); } diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Properties.cs b/Source/aweXpect.Reflection/Collections/Filtered.Properties.cs index 6eb34736..03fa67df 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Properties.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Properties.cs @@ -53,10 +53,6 @@ private Properties(Properties inner, List> filters) : base _types = inner._types; } - /// - private protected override Properties CloneWith(List> filters) - => new(this, filters); - /// public string GetDescription() { @@ -74,6 +70,10 @@ public string GetDescription() return description; } + /// + private protected override Properties CloneWith(List> filters) + => new(this, filters); + /// /// Get all declaring types of the filtered properties. /// diff --git a/Source/aweXpect.Reflection/Collections/Filtered.Types.cs b/Source/aweXpect.Reflection/Collections/Filtered.Types.cs index 2bdcac85..8a52cf7c 100644 --- a/Source/aweXpect.Reflection/Collections/Filtered.Types.cs +++ b/Source/aweXpect.Reflection/Collections/Filtered.Types.cs @@ -116,10 +116,6 @@ private Types(Types inner, List> filters) : base(inner, filters) _assemblies = inner._assemblies; } - /// - private protected override Types CloneWith(List> filters) - => new(this, filters); - /// /// Filters for public members. /// @@ -218,6 +214,10 @@ public Properties Properties(MemberScope memberScope = MemberScope.DeclaredOnly) IMembers IMembers.IProtected.Internal => new TypesMemberBuilder(this, MemberFilterState.Empty.WithAccess(AccessModifiers.ProtectedInternal)); + /// + private protected override Types CloneWith(List> filters) + => new(this, filters); + /// /// Gets the types of the , ignoring those that fail to load. /// @@ -629,7 +629,7 @@ internal TypeSetDependencyFilterResult( /// /// Widens the filter by the given . /// - public TypeSetDependencyFilterResult OrOn(params Filtered.Types[] targets) + public TypeSetDependencyFilterResult OrOn(params Types[] targets) { TypeSetDependencyOptions widened = _options.Copy(); widened.OrOn(targets); @@ -665,7 +665,7 @@ internal TypeSetDependencyOnlyOnFilterResult( /// /// Widens the filter by the given . /// - public TypeSetDependencyOnlyOnFilterResult OrOn(params Filtered.Types[] targets) + public TypeSetDependencyOnlyOnFilterResult OrOn(params Types[] targets) { TypeSetDependencyOptions widened = _options.Copy(); widened.OrOn(targets); @@ -717,7 +717,7 @@ internal TypeSetDependencyOutsideFilterResult( /// Widens the allowed set by the given , so that dependencies on their /// types no longer count as outside. /// - public TypeSetDependencyOutsideFilterResult OrOn(params Filtered.Types[] targets) + public TypeSetDependencyOutsideFilterResult OrOn(params Types[] targets) { TypeSetDependencyOptions widened = _options.Copy(); widened.OrOn(targets); diff --git a/Source/aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs b/Source/aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs index 6fe5758c..663b1a62 100644 --- a/Source/aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs +++ b/Source/aweXpect.Reflection/Helpers/DependencyViolationRenderer.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Text; -using aweXpect.Core; namespace aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Helpers/MemberViolationRenderer.cs b/Source/aweXpect.Reflection/Helpers/MemberViolationRenderer.cs index 36a0e935..9ae1ebc7 100644 --- a/Source/aweXpect.Reflection/Helpers/MemberViolationRenderer.cs +++ b/Source/aweXpect.Reflection/Helpers/MemberViolationRenderer.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Reflection; using System.Text; -using aweXpect.Core; namespace aweXpect.Reflection.Helpers; diff --git a/Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs b/Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs index 636b6a4b..873037d0 100644 --- a/Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs +++ b/Source/aweXpect.Reflection/Helpers/NamespaceDependencyGraph.cs @@ -29,7 +29,9 @@ namespace aweXpect.Reflection.Helpers; internal sealed class NamespaceDependencyGraph { private NamespaceDependencyGraph(IReadOnlyList> cycles) - => Cycles = cycles; + { + Cycles = cycles; + } /// /// The detected dependency cycles, each as an ordered list of node names that returns to its first node @@ -133,7 +135,7 @@ private static Dictionary BuildFamilyMap(IEnumerable nam foreach (string candidate in present) { if (candidate.Length < representative.Length && - TypeHelpers.NamespaceMatches(key, candidate, includeSubNamespaces: true)) + TypeHelpers.NamespaceMatches(key, candidate, true)) { representative = candidate; } @@ -157,7 +159,7 @@ private static string SliceKey(string? @namespace, string? sliceRoot) } if (sliceRoot is null || - !TypeHelpers.NamespaceMatches(@namespace, sliceRoot, includeSubNamespaces: true) || + !TypeHelpers.NamespaceMatches(@namespace, sliceRoot, true) || string.Equals(@namespace, sliceRoot, StringComparison.Ordinal)) { return @namespace; @@ -199,7 +201,10 @@ private static List ExtractCyclePath( { string start = component.OrderBy(node => node, StringComparer.Ordinal).First(); Dictionary predecessor = new(StringComparer.Ordinal); - HashSet visited = new(StringComparer.Ordinal) { start, }; + HashSet visited = new(StringComparer.Ordinal) + { + start, + }; Queue queue = new(); queue.Enqueue(start); @@ -253,11 +258,11 @@ private static List BuildPath( /// private sealed class TarjanScc(Dictionary> adjacency) { + private readonly List> _components = []; private readonly Dictionary _indices = new(StringComparer.Ordinal); private readonly Dictionary _lowLinks = new(StringComparer.Ordinal); private readonly HashSet _onStack = new(StringComparer.Ordinal); private readonly Stack _stack = new(); - private readonly List> _components = []; private int _nextIndex; public List> StronglyConnectedComponents() diff --git a/Source/aweXpect.Reflection/Helpers/TypeHelpers.cs b/Source/aweXpect.Reflection/Helpers/TypeHelpers.cs index 3f77f9db..d0362448 100644 --- a/Source/aweXpect.Reflection/Helpers/TypeHelpers.cs +++ b/Source/aweXpect.Reflection/Helpers/TypeHelpers.cs @@ -888,9 +888,8 @@ internal static IReadOnlyList GetDependencyNamespaceViolations( { List violations = []; HashSet seen = new(StringComparer.Ordinal); - foreach (Type dependency in type.GetDependencyViolations( - (dependency, ownNamespace, excludedPrefixes) - => IsDependencyViolation(dependency, ownNamespace, allowed, excludedPrefixes))) + foreach (Type dependency in type.GetDependencyViolations((dependency, ownNamespace, excludedPrefixes) + => IsDependencyViolation(dependency, ownNamespace, allowed, excludedPrefixes))) { string display = dependency.Namespace ?? GlobalNamespaceDisplay; if (seen.Add(display)) @@ -912,9 +911,8 @@ internal static IReadOnlyList GetDependencyNamespaceViolations( /// a verdict and not the violation list. /// internal static bool HasDependencyNamespaceViolations(this Type type, NamespaceDependencyOptions allowed) - => type.GetDependencyViolations( - (dependency, ownNamespace, excludedPrefixes) - => IsDependencyViolation(dependency, ownNamespace, allowed, excludedPrefixes)).Any(); + => type.GetDependencyViolations((dependency, ownNamespace, excludedPrefixes) + => IsDependencyViolation(dependency, ownNamespace, allowed, excludedPrefixes)).Any(); private static bool IsDependencyViolation( Type dependency, string? ownNamespace, NamespaceDependencyOptions allowed, string[] excludedPrefixes) @@ -972,9 +970,8 @@ internal static IReadOnlyList GetDependencyTypeSetViolations( this Type type, ResolvedTypeSet allowed) { List violations = []; - foreach (IGrouping sameName in type.GetDependencyViolations( - (dependency, ownNamespace, excludedPrefixes) - => IsDependencyTypeSetViolation(dependency, ownNamespace, allowed, excludedPrefixes)) + foreach (IGrouping sameName in type.GetDependencyViolations((dependency, ownNamespace, excludedPrefixes) + => IsDependencyTypeSetViolation(dependency, ownNamespace, allowed, excludedPrefixes)) .GroupBy(dependency => Formatter.Format(dependency), StringComparer.Ordinal)) { Type[] violators = sameName.ToArray(); @@ -1003,9 +1000,8 @@ internal static IReadOnlyList GetDependencyTypeSetViolations( /// a verdict and not the violation list. /// internal static bool HasDependencyTypeSetViolations(this Type type, ResolvedTypeSet allowed) - => type.GetDependencyViolations( - (dependency, ownNamespace, excludedPrefixes) - => IsDependencyTypeSetViolation(dependency, ownNamespace, allowed, excludedPrefixes)).Any(); + => type.GetDependencyViolations((dependency, ownNamespace, excludedPrefixes) + => IsDependencyTypeSetViolation(dependency, ownNamespace, allowed, excludedPrefixes)).Any(); private static bool IsDependencyTypeSetViolation( Type dependency, string? ownNamespace, ResolvedTypeSet allowed, string[] excludedPrefixes) diff --git a/Source/aweXpect.Reflection/Options/NamespaceDependencyOptions.cs b/Source/aweXpect.Reflection/Options/NamespaceDependencyOptions.cs index 30146220..70310818 100644 --- a/Source/aweXpect.Reflection/Options/NamespaceDependencyOptions.cs +++ b/Source/aweXpect.Reflection/Options/NamespaceDependencyOptions.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using aweXpect.Core; using aweXpect.Reflection.Helpers; namespace aweXpect.Reflection.Options; @@ -17,25 +16,20 @@ internal sealed class NamespaceDependencyOptions { private readonly List _namespaces = []; private bool _excludeOwnSubNamespaces; - private bool _excludeSubNamespaces; public NamespaceDependencyOptions(IEnumerable namespaces) - => OrOn(namespaces); + { + OrOn(namespaces); + } private NamespaceDependencyOptions(IEnumerable namespaces, bool excludeSubNamespaces, bool excludeOwnSubNamespaces) { _namespaces.AddRange(namespaces); - _excludeSubNamespaces = excludeSubNamespaces; + ExcludeSubNamespaces = excludeSubNamespaces; _excludeOwnSubNamespaces = excludeOwnSubNamespaces; } - /// - /// Creates an independent copy, so that refining a (reusable) filter does not mutate the shared instance. - /// - public NamespaceDependencyOptions Copy() - => new(_namespaces, _excludeSubNamespaces, _excludeOwnSubNamespaces); - /// /// The namespaces that are targeted (for depends-on / does-not-depend-on) or allowed (for depends-only-on). /// @@ -44,7 +38,7 @@ public NamespaceDependencyOptions Copy() /// /// Indicates whether sub-namespaces are excluded from matching. /// - public bool ExcludeSubNamespaces => _excludeSubNamespaces; + public bool ExcludeSubNamespaces { get; private set; } /// /// Indicates whether sub-namespaces of the type's own namespace are still allowed (for depends-only-on @@ -56,6 +50,12 @@ public NamespaceDependencyOptions Copy() /// public bool IncludeOwnSubNamespaces => !_excludeOwnSubNamespaces; + /// + /// Creates an independent copy, so that refining a (reusable) filter does not mutate the shared instance. + /// + public NamespaceDependencyOptions Copy() + => new(_namespaces, ExcludeSubNamespaces, _excludeOwnSubNamespaces); + /// /// Widens the set of targeted/allowed namespaces by the given . /// @@ -121,7 +121,7 @@ private static void ThrowOnUnmatchableNamespace(IEnumerable namespaces) /// Excludes sub-namespaces of the targeted/allowed namespaces from matching for the whole expression. /// public void ExcludingSubNamespaces() - => _excludeSubNamespaces = true; + => ExcludeSubNamespaces = true; /// /// Excludes sub-namespaces of the type's own namespace from being implicitly allowed (for depends-only-on diff --git a/Source/aweXpect.Reflection/Options/TypeDependencyOptions.cs b/Source/aweXpect.Reflection/Options/TypeDependencyOptions.cs index fca0d96b..f04bbe34 100644 --- a/Source/aweXpect.Reflection/Options/TypeDependencyOptions.cs +++ b/Source/aweXpect.Reflection/Options/TypeDependencyOptions.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using aweXpect.Core; using aweXpect.Reflection.Helpers; namespace aweXpect.Reflection.Options; @@ -18,7 +17,9 @@ internal sealed class TypeDependencyOptions private readonly List _types = []; public TypeDependencyOptions(Type type) - => _types.Add(type ?? throw new ArgumentNullException(nameof(type))); + { + _types.Add(type ?? throw new ArgumentNullException(nameof(type))); + } /// /// The targeted types. diff --git a/Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs b/Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs index 5d65abe4..068b19a1 100644 --- a/Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs +++ b/Source/aweXpect.Reflection/Results/DependencyCyclesResult.cs @@ -18,7 +18,9 @@ internal DependencyCyclesResult( IThat subject, DependencyCyclesOptions options) : base(expectationBuilder, subject) - => _options = options; + { + _options = options; + } /// /// Treats every namespace as its own node, so that a reference between a namespace and one of its sub-namespaces diff --git a/Source/aweXpect.Reflection/Results/NamespaceDependencyOnlyOnResult.cs b/Source/aweXpect.Reflection/Results/NamespaceDependencyOnlyOnResult.cs index 9b2f9e15..9d910e14 100644 --- a/Source/aweXpect.Reflection/Results/NamespaceDependencyOnlyOnResult.cs +++ b/Source/aweXpect.Reflection/Results/NamespaceDependencyOnlyOnResult.cs @@ -19,7 +19,9 @@ internal NamespaceDependencyOnlyOnResult( IThat subject, NamespaceDependencyOptions options) : base(expectationBuilder, subject) - => _options = options; + { + _options = options; + } /// /// Widens the expression by the given (including sub-namespaces unless diff --git a/Source/aweXpect.Reflection/Results/NamespaceDependencyOutsideResult.cs b/Source/aweXpect.Reflection/Results/NamespaceDependencyOutsideResult.cs index 3985e932..c58d757b 100644 --- a/Source/aweXpect.Reflection/Results/NamespaceDependencyOutsideResult.cs +++ b/Source/aweXpect.Reflection/Results/NamespaceDependencyOutsideResult.cs @@ -20,7 +20,9 @@ internal NamespaceDependencyOutsideResult( IThat subject, NamespaceDependencyOptions options) : base(expectationBuilder, subject) - => _options = options; + { + _options = options; + } /// /// Widens the allowed set by the given (including sub-namespaces unless diff --git a/Source/aweXpect.Reflection/Results/NamespaceDependencyResult.cs b/Source/aweXpect.Reflection/Results/NamespaceDependencyResult.cs index cba99a24..e7fb4553 100644 --- a/Source/aweXpect.Reflection/Results/NamespaceDependencyResult.cs +++ b/Source/aweXpect.Reflection/Results/NamespaceDependencyResult.cs @@ -19,7 +19,9 @@ internal NamespaceDependencyResult( IThat subject, NamespaceDependencyOptions options) : base(expectationBuilder, subject) - => _options = options; + { + _options = options; + } /// /// Widens the expression by the given (including sub-namespaces unless diff --git a/Source/aweXpect.Reflection/Results/TypeDependencyResult.cs b/Source/aweXpect.Reflection/Results/TypeDependencyResult.cs index 6b7bb5d6..c47b493a 100644 --- a/Source/aweXpect.Reflection/Results/TypeDependencyResult.cs +++ b/Source/aweXpect.Reflection/Results/TypeDependencyResult.cs @@ -18,7 +18,9 @@ internal TypeDependencyResult( IThat subject, TypeDependencyOptions options) : base(expectationBuilder, subject) - => _options = options; + { + _options = options; + } /// /// Widens the expression by the type . diff --git a/Source/aweXpect.Reflection/Results/TypeSetDependencyOnlyOnResult.cs b/Source/aweXpect.Reflection/Results/TypeSetDependencyOnlyOnResult.cs index a197ef70..1b698037 100644 --- a/Source/aweXpect.Reflection/Results/TypeSetDependencyOnlyOnResult.cs +++ b/Source/aweXpect.Reflection/Results/TypeSetDependencyOnlyOnResult.cs @@ -20,7 +20,9 @@ internal TypeSetDependencyOnlyOnResult( IThat subject, TypeSetDependencyOptions options) : base(expectationBuilder, subject) - => _options = options; + { + _options = options; + } /// /// Widens the expression by the given . diff --git a/Source/aweXpect.Reflection/Results/TypeSetDependencyOutsideResult.cs b/Source/aweXpect.Reflection/Results/TypeSetDependencyOutsideResult.cs index c8af0999..295ba605 100644 --- a/Source/aweXpect.Reflection/Results/TypeSetDependencyOutsideResult.cs +++ b/Source/aweXpect.Reflection/Results/TypeSetDependencyOutsideResult.cs @@ -20,7 +20,9 @@ internal TypeSetDependencyOutsideResult( IThat subject, TypeSetDependencyOptions options) : base(expectationBuilder, subject) - => _options = options; + { + _options = options; + } /// /// Widens the allowed set by the given , so that dependencies on their types no diff --git a/Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs b/Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs index 35754980..68ff045f 100644 --- a/Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs +++ b/Source/aweXpect.Reflection/Results/TypeSetDependencyResult.cs @@ -19,7 +19,9 @@ internal TypeSetDependencyResult( IThat subject, TypeSetDependencyOptions options) : base(expectationBuilder, subject) - => _options = options; + { + _options = options; + } /// /// Widens the expression by the given . diff --git a/Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs b/Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs index ed40c5cf..740e51bc 100644 --- a/Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs +++ b/Source/aweXpect.Reflection/ThatTypes.HaveNoDependencyCycles.cs @@ -110,7 +110,7 @@ public ConstraintResult IsMetBy(IEnumerable actual) { // Materialize once: the source (e.g. Types.InNamespace(...)) may be lazy and re-scan assemblies on every // enumeration, while both the cycle detection and the later result formatting read Actual. - List materialized = [.. actual]; + List materialized = [.. actual,]; Actual = materialized; return SetResult(materialized); } diff --git a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AssemblyHelpersTests.cs b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AssemblyHelpersTests.cs index 63fe28d3..5f2b75fd 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AssemblyHelpersTests.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/AssemblyHelpersTests.cs @@ -32,6 +32,44 @@ public async Task HasAttribute_WithAttributeType_WithPredicate_ShouldReturnPredi await That(result2).IsFalse(); } + [Theory] + [InlineData("System", "System", true)] + [InlineData("System.Text.Json", "System", true)] + [InlineData("SystemsBiology.Core", "System", false)] + [InlineData("SystemsBiology", "System", false)] + // A customized prefix written with a trailing dot is boundary-safe by construction. + [InlineData("MyCompany.Domain", "MyCompany.", true)] + [InlineData("MyCompany.", "MyCompany.", true)] + [InlineData("MyCompany", "MyCompany.", false)] + [InlineData("MyCompanyOther", "MyCompany.", false)] + public async Task IsExcludedAssemblyName_ShouldMatchAtNameSegmentBoundary( + string assemblyName, string prefix, bool expected) + { + bool result = assemblyName.IsExcludedAssemblyName([prefix,]); + + await That(result).IsEqualTo(expected); + } + + [Fact] + public async Task IsExcludedAssemblyName_WhenAssemblyNameIsNull_ShouldReturnFalse() + { + string? assemblyName = null; + + bool result = assemblyName.IsExcludedAssemblyName(["System",]); + + await That(result).IsFalse(); + } + + [Fact] + public async Task IsExcludedAssemblyName_WhenPrefixIsEmpty_ShouldBeIgnored() + { + // An empty prefix cannot identify an assembly; it must neither exclude everything + // (the old StartsWith behavior) nor be silently evaluated against the boundary check. + bool result = "AnyAssembly".IsExcludedAssemblyName(["",]); + + await That(result).IsFalse(); + } + [Theory] [InlineData(".NETCoreApp,Version=v5.0", "net5.0")] [InlineData(".NETCoreApp,Version=v6.0", "net6.0")] @@ -76,44 +114,6 @@ public async Task MapFrameworkName_WhenUnparsable_ShouldReturnInput() await That(result).IsEqualTo("SomethingWithoutAVersion"); } - - [Theory] - [InlineData("System", "System", true)] - [InlineData("System.Text.Json", "System", true)] - [InlineData("SystemsBiology.Core", "System", false)] - [InlineData("SystemsBiology", "System", false)] - // A customized prefix written with a trailing dot is boundary-safe by construction. - [InlineData("MyCompany.Domain", "MyCompany.", true)] - [InlineData("MyCompany.", "MyCompany.", true)] - [InlineData("MyCompany", "MyCompany.", false)] - [InlineData("MyCompanyOther", "MyCompany.", false)] - public async Task IsExcludedAssemblyName_ShouldMatchAtNameSegmentBoundary( - string assemblyName, string prefix, bool expected) - { - bool result = assemblyName.IsExcludedAssemblyName([prefix,]); - - await That(result).IsEqualTo(expected); - } - - [Fact] - public async Task IsExcludedAssemblyName_WhenAssemblyNameIsNull_ShouldReturnFalse() - { - string? assemblyName = null; - - bool result = assemblyName.IsExcludedAssemblyName(["System",]); - - await That(result).IsFalse(); - } - - [Fact] - public async Task IsExcludedAssemblyName_WhenPrefixIsEmpty_ShouldBeIgnored() - { - // An empty prefix cannot identify an assembly; it must neither exclude everything - // (the old StartsWith behavior) nor be silently evaluated against the boundary check. - bool result = "AnyAssembly".IsExcludedAssemblyName(["",]); - - await That(result).IsFalse(); - } } #pragma warning restore CA2263 // Prefer generic overload when type is known diff --git a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/LinqAsyncHelpersTests.cs b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/LinqAsyncHelpersTests.cs index d2f49514..d6786677 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/LinqAsyncHelpersTests.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/LinqAsyncHelpersTests.cs @@ -127,7 +127,7 @@ public async Task Distinct_ShouldYieldEachItemOnlyOnce() int[] source = [1, 1, 2, 3, 3, 3,]; List result = new(); - await foreach (int item in LinqAsyncHelpers.Distinct(ToAsync(source))) + await foreach (int item in ToAsync(source).Distinct()) { result.Add(item); } diff --git a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/NullabilityHelpersTests.cs b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/NullabilityHelpersTests.cs index b6a6e754..bb68015f 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/NullabilityHelpersTests.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/NullabilityHelpersTests.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using aweXpect.Reflection.Helpers; @@ -8,19 +9,34 @@ namespace aweXpect.Reflection.Internal.Tests.Helpers; public sealed class NullabilityHelpersTests { [Fact] - public async Task IsNullable_WithNullFieldInfo_ShouldReturnFalse() + public async Task GetNotNullableMembers_ShouldReturnNonNullableFieldsAndProperties() { - FieldInfo? fieldInfo = null; + MemberInfo[] notNullableMembers = typeof(NullabilityTestClass).GetNotNullableMembers(); - await That(fieldInfo.IsNullable()).IsFalse(); + await That(notNullableMembers.Select(member => member.Name)).IsEqualTo([ + nameof(NullabilityTestClass.NonNullableValueField), + nameof(NullabilityTestClass.NonNullableReferenceField), + nameof(NullabilityTestClass.NonNullableGenericField), + nameof(NullabilityTestClass.NonNullableValueProperty), + nameof(NullabilityTestClass.NonNullableReferenceProperty), + nameof(NullabilityTestClass.NonNullableGenericProperty), + ]).InAnyOrder(); } [Fact] - public async Task IsNullable_WithNullPropertyInfo_ShouldReturnFalse() + public async Task GetNullableMembers_ShouldReturnNullableFieldsAndProperties() { - PropertyInfo? propertyInfo = null; + MemberInfo[] nullableMembers = typeof(NullabilityTestClass).GetNullableMembers(); - await That(propertyInfo.IsNullable()).IsFalse(); + await That(nullableMembers.Select(member => member.Name)).IsEqualTo([ + nameof(NullabilityTestClass.NullableValueField), + nameof(NullabilityTestClass.NullableReferenceField), + nameof(NullabilityTestClass.NullableGenericField), + nameof(NullabilityTestClass.NullableValueProperty), + nameof(NullabilityTestClass.NullableReferenceProperty), + nameof(NullabilityTestClass.NullableGenericProperty), + nameof(NullabilityTestClass.NullableWriteOnlyProperty), + ]).InAnyOrder(); } [Theory] @@ -53,64 +69,73 @@ public async Task IsNullable_ShouldEvaluatePropertyNullability(string propertyNa } [Theory] - [InlineData(nameof(AllNullableTestClass.FirstNullableField))] - [InlineData(nameof(AllNullableTestClass.SecondNullableField))] - [InlineData(nameof(AllNullableTestClass.FirstNullableProperty))] - public async Task IsNullable_WhenNullabilityIsStoredInContextOfDeclaringType_ShouldReturnTrue(string memberName) + [InlineData(nameof(MostlyNullableTestClass.NonNullableField), false)] + [InlineData(nameof(MostlyNullableTestClass.NonNullableProperty), false)] + [InlineData(nameof(MostlyNullableTestClass.FirstNullableField), true)] + public async Task IsNullable_WhenMemberDiffersFromContextOfDeclaringType_ShouldEvaluateNullability( + string memberName, bool expectNullable) { - MemberInfo memberInfo = typeof(AllNullableTestClass).GetMember(memberName).Single(); + MemberInfo memberInfo = typeof(MostlyNullableTestClass).GetMember(memberName).Single(); bool result = memberInfo is FieldInfo fieldInfo ? fieldInfo.IsNullable() : ((PropertyInfo)memberInfo).IsNullable(); - await That(result).IsTrue(); + await That(result).IsEqualTo(expectNullable); } [Theory] - [InlineData(nameof(NullabilityEdgeCaseTestClass.NullableArrayField), true)] - [InlineData(nameof(NullabilityEdgeCaseTestClass.ArrayOfNullableField), false)] - [InlineData(nameof(NullabilityEdgeCaseTestClass.NullableArrayProperty), true)] - [InlineData(nameof(NullabilityEdgeCaseTestClass.ArrayOfNullableProperty), false)] - public async Task IsNullable_WithArrayMembers_ShouldOnlyConsiderTheTopLevelAnnotation( - string memberName, bool expectNullable) + [InlineData(nameof(ObliviousTestClass.ObliviousField))] + [InlineData(nameof(ObliviousTestClass.ObliviousProperty))] + public async Task IsNullable_WhenMemberIsOblivious_ShouldReturnFalse(string memberName) { - MemberInfo memberInfo = typeof(NullabilityEdgeCaseTestClass).GetMember(memberName).Single(); + MemberInfo memberInfo = typeof(ObliviousTestClass).GetMember(memberName).Single(); bool result = memberInfo is FieldInfo fieldInfo ? fieldInfo.IsNullable() : ((PropertyInfo)memberInfo).IsNullable(); - await That(result).IsEqualTo(expectNullable); + await That(result).IsFalse(); } - [Fact] - public async Task IsNullable_WithNullableIndexer_ShouldReturnTrue() + [Theory] + [InlineData(nameof(ObliviousTestClass.NestedObliviousTestClass.NestedObliviousField))] + [InlineData(nameof(ObliviousTestClass.NestedObliviousTestClass.NestedObliviousProperty))] + public async Task IsNullable_WhenMemberIsObliviousInNestedClass_ShouldReturnFalse(string memberName) { - PropertyInfo propertyInfo = typeof(NullabilityEdgeCaseTestClass).GetProperty("Item")!; + MemberInfo memberInfo = typeof(ObliviousTestClass.NestedObliviousTestClass).GetMember(memberName).Single(); - await That(propertyInfo.IsNullable()).IsTrue(); + bool result = memberInfo is FieldInfo fieldInfo + ? fieldInfo.IsNullable() + : ((PropertyInfo)memberInfo).IsNullable(); + + await That(result).IsFalse(); } [Theory] - [InlineData(nameof(NullabilityEdgeCaseTestClass.AllowNullProperty))] - [InlineData(nameof(NullabilityEdgeCaseTestClass.MaybeNullProperty))] - public async Task IsNullable_WithPostConditionAttributes_ShouldIgnoreThemAndReturnFalse(string propertyName) + [InlineData(nameof(AllNullableTestClass.FirstNullableField))] + [InlineData(nameof(AllNullableTestClass.SecondNullableField))] + [InlineData(nameof(AllNullableTestClass.FirstNullableProperty))] + public async Task IsNullable_WhenNullabilityIsStoredInContextOfDeclaringType_ShouldReturnTrue(string memberName) { - PropertyInfo propertyInfo = typeof(NullabilityEdgeCaseTestClass).GetProperty(propertyName)!; + MemberInfo memberInfo = typeof(AllNullableTestClass).GetMember(memberName).Single(); - await That(propertyInfo.IsNullable()).IsFalse(); + bool result = memberInfo is FieldInfo fieldInfo + ? fieldInfo.IsNullable() + : ((PropertyInfo)memberInfo).IsNullable(); + + await That(result).IsTrue(); } [Theory] - [InlineData(nameof(GenericTestClass.UnannotatedField), false)] - [InlineData(nameof(GenericTestClass.AnnotatedField), true)] - [InlineData(nameof(GenericTestClass.UnannotatedProperty), false)] - [InlineData(nameof(GenericTestClass.AnnotatedProperty), true)] - public async Task IsNullable_WithGenericTypeParameterMembers_ShouldOnlyConsiderTheAnnotation( + [InlineData(nameof(NullabilityEdgeCaseTestClass.NullableArrayField), true)] + [InlineData(nameof(NullabilityEdgeCaseTestClass.ArrayOfNullableField), false)] + [InlineData(nameof(NullabilityEdgeCaseTestClass.NullableArrayProperty), true)] + [InlineData(nameof(NullabilityEdgeCaseTestClass.ArrayOfNullableProperty), false)] + public async Task IsNullable_WithArrayMembers_ShouldOnlyConsiderTheTopLevelAnnotation( string memberName, bool expectNullable) { - MemberInfo memberInfo = typeof(GenericTestClass<>).GetMember(memberName).Single(); + MemberInfo memberInfo = typeof(NullabilityEdgeCaseTestClass).GetMember(memberName).Single(); bool result = memberInfo is FieldInfo fieldInfo ? fieldInfo.IsNullable() @@ -121,19 +146,19 @@ public async Task IsNullable_WithGenericTypeParameterMembers_ShouldOnlyConsiderT [Theory] [InlineData(nameof(GenericTestClass.UnannotatedField))] - [InlineData(nameof(GenericTestClass.AnnotatedField))] [InlineData(nameof(GenericTestClass.UnannotatedProperty))] - [InlineData(nameof(GenericTestClass.AnnotatedProperty))] - public async Task IsNullable_WithGenericParameterMembers_WhenDerivedTypeUsesNullableArgument_ShouldReturnTrue( + public async Task IsNullable_WithGenericParameterMembers_WhenAccessedViaConstructedType_ShouldReturnFalse( string memberName) { - MemberInfo memberInfo = typeof(DerivedFromGenericTestClassWithNullableArgument).GetMember(memberName).Single(); + // The nullable annotation of a type argument is not part of System.Type, so it can only be + // resolved through the base type metadata of a derived type. + MemberInfo memberInfo = typeof(GenericTestClass).GetMember(memberName).Single(); bool result = memberInfo is FieldInfo fieldInfo ? fieldInfo.IsNullable() : ((PropertyInfo)memberInfo).IsNullable(); - await That(result).IsTrue(); + await That(result).IsFalse(); } [Theory] @@ -156,29 +181,30 @@ public async Task IsNullable_WithGenericParameterMembers_WhenDerivedTypeUsesNonN [Theory] [InlineData(nameof(GenericTestClass.UnannotatedField))] + [InlineData(nameof(GenericTestClass.AnnotatedField))] [InlineData(nameof(GenericTestClass.UnannotatedProperty))] - public async Task IsNullable_WithGenericParameterMembers_WhenAccessedViaConstructedType_ShouldReturnFalse( + [InlineData(nameof(GenericTestClass.AnnotatedProperty))] + public async Task IsNullable_WithGenericParameterMembers_WhenDerivedTypeUsesNullableArgument_ShouldReturnTrue( string memberName) { - // The nullable annotation of a type argument is not part of System.Type, so it can only be - // resolved through the base type metadata of a derived type. - MemberInfo memberInfo = typeof(GenericTestClass).GetMember(memberName).Single(); + MemberInfo memberInfo = typeof(DerivedFromGenericTestClassWithNullableArgument).GetMember(memberName).Single(); bool result = memberInfo is FieldInfo fieldInfo ? fieldInfo.IsNullable() : ((PropertyInfo)memberInfo).IsNullable(); - await That(result).IsFalse(); + await That(result).IsTrue(); } [Theory] - [InlineData(nameof(MostlyNullableTestClass.NonNullableField), false)] - [InlineData(nameof(MostlyNullableTestClass.NonNullableProperty), false)] - [InlineData(nameof(MostlyNullableTestClass.FirstNullableField), true)] - public async Task IsNullable_WhenMemberDiffersFromContextOfDeclaringType_ShouldEvaluateNullability( + [InlineData(nameof(GenericTestClass.UnannotatedField), false)] + [InlineData(nameof(GenericTestClass.AnnotatedField), true)] + [InlineData(nameof(GenericTestClass.UnannotatedProperty), false)] + [InlineData(nameof(GenericTestClass.AnnotatedProperty), true)] + public async Task IsNullable_WithGenericTypeParameterMembers_ShouldOnlyConsiderTheAnnotation( string memberName, bool expectNullable) { - MemberInfo memberInfo = typeof(MostlyNullableTestClass).GetMember(memberName).Single(); + MemberInfo memberInfo = typeof(GenericTestClass<>).GetMember(memberName).Single(); bool result = memberInfo is FieldInfo fieldInfo ? fieldInfo.IsNullable() @@ -187,74 +213,49 @@ public async Task IsNullable_WhenMemberDiffersFromContextOfDeclaringType_ShouldE await That(result).IsEqualTo(expectNullable); } - [Theory] - [InlineData(nameof(ObliviousTestClass.ObliviousField))] - [InlineData(nameof(ObliviousTestClass.ObliviousProperty))] - public async Task IsNullable_WhenMemberIsOblivious_ShouldReturnFalse(string memberName) + [Fact] + public async Task IsNullable_WithNullableIndexer_ShouldReturnTrue() { - MemberInfo memberInfo = typeof(ObliviousTestClass).GetMember(memberName).Single(); - - bool result = memberInfo is FieldInfo fieldInfo - ? fieldInfo.IsNullable() - : ((PropertyInfo)memberInfo).IsNullable(); + PropertyInfo propertyInfo = typeof(NullabilityEdgeCaseTestClass).GetProperty("Item")!; - await That(result).IsFalse(); + await That(propertyInfo.IsNullable()).IsTrue(); } - [Theory] - [InlineData(nameof(ObliviousTestClass.NestedObliviousTestClass.NestedObliviousField))] - [InlineData(nameof(ObliviousTestClass.NestedObliviousTestClass.NestedObliviousProperty))] - public async Task IsNullable_WhenMemberIsObliviousInNestedClass_ShouldReturnFalse(string memberName) + [Fact] + public async Task IsNullable_WithNullFieldInfo_ShouldReturnFalse() { - MemberInfo memberInfo = typeof(ObliviousTestClass.NestedObliviousTestClass).GetMember(memberName).Single(); - - bool result = memberInfo is FieldInfo fieldInfo - ? fieldInfo.IsNullable() - : ((PropertyInfo)memberInfo).IsNullable(); + FieldInfo? fieldInfo = null; - await That(result).IsFalse(); + await That(fieldInfo.IsNullable()).IsFalse(); } [Fact] - public async Task GetNullableMembers_ShouldReturnNullableFieldsAndProperties() + public async Task IsNullable_WithNullPropertyInfo_ShouldReturnFalse() { - MemberInfo[] nullableMembers = typeof(NullabilityTestClass).GetNullableMembers(); + PropertyInfo? propertyInfo = null; - await That(nullableMembers.Select(member => member.Name)).IsEqualTo([ - nameof(NullabilityTestClass.NullableValueField), - nameof(NullabilityTestClass.NullableReferenceField), - nameof(NullabilityTestClass.NullableGenericField), - nameof(NullabilityTestClass.NullableValueProperty), - nameof(NullabilityTestClass.NullableReferenceProperty), - nameof(NullabilityTestClass.NullableGenericProperty), - nameof(NullabilityTestClass.NullableWriteOnlyProperty), - ]).InAnyOrder(); + await That(propertyInfo.IsNullable()).IsFalse(); } - [Fact] - public async Task GetNotNullableMembers_ShouldReturnNonNullableFieldsAndProperties() + [Theory] + [InlineData(nameof(NullabilityEdgeCaseTestClass.AllowNullProperty))] + [InlineData(nameof(NullabilityEdgeCaseTestClass.MaybeNullProperty))] + public async Task IsNullable_WithPostConditionAttributes_ShouldIgnoreThemAndReturnFalse(string propertyName) { - MemberInfo[] notNullableMembers = typeof(NullabilityTestClass).GetNotNullableMembers(); + PropertyInfo propertyInfo = typeof(NullabilityEdgeCaseTestClass).GetProperty(propertyName)!; - await That(notNullableMembers.Select(member => member.Name)).IsEqualTo([ - nameof(NullabilityTestClass.NonNullableValueField), - nameof(NullabilityTestClass.NonNullableReferenceField), - nameof(NullabilityTestClass.NonNullableGenericField), - nameof(NullabilityTestClass.NonNullableValueProperty), - nameof(NullabilityTestClass.NonNullableReferenceProperty), - nameof(NullabilityTestClass.NonNullableGenericProperty), - ]).InAnyOrder(); + await That(propertyInfo.IsNullable()).IsFalse(); } #pragma warning disable CS0649 // Field is never assigned to, and will always have its default value public class NullabilityTestClass { - public int? NullableValueField; - public int NonNullableValueField; - public string? NullableReferenceField; + public List NonNullableGenericField = []; public string NonNullableReferenceField = ""; + public int NonNullableValueField; public List? NullableGenericField; - public List NonNullableGenericField = []; + public string? NullableReferenceField; + public int? NullableValueField; public int? NullableValueProperty { get; set; } public int NonNullableValueProperty { get; set; } public string? NullableReferenceProperty { get; set; } @@ -279,16 +280,14 @@ public class AllNullableTestClass public class NullabilityEdgeCaseTestClass { - public string[]? NullableArrayField; public string?[] ArrayOfNullableField = []; + public string[]? NullableArrayField; public string[]? NullableArrayProperty { get; set; } public string?[] ArrayOfNullableProperty { get; set; } = []; - [System.Diagnostics.CodeAnalysis.AllowNull] - public string AllowNullProperty { get; set; } = ""; + [AllowNull] public string AllowNullProperty { get; set; } = ""; - [System.Diagnostics.CodeAnalysis.MaybeNull] - public string MaybeNullProperty { get; set; } = ""; + [MaybeNull] public string MaybeNullProperty { get; set; } = ""; public string? this[int index] => null; } @@ -296,8 +295,8 @@ public class NullabilityEdgeCaseTestClass // ReSharper disable once UnusedTypeParameter public class GenericTestClass { - public T UnannotatedField = default!; public T? AnnotatedField; + public T UnannotatedField = default!; public T UnannotatedProperty { get; set; } = default!; public T? AnnotatedProperty { get; set; } } @@ -309,9 +308,9 @@ public class DerivedFromGenericTestClassWithNonNullableArgument : GenericTestCla public class MostlyNullableTestClass { public string? FirstNullableField; + public string NonNullableField = ""; public string? SecondNullableField; public string? ThirdNullableField; - public string NonNullableField = ""; public string? FirstNullableProperty { get; set; } public string? SecondNullableProperty { get; set; } public string? ThirdNullableProperty { get; set; } @@ -330,6 +329,5 @@ public class NestedObliviousTestClass public string NestedObliviousProperty { get; set; } } } -#nullable restore #pragma warning restore CS0649 } diff --git a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/TypeHelpersTests.cs b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/TypeHelpersTests.cs index 3bd5fc8e..9554e190 100644 --- a/Tests/aweXpect.Reflection.Internal.Tests/Helpers/TypeHelpersTests.cs +++ b/Tests/aweXpect.Reflection.Internal.Tests/Helpers/TypeHelpersTests.cs @@ -174,7 +174,7 @@ public async Task Implements_InheritedInterface_ForceDirect_ShouldReturnFalse() { Type sut = typeof(DerivedImplementingFoo); - await That(sut.Implements(typeof(IFooInterface), false)).IsTrue(); + await That(sut.Implements(typeof(IFooInterface))).IsTrue(); await That(sut.Implements(typeof(IFooInterface), true)).IsFalse(); } diff --git a/Tests/aweXpect.Reflection.Tests/ArchitectureRules.Tests.cs b/Tests/aweXpect.Reflection.Tests/ArchitectureRules.Tests.cs index 206d89bd..e8c64f88 100644 --- a/Tests/aweXpect.Reflection.Tests/ArchitectureRules.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ArchitectureRules.Tests.cs @@ -9,9 +9,24 @@ namespace aweXpect.Reflection.Tests; /// public sealed class ArchitectureRulesTests { - private const string ConsumersNamespace = "aweXpect.Reflection.Tests.TestHelpers.Dependencies.Consumers"; - private const string Layer1Namespace = "aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer1"; - private const string Layer2Namespace = "aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer2"; + [Fact] + public async Task ShouldSupportExemptionsViaExcept() + { + Filtered.Types layer2 = Types.InNamespace(Layer2Namespace); + + async Task Act() + { + await ThatAll( + // The consumers that intentionally reference Layer2 are exempted from the rule: + That(Types.InNamespace(ConsumersNamespace) + .Except() + .Except() + .Except()) + .DoNotDependOn(layer2)); + } + + await That(Act).DoesNotThrow(); + } [Fact] public async Task ShouldVerifyMultipleRulesWithThatAll() @@ -21,13 +36,15 @@ public async Task ShouldVerifyMultipleRulesWithThatAll() Filtered.Types layer2 = Types.InNamespace(Layer2Namespace); async Task Act() - => await ThatAll( + { + await ThatAll( // Filtered.Types as dependency target: That(layer2).DoNotDependOn(layer1), // Namespace as dependency target on the same selection: That(layer2).DoNotDependOn(Layer1Namespace), // Any other assertion works on the same selection: That(layer2).AreWithinNamespace(Layer2Namespace)); + } await That(Act).DoesNotThrow(); } @@ -39,30 +56,19 @@ public async Task WhenARuleIsViolated_ShouldReportAggregatedFailure() Filtered.Types layer2 = Types.InNamespace(Layer2Namespace); async Task Act() - => await ThatAll( + { + await ThatAll( // Fails: Layer1's TargetSeverityAttribute references Layer2's TargetSeverity. That(layer1).DoNotDependOn(layer2), // Succeeds: That(layer2).AreWithinNamespace(Layer2Namespace)); + } await That(Act).ThrowsException() .WithMessage("*TargetSeverityAttribute*").AsWildcard(); } - [Fact] - public async Task ShouldSupportExemptionsViaExcept() - { - Filtered.Types layer2 = Types.InNamespace(Layer2Namespace); - - async Task Act() - => await ThatAll( - // The consumers that intentionally reference Layer2 are exempted from the rule: - That(Types.InNamespace(ConsumersNamespace) - .Except() - .Except() - .Except()) - .DoNotDependOn(layer2)); - - await That(Act).DoesNotThrow(); - } + private const string ConsumersNamespace = "aweXpect.Reflection.Tests.TestHelpers.Dependencies.Consumers"; + private const string Layer1Namespace = "aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer1"; + private const string Layer2Namespace = "aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer2"; } diff --git a/Tests/aweXpect.Reflection.Tests/Collections/FilteredReuseIndependenceTests.cs b/Tests/aweXpect.Reflection.Tests/Collections/FilteredReuseIndependenceTests.cs index a60548cd..df9d02e7 100644 --- a/Tests/aweXpect.Reflection.Tests/Collections/FilteredReuseIndependenceTests.cs +++ b/Tests/aweXpect.Reflection.Tests/Collections/FilteredReuseIndependenceTests.cs @@ -91,6 +91,41 @@ public async Task Methods_BranchingFromSharedBase_ShouldBeIndependent() await That(@base).IsEqualTo([methodA, methodB,]).InAnyOrder(); } + [Fact] + public async Task MethodsWhichAreGenericWithArgument_BranchingFromSharedBase_ShouldBeIndependent() + { + MethodFilters.GenericMethods @base = In.Type().Methods() + .WhichAreGeneric(); + + Filtered.Methods view1 = @base.WithArgument(); + Filtered.Methods view2 = @base.WithArgument(); + + await That(view1).IsEqualTo([ + typeof(SampleGenericArgumentMethods).GetMethod(nameof(SampleGenericArgumentMethods.ArgumentOfBaseA))!, + ]).InAnyOrder(); + await That(view2).IsEqualTo([ + typeof(SampleGenericArgumentMethods).GetMethod(nameof(SampleGenericArgumentMethods.ArgumentOfBaseB))!, + ]).InAnyOrder(); + await That(@base).HasCount(2); + } + + [Fact] + public async Task MethodsWhichAreGenericWithArgumentCount_BranchingFromSharedBase_ShouldBeIndependent() + { + MethodFilters.GenericMethods @base = In.Type().Methods() + .WhichAreGeneric(); + + Filtered.Methods view1 = @base.WithArgumentCount(1); + Filtered.Methods view2 = @base.WithArgumentCount(2); + + await That(view1).All().Satisfy(m => m.GetGenericArguments().Length == 1); + await That(view1).HasCount(1); + await That(view2).All().Satisfy(m => m.GetGenericArguments().Length == 2); + await That(view2).HasCount(1); + await That(@base).All().Satisfy(m => m.IsGenericMethod); + await That(@base).HasCount(2); + } + [Fact] public async Task Properties_BranchingFromSharedBase_ShouldBeIndependent() { @@ -120,38 +155,19 @@ public async Task Types_BranchingFromSharedBase_ShouldBeIndependent() } [Fact] - public async Task MethodsWhichAreGenericWithArgumentCount_BranchingFromSharedBase_ShouldBeIndependent() - { - MethodFilters.GenericMethods @base = In.Type().Methods() - .WhichAreGeneric(); - - Filtered.Methods view1 = @base.WithArgumentCount(1); - Filtered.Methods view2 = @base.WithArgumentCount(2); - - await That(view1).All().Satisfy(m => m.GetGenericArguments().Length == 1); - await That(view1).HasCount(1); - await That(view2).All().Satisfy(m => m.GetGenericArguments().Length == 2); - await That(view2).HasCount(1); - await That(@base).All().Satisfy(m => m.IsGenericMethod); - await That(@base).HasCount(2); - } - - [Fact] - public async Task MethodsWhichAreGenericWithArgument_BranchingFromSharedBase_ShouldBeIndependent() + public async Task TypesWhichAreGenericWithArgumentCount_BranchingFromSharedBase_ShouldBeIndependent() { - MethodFilters.GenericMethods @base = In.Type().Methods() + TypeFilters.GenericTypes @base = In.Types, SampleGenericType2>() .WhichAreGeneric(); - Filtered.Methods view1 = @base.WithArgument(); - Filtered.Methods view2 = @base.WithArgument(); + Filtered.Types view1 = @base.WithArgumentCount(1); + Filtered.Types view2 = @base.WithArgumentCount(2); - await That(view1).IsEqualTo([ - typeof(SampleGenericArgumentMethods).GetMethod(nameof(SampleGenericArgumentMethods.ArgumentOfBaseA))!, - ]).InAnyOrder(); - await That(view2).IsEqualTo([ - typeof(SampleGenericArgumentMethods).GetMethod(nameof(SampleGenericArgumentMethods.ArgumentOfBaseB))!, + await That(view1).IsEqualTo([typeof(SampleGenericType1),]).InAnyOrder(); + await That(view2).IsEqualTo([typeof(SampleGenericType2),]).InAnyOrder(); + await That(@base).IsEqualTo([ + typeof(SampleGenericType1), typeof(SampleGenericType2), ]).InAnyOrder(); - await That(@base).HasCount(2); } [Fact] @@ -173,22 +189,6 @@ public async Task TypesWhichDependOn_WidenedWithOrOn_ShouldNotAffectBranchedView await That(widened).Contains(typeof(OnlyLayer2)); } - [Fact] - public async Task TypesWhichAreGenericWithArgumentCount_BranchingFromSharedBase_ShouldBeIndependent() - { - TypeFilters.GenericTypes @base = In.Types, SampleGenericType2>() - .WhichAreGeneric(); - - Filtered.Types view1 = @base.WithArgumentCount(1); - Filtered.Types view2 = @base.WithArgumentCount(2); - - await That(view1).IsEqualTo([typeof(SampleGenericType1),]).InAnyOrder(); - await That(view2).IsEqualTo([typeof(SampleGenericType2),]).InAnyOrder(); - await That(@base).IsEqualTo([ - typeof(SampleGenericType1), typeof(SampleGenericType2), - ]).InAnyOrder(); - } - private class BaseA; private class BaseB; @@ -237,12 +237,12 @@ public SampleWithMembers(int value) FieldA = value; } - public event EventHandler? EventA; - public event EventHandler? EventB; - public int PropA { get; set; } public int PropB { get; set; } + public event EventHandler? EventA; + public event EventHandler? EventB; + public static void DoA() { } diff --git a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotOperators.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotOperators.Tests.cs index 0d2d9bbf..44a92462 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotOperators.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/MethodFilters.WhichAreNotOperators.Tests.cs @@ -25,18 +25,6 @@ await That(methods.GetDescription()) public sealed class WithOperatorTests { - [Fact] - public async Task ShouldKeepOtherOperatorsWithoutCustomization() - { - Filtered.Methods methods = In.Type() - .Methods().WhichAreNotOperators(Operator.Addition); - - await That(methods).All().Satisfy(x => x!.Name != "op_Addition").And.IsNotEmpty(); - await That(methods).Contains(x => x.Name == "op_Subtraction"); - await That(methods.GetDescription()) - .IsEqualTo("non-Addition operator methods in").AsPrefix(); - } - [Fact] public async Task ShouldExcludeTheSpecificOperatorButKeepOthers() { @@ -52,6 +40,18 @@ await That(methods.GetDescription()) .IsEqualTo("non-Addition operator methods in").AsPrefix(); } } + + [Fact] + public async Task ShouldKeepOtherOperatorsWithoutCustomization() + { + Filtered.Methods methods = In.Type() + .Methods().WhichAreNotOperators(Operator.Addition); + + await That(methods).All().Satisfy(x => x!.Name != "op_Addition").And.IsNotEmpty(); + await That(methods).Contains(x => x.Name == "op_Subtraction"); + await That(methods.GetDescription()) + .IsEqualTo("non-Addition operator methods in").AsPrefix(); + } } } } diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.Except.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.Except.Tests.cs index 1867fa1c..be4be732 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.Except.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.Except.Tests.cs @@ -9,26 +9,26 @@ public sealed class Except public sealed class Tests { [Fact] - public async Task ShouldFilterOutTypesThatSatisfyThePredicate() + public async Task ShouldFilterOutTheGenericType() { Filtered.Types types = In.AssemblyContaining() - .Types().Except(type => type.Name == "TypeToExclude"); + .Types().Except(); - await That(types).All().Satisfy(t => t!.Name != "TypeToExclude").And.IsNotEmpty(); - await That(types).DoesNotContain(typeof(TypeToExclude)); + await That(types).DoesNotContain(typeof(TypeToExclude)).And.IsNotEmpty(); await That(types.GetDescription()) - .IsEqualTo("types except type => type.Name == \"TypeToExclude\" in assembly").AsPrefix(); + .IsEqualTo("types except TypeFilters.Except.Tests.TypeToExclude in assembly").AsPrefix(); } [Fact] - public async Task ShouldFilterOutTheGenericType() + public async Task ShouldFilterOutTypesThatSatisfyThePredicate() { Filtered.Types types = In.AssemblyContaining() - .Types().Except(); + .Types().Except(type => type.Name == "TypeToExclude"); - await That(types).DoesNotContain(typeof(TypeToExclude)).And.IsNotEmpty(); + await That(types).All().Satisfy(t => t!.Name != "TypeToExclude").And.IsNotEmpty(); + await That(types).DoesNotContain(typeof(TypeToExclude)); await That(types.GetDescription()) - .IsEqualTo("types except TypeFilters.Except.Tests.TypeToExclude in assembly").AsPrefix(); + .IsEqualTo("types except type => type.Name == \"TypeToExclude\" in assembly").AsPrefix(); } private class TypeToExclude; diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs index 07830e80..f467e66a 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs @@ -145,8 +145,8 @@ private sealed class SealedMemberClass : ConcreteForSealed { // 'sealed' is required so MethodInfo.IsFinal is true, which the .Sealed // filter relies on (see ShouldChainSealedBeforeMethods); do not remove. - public sealed override string ToString() => "Sealed"; - public sealed override void VirtualMethod() { } + public override string ToString() => "Sealed"; + public override void VirtualMethod() { } } } } diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichDependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichDependOn.Tests.cs index e6d2bf4a..af7db5c0 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichDependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichDependOn.Tests.cs @@ -32,48 +32,30 @@ public async Task WhenExcludingSubNamespaces_ShouldNotMatchSubNamespace() await That(types).DoesNotContain(typeof(ViaSubNamespace)); } - [Fact] - public async Task WhenWidenedWithOrOn_ShouldMatchEither() - { - Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichDependOn("Non.Existent.Namespace").OrOn(Layer1Namespace); - - await That(types).Contains(typeof(ViaField)); - } - [Fact] public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() { - void Act() => _ = Types.InNamespace(ConsumersNamespace).WhichDependOn(); + void Act() + { + _ = Types.InNamespace(ConsumersNamespace).WhichDependOn(); + } await That(Act).Throws() .WithMessage("At least one namespace must be specified."); } - } - - public sealed class FilteredTypesTargetTests - { - [Fact] - public async Task ShouldFilterForTypesDependingOnTargetCollection() - { - Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichDependOn(Types.InNamespace(Layer1Namespace)); - - await That(types).Contains(typeof(ViaField)); - await That(types).Contains(typeof(ViaSubNamespace)); - await That(types).DoesNotContain(typeof(FrameworkConsumer)); - } [Fact] public async Task WhenWidenedWithOrOn_ShouldMatchEither() { Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichDependOn(Types.InNamespace("Non.Existent.Namespace")) - .OrOn(Types.InNamespace(Layer1Namespace)); + .WhichDependOn("Non.Existent.Namespace").OrOn(Layer1Namespace); await That(types).Contains(typeof(ViaField)); } + } + public sealed class FilteredTypesTargetTests + { [Fact] public async Task OrOn_ShouldNotAffectOriginalFilter() { @@ -97,6 +79,27 @@ await That(types.GetDescription()).IsEqualTo( $"(types within namespace \"{Layer1Namespace}\" in all loaded assemblies) " + "in all loaded assemblies"); } + + [Fact] + public async Task ShouldFilterForTypesDependingOnTargetCollection() + { + Filtered.Types types = Types.InNamespace(ConsumersNamespace) + .WhichDependOn(Types.InNamespace(Layer1Namespace)); + + await That(types).Contains(typeof(ViaField)); + await That(types).Contains(typeof(ViaSubNamespace)); + await That(types).DoesNotContain(typeof(FrameworkConsumer)); + } + + [Fact] + public async Task WhenWidenedWithOrOn_ShouldMatchEither() + { + Filtered.Types types = Types.InNamespace(ConsumersNamespace) + .WhichDependOn(Types.InNamespace("Non.Existent.Namespace")) + .OrOn(Types.InNamespace(Layer1Namespace)); + + await That(types).Contains(typeof(ViaField)); + } } } } diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichDependOnlyOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichDependOnlyOn.Tests.cs index 8cb47748..d915f0b5 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichDependOnlyOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichDependOnlyOn.Tests.cs @@ -26,26 +26,25 @@ public async Task ShouldFilterForTypesDependingOnlyOnAllowedNamespaces() public sealed class FilteredTypesTargetTests { [Fact] - public async Task ShouldFilterForTypesDependingOnlyOnTargetCollection() + public async Task ExcludingOwnSubNamespaces_ShouldNotAffectOriginalFilter() { - Filtered.Types types = Types.InNamespace(ConsumersNamespace) + Filtered.Types.TypeSetDependencyOnlyOnFilterResult original = Types.InNamespace(ConsumersNamespace) .WhichDependOnlyOn(Types.InNamespace(Layer1Namespace)); + _ = original.ExcludingOwnSubNamespaces(); - await That(types).Contains(typeof(OnlyLayer1)); - await That(types).Contains(typeof(FrameworkConsumer)); - await That(types).Contains(typeof(ReferencesOwnNamespace)); - await That(types).DoesNotContain(typeof(Layer1AndLayer2)); + await That(original).Contains(typeof(ReferencesOwnSubNamespace)); } [Fact] - public async Task WhenWidenedWithOrOn_ShouldAllowEither() + public async Task ShouldFilterForTypesDependingOnlyOnTargetCollection() { - const string layer2Namespace = "aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer2"; Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichDependOnlyOn(Types.InNamespace(Layer1Namespace)) - .OrOn(Types.InNamespace(layer2Namespace)); + .WhichDependOnlyOn(Types.InNamespace(Layer1Namespace)); - await That(types).Contains(typeof(Layer1AndLayer2)); + await That(types).Contains(typeof(OnlyLayer1)); + await That(types).Contains(typeof(FrameworkConsumer)); + await That(types).Contains(typeof(ReferencesOwnNamespace)); + await That(types).DoesNotContain(typeof(Layer1AndLayer2)); } [Fact] @@ -60,13 +59,14 @@ public async Task WhenExcludingOwnSubNamespaces_ShouldFilterOutTypesReferencingO } [Fact] - public async Task ExcludingOwnSubNamespaces_ShouldNotAffectOriginalFilter() + public async Task WhenWidenedWithOrOn_ShouldAllowEither() { - Filtered.Types.TypeSetDependencyOnlyOnFilterResult original = Types.InNamespace(ConsumersNamespace) - .WhichDependOnlyOn(Types.InNamespace(Layer1Namespace)); - _ = original.ExcludingOwnSubNamespaces(); + const string layer2Namespace = "aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer2"; + Filtered.Types types = Types.InNamespace(ConsumersNamespace) + .WhichDependOnlyOn(Types.InNamespace(Layer1Namespace)) + .OrOn(Types.InNamespace(layer2Namespace)); - await That(original).Contains(typeof(ReferencesOwnSubNamespace)); + await That(types).Contains(typeof(Layer1AndLayer2)); } } } diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichHaveDependenciesOutside.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichHaveDependenciesOutside.Tests.cs index f7b658ea..3d6b2838 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichHaveDependenciesOutside.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.WhichHaveDependenciesOutside.Tests.cs @@ -13,6 +13,16 @@ public sealed class WhichHaveDependenciesOutside public sealed class Tests { + [Fact] + public async Task ExcludingOwnSubNamespaces_ShouldNotAffectOriginalFilter() + { + Filtered.Types.NamespaceDependencyOutsideFilterResult original = + Types.InNamespace(ConsumersNamespace).WhichHaveDependenciesOutside(Layer1Namespace); + _ = original.ExcludingOwnSubNamespaces(); + + await That(original).DoesNotContain(typeof(ReferencesOwnSubNamespace)); + } + [Fact] public async Task ShouldFilterForTypesWithDependenciesOutsideAllowedNamespaces() { @@ -37,67 +47,68 @@ await That(types.GetDescription()) } [Fact] - public async Task WhenWidenedWithOrOn_ShouldFilterOutTypesDependingOnEither() + public async Task WhenExcludingOwnSubNamespaces_ShouldSelectTypesReferencingOwnSubNamespace() { Filtered.Types types = Types.InNamespace(ConsumersNamespace) .WhichHaveDependenciesOutside(Layer1Namespace) - .OrOn(Layer2Namespace); + .ExcludingOwnSubNamespaces(); - await That(types).DoesNotContain(typeof(Layer1AndLayer2)); - await That(types).DoesNotContain(typeof(OnlyLayer2)); + await That(types).Contains(typeof(ReferencesOwnSubNamespace)); } [Fact] - public async Task WhenNotExcludingSubNamespaces_SubNamespaceDependencyStaysInside() + public async Task WhenExcludingSubNamespaces_SubNamespaceDependencyCountsAsOutside() { Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichHaveDependenciesOutside(Layer1Namespace); + .WhichHaveDependenciesOutside(Layer1Namespace) + .ExcludingSubNamespaces(); - await That(types).DoesNotContain(typeof(ViaSubNamespace)); + await That(types).Contains(typeof(ViaSubNamespace)); } [Fact] - public async Task WhenExcludingSubNamespaces_SubNamespaceDependencyCountsAsOutside() + public async Task WhenNotExcludingOwnSubNamespaces_OwnSubNamespaceStaysInside() { Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichHaveDependenciesOutside(Layer1Namespace) - .ExcludingSubNamespaces(); + .WhichHaveDependenciesOutside(Layer1Namespace); - await That(types).Contains(typeof(ViaSubNamespace)); + await That(types).DoesNotContain(typeof(ReferencesOwnSubNamespace)); } [Fact] - public async Task WhenExcludingOwnSubNamespaces_ShouldSelectTypesReferencingOwnSubNamespace() + public async Task WhenNotExcludingSubNamespaces_SubNamespaceDependencyStaysInside() { Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichHaveDependenciesOutside(Layer1Namespace) - .ExcludingOwnSubNamespaces(); + .WhichHaveDependenciesOutside(Layer1Namespace); - await That(types).Contains(typeof(ReferencesOwnSubNamespace)); + await That(types).DoesNotContain(typeof(ViaSubNamespace)); } [Fact] - public async Task WhenNotExcludingOwnSubNamespaces_OwnSubNamespaceStaysInside() + public async Task WhenWidenedWithOrOn_ShouldFilterOutTypesDependingOnEither() { Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichHaveDependenciesOutside(Layer1Namespace); + .WhichHaveDependenciesOutside(Layer1Namespace) + .OrOn(Layer2Namespace); - await That(types).DoesNotContain(typeof(ReferencesOwnSubNamespace)); + await That(types).DoesNotContain(typeof(Layer1AndLayer2)); + await That(types).DoesNotContain(typeof(OnlyLayer2)); } + } + public sealed class FilteredTypesTargetTests + { [Fact] public async Task ExcludingOwnSubNamespaces_ShouldNotAffectOriginalFilter() { - Filtered.Types.NamespaceDependencyOutsideFilterResult original = - Types.InNamespace(ConsumersNamespace).WhichHaveDependenciesOutside(Layer1Namespace); + Filtered.Types.TypeSetDependencyOutsideFilterResult original = + Types.InNamespace(ConsumersNamespace) + .WhichHaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); _ = original.ExcludingOwnSubNamespaces(); await That(original).DoesNotContain(typeof(ReferencesOwnSubNamespace)); } - } - public sealed class FilteredTypesTargetTests - { [Fact] public async Task ShouldFilterForTypesWithDependenciesOutsideTargetCollection() { @@ -122,17 +133,6 @@ await That(types.GetDescription()) $"which have dependencies outside (types within namespace \"{Layer1Namespace}\" in all loaded assemblies)"); } - [Fact] - public async Task WhenWidenedWithOrOn_ShouldFilterOutTypesDependingOnEither() - { - Filtered.Types types = Types.InNamespace(ConsumersNamespace) - .WhichHaveDependenciesOutside(Types.InNamespace(Layer1Namespace)) - .OrOn(Types.InNamespace(Layer2Namespace)); - - await That(types).DoesNotContain(typeof(Layer1AndLayer2)); - await That(types).DoesNotContain(typeof(OnlyLayer2)); - } - [Fact] public async Task WhenExcludingOwnSubNamespaces_ShouldSelectTypesReferencingOwnSubNamespace() { @@ -144,14 +144,14 @@ public async Task WhenExcludingOwnSubNamespaces_ShouldSelectTypesReferencingOwnS } [Fact] - public async Task ExcludingOwnSubNamespaces_ShouldNotAffectOriginalFilter() + public async Task WhenWidenedWithOrOn_ShouldFilterOutTypesDependingOnEither() { - Filtered.Types.TypeSetDependencyOutsideFilterResult original = - Types.InNamespace(ConsumersNamespace) - .WhichHaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); - _ = original.ExcludingOwnSubNamespaces(); + Filtered.Types types = Types.InNamespace(ConsumersNamespace) + .WhichHaveDependenciesOutside(Types.InNamespace(Layer1Namespace)) + .OrOn(Types.InNamespace(Layer2Namespace)); - await That(original).DoesNotContain(typeof(ReferencesOwnSubNamespace)); + await That(types).DoesNotContain(typeof(Layer1AndLayer2)); + await That(types).DoesNotContain(typeof(OnlyLayer2)); } } } diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/CycleFixtures.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/CycleFixtures.cs index 162ab823..81336a45 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/CycleFixtures.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/CycleFixtures.cs @@ -6,6 +6,21 @@ using System.Collections.Generic; using System.Text; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Acyclic.Low; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Family.Inner; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.GlobalRing; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Grouped.Orders.Api; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Grouped.Orders.Domain; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Indirect.Other; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Indirect.Parent.Child; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Resolver.B; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Sliced.Module.Part1; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Sliced.Module.Part2; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Three.A; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Three.B; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Three.C; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Two.Billing; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Two.Orders; // Fixtures for namespace dependency cycle detection. Each type references the next via a private field, which is a // signature-level dependency, so the namespaces form the intended directed graph. @@ -14,7 +29,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Acyclic.High { public class HighType { - private Low.LowType _low; + private LowType _low; } } @@ -27,7 +42,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Two.Orders { public class Order { - private Billing.Invoice _invoice; + private Invoice _invoice; } } @@ -35,7 +50,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Two.Billing { public class Invoice { - private Orders.Order _order; + private Order _order; } } @@ -43,7 +58,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Three.A { public class TypeA { - private B.TypeB _b; + private TypeB _b; } } @@ -51,7 +66,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Three.B { public class TypeB { - private C.TypeC _c; + private TypeC _c; } } @@ -59,7 +74,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Three.C { public class TypeC { - private A.TypeA _a; + private TypeA _a; } } @@ -69,7 +84,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Sliced.Modul { public class Part1Type { - private Part2.Part2Type _other; + private Part2Type _other; } } @@ -77,7 +92,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Sliced.Modul { public class Part2Type { - private Part1.Part1Type _other; + private Part1Type _other; } } @@ -95,7 +110,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Grouped.Orde { public class OrderApi { - private Domain.OrderDomain _domain; + private OrderDomain _domain; } } @@ -103,7 +118,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Grouped.Bill { public class Invoice { - private Orders.Api.OrderApi _api; + private OrderApi _api; } } @@ -124,7 +139,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Resolver.A { public class ResolverA { - private B.ResolverB _b; + private ResolverB _b; } } @@ -139,7 +154,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.GlobalRing { public class GlobalRingType { - private global::GlobalCycleType _global; + private GlobalCycleType _global; } } @@ -149,7 +164,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Family { public class FamilyParent { - private Inner.FamilyChild _child; + private FamilyChild _child; } } @@ -169,7 +184,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Indirect.Par { public class IndirectParentType { - private Other.IndirectOtherType _other; + private IndirectOtherType _other; } } @@ -182,7 +197,7 @@ namespace aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.Indirect.Oth { public class IndirectOtherType { - private Parent.Child.IndirectChildType _child; + private IndirectChildType _child; } } @@ -191,5 +206,5 @@ public class IndirectOtherType // This type intentionally lives in the global namespace to exercise global-namespace cycle rendering. public class GlobalCycleType { - private aweXpect.Reflection.Tests.TestHelpers.Dependencies.Cycles.GlobalRing.GlobalRingType _ring; + private GlobalRingType _ring; } diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/DependencyFixtures.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/DependencyFixtures.cs index c59494a2..48093e57 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/DependencyFixtures.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Dependencies/DependencyFixtures.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Text; +using aweXpect.Reflection.Tests.TestHelpers.Dependencies.AmbiguousA; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Consumers.OwnSub; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer1.Sub; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer2; @@ -150,7 +151,7 @@ public class FrameworkConsumer public class ReferencesGlobal { - private global::GlobalNamespaceTarget _target; + private GlobalNamespaceTarget _target; } } @@ -235,7 +236,7 @@ public class ViaLayer1GenericConstruction // must keep them apart by qualifying each with its namespace. public class WithSameNamedDependencies { - private AmbiguousA.AmbiguousTarget _a; + private AmbiguousTarget _a; private AmbiguousB.AmbiguousTarget _b; } diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ImmutabilityTestTypes.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ImmutabilityTestTypes.cs index ff2c3fdb..34fecacd 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ImmutabilityTestTypes.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/ImmutabilityTestTypes.cs @@ -6,10 +6,9 @@ public class ImmutableClass public const int ConstantField = 4; private static int _staticMutableField = 1; public readonly int ReadOnlyField = 2; - private readonly string _privateReadOnlyField = ""; public static int StaticSettableProperty { get; set; } public int GetOnlyProperty { get; } - public string ComputedProperty => _privateReadOnlyField; + public string ComputedProperty { get; } = ""; } #pragma warning restore CS0414 diff --git a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TypesWithNullableMembers.cs b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TypesWithNullableMembers.cs index 53197acd..09b8c54d 100644 --- a/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TypesWithNullableMembers.cs +++ b/Tests/aweXpect.Reflection.Tests/TestHelpers/Types/TypesWithNullableMembers.cs @@ -21,8 +21,8 @@ public static string? NullableWriteOnlyProperty public class ClassWithNonNullableMembers { - public List NonNullableGenericField = []; public string NonNullableField = ""; + public List NonNullableGenericField = []; public int NonNullableValueField; public string NonNullableProperty { get; set; } = ""; public List NonNullableGenericProperty { get; set; } = []; @@ -31,10 +31,10 @@ public class ClassWithNonNullableMembers public class ClassWithMixedNullableMembers { - public string? NullableField; public string NonNullableField = ""; - public int? NullableValueField; public int NonNullableValueField; + public string? NullableField; + public int? NullableValueField; public string? NullableProperty { get; set; } public string NonNullableProperty { get; set; } = ""; public int? NullableValueProperty { get; set; } @@ -44,9 +44,9 @@ public class ClassWithMixedNullableMembers public class ClassWithMostlyNullableMembers { public string? FirstNullableField; + public string NonNullableField = ""; public string? SecondNullableField; public string? ThirdNullableField; - public string NonNullableField = ""; public string? FirstNullableProperty { get; set; } public string? SecondNullableProperty { get; set; } public string? ThirdNullableProperty { get; set; } @@ -77,5 +77,4 @@ public class ClassWithObliviousMembers public string ObliviousField; public string ObliviousProperty { get; set; } } -#nullable restore #pragma warning restore CS0649 diff --git a/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOnlyOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOnlyOn.Tests.cs index 3891ad2b..0a87b0a3 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOnlyOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatAssembly.DependsOnlyOn.Tests.cs @@ -68,23 +68,6 @@ async Task Act() await That(Act).DoesNotThrow(); } - [Fact] - public async Task WhenCustomizedPrefixEndsWithDot_ShouldExcludeMatchingAssemblies() - { - Assembly subject = typeof(In).Assembly; - - // A customized prefix in the natural trailing-dot form ("aweXpect.") must exclude the - // aweXpect.Core reference at the (then explicit) name-segment boundary. - using (Customize.aweXpect.Reflection().ExcludedAssemblyPrefixes - .Set(["System", "netstandard", "mscorlib", "Microsoft", "aweXpect.",])) - { - async Task Act() - => await That(subject).DependsOnlyOn(); - - await That(Act).DoesNotThrow(); - } - } - [Fact] public async Task WhenAssemblyIsNull_ShouldFail() { @@ -103,6 +86,25 @@ but it was """); } + [Fact] + public async Task WhenCustomizedPrefixEndsWithDot_ShouldExcludeMatchingAssemblies() + { + Assembly subject = typeof(In).Assembly; + + // A customized prefix in the natural trailing-dot form ("aweXpect.") must exclude the + // aweXpect.Core reference at the (then explicit) name-segment boundary. + using (Customize.aweXpect.Reflection().ExcludedAssemblyPrefixes + .Set(["System", "netstandard", "mscorlib", "Microsoft", "aweXpect.",])) + { + async Task Act() + { + await That(subject).DependsOnlyOn(); + } + + await That(Act).DoesNotThrow(); + } + } + [Fact] public async Task WhenMultipleAllowedAssembliesAreGiven_ShouldDescribeAssemblies() { diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotNullable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotNullable.Tests.cs index 1c8961f5..05eb72c6 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsNotNullable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsNotNullable.Tests.cs @@ -38,17 +38,21 @@ async Task Act() } [Fact] - public async Task WhenFieldIsOblivious_ShouldSucceed() + public async Task WhenFieldIsNull_ShouldFail() { - FieldInfo subject = typeof(ClassWithObliviousMembers) - .GetField(nameof(ClassWithObliviousMembers.ObliviousField))!; + FieldInfo? subject = null; async Task Act() { await That(subject).IsNotNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage(""" + Expected that subject + is not nullable, + but it was + """); } [Fact] @@ -90,21 +94,17 @@ Expected that subject } [Fact] - public async Task WhenFieldIsNull_ShouldFail() + public async Task WhenFieldIsOblivious_ShouldSucceed() { - FieldInfo? subject = null; + FieldInfo subject = typeof(ClassWithObliviousMembers) + .GetField(nameof(ClassWithObliviousMembers.ObliviousField))!; async Task Act() { await That(subject).IsNotNullable(); } - await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - is not nullable, - but it was - """); + await That(Act).DoesNotThrow(); } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatField.IsNullable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatField.IsNullable.Tests.cs index 7f40b757..dbdf910d 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatField.IsNullable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatField.IsNullable.Tests.cs @@ -10,66 +10,85 @@ public sealed class IsNullable public sealed class Tests { [Fact] - public async Task WhenFieldIsNullableReferenceType_ShouldSucceed() + public async Task WhenFieldIsNonNullableGenericType_ShouldFail() { - FieldInfo subject = typeof(ClassWithNullableMembers) - .GetField(nameof(ClassWithNullableMembers.NullableField))!; + FieldInfo subject = typeof(ClassWithNonNullableMembers) + .GetField(nameof(ClassWithNonNullableMembers.NonNullableGenericField))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenFieldIsNullableValueType_ShouldSucceed() + public async Task WhenFieldIsNonNullableInMostlyNullableClass_ShouldFail() { - FieldInfo subject = typeof(ClassWithNullableMembers) - .GetField(nameof(ClassWithNullableMembers.NullableValueField))!; + FieldInfo subject = typeof(ClassWithMostlyNullableMembers) + .GetField(nameof(ClassWithMostlyNullableMembers.NonNullableField))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenFieldIsNullableGenericType_ShouldSucceed() + public async Task WhenFieldIsNonNullableReferenceType_ShouldFail() { - FieldInfo subject = typeof(ClassWithNullableMembers) - .GetField(nameof(ClassWithNullableMembers.NullableGenericField))!; + FieldInfo subject = typeof(ClassWithNonNullableMembers) + .GetField(nameof(ClassWithNonNullableMembers.NonNullableField))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenFieldIsNullableInMixedClass_ShouldSucceed() + public async Task WhenFieldIsNonNullableValueType_ShouldFail() { - FieldInfo subject = typeof(ClassWithMixedNullableMembers) - .GetField(nameof(ClassWithMixedNullableMembers.NullableField))!; + FieldInfo subject = typeof(ClassWithNonNullableMembers) + .GetField(nameof(ClassWithNonNullableMembers.NonNullableValueField))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenFieldIsNonNullableReferenceType_ShouldFail() + public async Task WhenFieldIsNull_ShouldFail() { - FieldInfo subject = typeof(ClassWithNonNullableMembers) - .GetField(nameof(ClassWithNonNullableMembers.NonNullableField))!; + FieldInfo? subject = null; async Task Act() { @@ -77,93 +96,74 @@ async Task Act() } await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + .WithMessage(""" + Expected that subject + is nullable, + but it was + """); } [Fact] - public async Task WhenFieldIsNonNullableValueType_ShouldFail() + public async Task WhenFieldIsNullableGenericType_ShouldSucceed() { - FieldInfo subject = typeof(ClassWithNonNullableMembers) - .GetField(nameof(ClassWithNonNullableMembers.NonNullableValueField))!; + FieldInfo subject = typeof(ClassWithNullableMembers) + .GetField(nameof(ClassWithNullableMembers.NullableGenericField))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenFieldIsNonNullableGenericType_ShouldFail() + public async Task WhenFieldIsNullableInMixedClass_ShouldSucceed() { - FieldInfo subject = typeof(ClassWithNonNullableMembers) - .GetField(nameof(ClassWithNonNullableMembers.NonNullableGenericField))!; + FieldInfo subject = typeof(ClassWithMixedNullableMembers) + .GetField(nameof(ClassWithMixedNullableMembers.NullableField))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenFieldIsNonNullableInMostlyNullableClass_ShouldFail() + public async Task WhenFieldIsNullableReferenceType_ShouldSucceed() { - FieldInfo subject = typeof(ClassWithMostlyNullableMembers) - .GetField(nameof(ClassWithMostlyNullableMembers.NonNullableField))!; + FieldInfo subject = typeof(ClassWithNullableMembers) + .GetField(nameof(ClassWithNullableMembers.NullableField))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenFieldIsOblivious_ShouldFail() + public async Task WhenFieldIsNullableValueType_ShouldSucceed() { - FieldInfo subject = typeof(ClassWithObliviousMembers) - .GetField(nameof(ClassWithObliviousMembers.ObliviousField))!; + FieldInfo subject = typeof(ClassWithNullableMembers) + .GetField(nameof(ClassWithNullableMembers.NullableValueField))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenFieldIsNull_ShouldFail() + public async Task WhenFieldIsOblivious_ShouldFail() { - FieldInfo? subject = null; + FieldInfo subject = typeof(ClassWithObliviousMembers) + .GetField(nameof(ClassWithObliviousMembers.ObliviousField))!; async Task Act() { @@ -171,11 +171,11 @@ async Task Act() } await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - is nullable, - but it was - """); + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotNullable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotNullable.Tests.cs index da023e24..3f006cc7 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotNullable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatFields.AreNotNullable.Tests.cs @@ -28,10 +28,9 @@ async Task Act() } [Fact] - public async Task WhenFieldsContainNullableFields_ShouldFail() + public async Task WhenFieldsContainNull_ShouldFail() { - IEnumerable subject = typeof(ClassWithMixedNullableMembers) - .GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly); + IEnumerable subject = [null,]; async Task Act() { @@ -43,15 +42,16 @@ await That(Act).ThrowsException() Expected that subject are all not nullable, but it contained nullable fields [ - * + ] - """).AsWildcard(); + """); } [Fact] - public async Task WhenFieldsContainNull_ShouldFail() + public async Task WhenFieldsContainNullableFields_ShouldFail() { - IEnumerable subject = [null,]; + IEnumerable subject = typeof(ClassWithMixedNullableMembers) + .GetFields(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly); async Task Act() { @@ -63,9 +63,9 @@ await That(Act).ThrowsException() Expected that subject are all not nullable, but it contained nullable fields [ - + * ] - """); + """).AsWildcard(); } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotNullable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotNullable.Tests.cs index c1702ae9..592218b5 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotNullable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperties.AreNotNullable.Tests.cs @@ -28,10 +28,9 @@ async Task Act() } [Fact] - public async Task WhenPropertiesContainNullableProperties_ShouldFail() + public async Task WhenPropertiesContainNull_ShouldFail() { - IEnumerable subject = typeof(ClassWithMixedNullableMembers) - .GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly); + IEnumerable subject = [null,]; async Task Act() { @@ -43,15 +42,16 @@ await That(Act).ThrowsException() Expected that subject are all not nullable, but it contained nullable properties [ - * + ] - """).AsWildcard(); + """); } [Fact] - public async Task WhenPropertiesContainNull_ShouldFail() + public async Task WhenPropertiesContainNullableProperties_ShouldFail() { - IEnumerable subject = [null,]; + IEnumerable subject = typeof(ClassWithMixedNullableMembers) + .GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly); async Task Act() { @@ -63,9 +63,9 @@ await That(Act).ThrowsException() Expected that subject are all not nullable, but it contained nullable properties [ - + * ] - """); + """).AsWildcard(); } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnExtensionProperty.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnExtensionProperty.Tests.cs index 7b859150..f60b072f 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnExtensionProperty.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsAnExtensionProperty.Tests.cs @@ -1,7 +1,9 @@ using System.Reflection; -using aweXpect.Reflection.Tests.TestHelpers; using aweXpect.Reflection.Tests.TestHelpers.Types; +#if NET10_0_OR_GREATER +using aweXpect.Reflection.Tests.TestHelpers; using Xunit.Sdk; +#endif namespace aweXpect.Reflection.Tests; @@ -70,10 +72,10 @@ async Task Act() public sealed class NewSyntaxTests { [Fact] - public async Task WhenPropertyIsAnInstanceExtensionProperty_ShouldSucceed() + public async Task WhenPropertyIsAGenericStaticExtensionProperty_ShouldSucceed() { PropertyInfo subject = - typeof(StaticClassWithNewExtensionProperties).GetExtensionProperty("IsBlankText"); + typeof(GenericClassWithNewExtensionProperties).GetExtensionProperty("Capacity"); async Task Act() { @@ -84,24 +86,29 @@ async Task Act() } [Fact] - public async Task WhenPropertyIsAStaticExtensionProperty_ShouldSucceed() + public async Task WhenPropertyIsAnInstanceExtensionProperty_Negated_ShouldFail() { PropertyInfo subject = - typeof(StaticClassWithNewExtensionProperties).GetExtensionProperty("DefaultValue"); + typeof(StaticClassWithNewExtensionProperties).GetExtensionProperty("IsBlankText"); async Task Act() { - await That(subject).IsAnExtensionProperty(); + await That(subject).DoesNotComplyWith(it => it.IsAnExtensionProperty()); } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + is not an extension property, + but it was an extension property {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenPropertyIsASettableStaticExtensionProperty_ShouldSucceed() + public async Task WhenPropertyIsAnInstanceExtensionProperty_ShouldSucceed() { PropertyInfo subject = - typeof(StaticClassWithNewExtensionProperties).GetExtensionProperty("MutableDefault"); + typeof(StaticClassWithNewExtensionProperties).GetExtensionProperty("IsBlankText"); async Task Act() { @@ -109,60 +116,55 @@ async Task Act() } await That(Act).DoesNotThrow(); - await That(subject.CanWrite).IsTrue(); } [Fact] - public async Task WhenPropertyIsAGenericStaticExtensionProperty_ShouldSucceed() + public async Task WhenPropertyIsARegularStaticPropertyInExtensionClass_ShouldFail() { PropertyInfo subject = - typeof(GenericClassWithNewExtensionProperties).GetExtensionProperty("Capacity"); + typeof(StaticClassWithNewExtensionProperties).GetProperty( + nameof(StaticClassWithNewExtensionProperties.RegularProperty))!; async Task Act() { await That(subject).IsAnExtensionProperty(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is an extension property, + but it was not an extension property {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenPropertyIsARegularStaticPropertyInExtensionClass_ShouldFail() + public async Task WhenPropertyIsASettableStaticExtensionProperty_ShouldSucceed() { PropertyInfo subject = - typeof(StaticClassWithNewExtensionProperties).GetProperty( - nameof(StaticClassWithNewExtensionProperties.RegularProperty))!; + typeof(StaticClassWithNewExtensionProperties).GetExtensionProperty("MutableDefault"); async Task Act() { await That(subject).IsAnExtensionProperty(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is an extension property, - but it was not an extension property {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); + await That(subject.CanWrite).IsTrue(); } [Fact] - public async Task WhenPropertyIsAnInstanceExtensionProperty_Negated_ShouldFail() + public async Task WhenPropertyIsAStaticExtensionProperty_ShouldSucceed() { PropertyInfo subject = - typeof(StaticClassWithNewExtensionProperties).GetExtensionProperty("IsBlankText"); + typeof(StaticClassWithNewExtensionProperties).GetExtensionProperty("DefaultValue"); async Task Act() { - await That(subject).DoesNotComplyWith(it => it.IsAnExtensionProperty()); + await That(subject).IsAnExtensionProperty(); } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - is not an extension property, - but it was an extension property {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } } #endif diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotNullable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotNullable.Tests.cs index 0d623f77..648ae387 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotNullable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNotNullable.Tests.cs @@ -38,17 +38,21 @@ async Task Act() } [Fact] - public async Task WhenPropertyIsOblivious_ShouldSucceed() + public async Task WhenPropertyIsNull_ShouldFail() { - PropertyInfo subject = typeof(ClassWithObliviousMembers) - .GetProperty(nameof(ClassWithObliviousMembers.ObliviousProperty))!; + PropertyInfo? subject = null; async Task Act() { await That(subject).IsNotNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage(""" + Expected that subject + is not nullable, + but it was + """); } [Fact] @@ -90,21 +94,17 @@ Expected that subject } [Fact] - public async Task WhenPropertyIsNull_ShouldFail() + public async Task WhenPropertyIsOblivious_ShouldSucceed() { - PropertyInfo? subject = null; + PropertyInfo subject = typeof(ClassWithObliviousMembers) + .GetProperty(nameof(ClassWithObliviousMembers.ObliviousProperty))!; async Task Act() { await That(subject).IsNotNullable(); } - await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - is not nullable, - but it was - """); + await That(Act).DoesNotThrow(); } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNullable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNullable.Tests.cs index 67b86719..5d140215 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNullable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatProperty.IsNullable.Tests.cs @@ -10,149 +10,153 @@ public sealed class IsNullable public sealed class Tests { [Fact] - public async Task WhenPropertyIsNullableReferenceType_ShouldSucceed() + public async Task WhenPropertyIsNonNullableGenericType_ShouldFail() { - PropertyInfo subject = typeof(ClassWithNullableMembers) - .GetProperty(nameof(ClassWithNullableMembers.NullableProperty))!; + PropertyInfo subject = typeof(ClassWithNonNullableMembers) + .GetProperty(nameof(ClassWithNonNullableMembers.NonNullableGenericProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenPropertyIsNullableValueType_ShouldSucceed() + public async Task WhenPropertyIsNonNullableInMostlyNullableClass_ShouldFail() { - PropertyInfo subject = typeof(ClassWithNullableMembers) - .GetProperty(nameof(ClassWithNullableMembers.NullableValueProperty))!; + PropertyInfo subject = typeof(ClassWithMostlyNullableMembers) + .GetProperty(nameof(ClassWithMostlyNullableMembers.NonNullableProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenPropertyIsNullableGenericType_ShouldSucceed() + public async Task WhenPropertyIsNonNullableReferenceType_ShouldFail() { - PropertyInfo subject = typeof(ClassWithNullableMembers) - .GetProperty(nameof(ClassWithNullableMembers.NullableGenericProperty))!; + PropertyInfo subject = typeof(ClassWithNonNullableMembers) + .GetProperty(nameof(ClassWithNonNullableMembers.NonNullableProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenPropertyIsWriteOnlyNullable_ShouldSucceed() + public async Task WhenPropertyIsNonNullableValueType_ShouldFail() { - PropertyInfo subject = typeof(ClassWithNullableMembers) - .GetProperty(nameof(ClassWithNullableMembers.NullableWriteOnlyProperty))!; + PropertyInfo subject = typeof(ClassWithNonNullableMembers) + .GetProperty(nameof(ClassWithNonNullableMembers.NonNullableValueProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + is nullable, + but it was non-nullable {Formatter.Format(subject)} + """); } [Fact] - public async Task WhenPropertyIsNullableInMixedClass_ShouldSucceed() + public async Task WhenPropertyIsNull_ShouldFail() { - PropertyInfo subject = typeof(ClassWithMixedNullableMembers) - .GetProperty(nameof(ClassWithMixedNullableMembers.NullableProperty))!; + PropertyInfo? subject = null; async Task Act() { await That(subject).IsNullable(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage(""" + Expected that subject + is nullable, + but it was + """); } [Fact] - public async Task WhenPropertyIsNonNullableReferenceType_ShouldFail() + public async Task WhenPropertyIsNullableGenericType_ShouldSucceed() { - PropertyInfo subject = typeof(ClassWithNonNullableMembers) - .GetProperty(nameof(ClassWithNonNullableMembers.NonNullableProperty))!; + PropertyInfo subject = typeof(ClassWithNullableMembers) + .GetProperty(nameof(ClassWithNullableMembers.NullableGenericProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenPropertyIsNonNullableValueType_ShouldFail() + public async Task WhenPropertyIsNullableInMixedClass_ShouldSucceed() { - PropertyInfo subject = typeof(ClassWithNonNullableMembers) - .GetProperty(nameof(ClassWithNonNullableMembers.NonNullableValueProperty))!; + PropertyInfo subject = typeof(ClassWithMixedNullableMembers) + .GetProperty(nameof(ClassWithMixedNullableMembers.NullableProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenPropertyIsNonNullableGenericType_ShouldFail() + public async Task WhenPropertyIsNullableReferenceType_ShouldSucceed() { - PropertyInfo subject = typeof(ClassWithNonNullableMembers) - .GetProperty(nameof(ClassWithNonNullableMembers.NonNullableGenericProperty))!; + PropertyInfo subject = typeof(ClassWithNullableMembers) + .GetProperty(nameof(ClassWithNullableMembers.NullableProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenPropertyIsNonNullableInMostlyNullableClass_ShouldFail() + public async Task WhenPropertyIsNullableValueType_ShouldSucceed() { - PropertyInfo subject = typeof(ClassWithMostlyNullableMembers) - .GetProperty(nameof(ClassWithMostlyNullableMembers.NonNullableProperty))!; + PropertyInfo subject = typeof(ClassWithNullableMembers) + .GetProperty(nameof(ClassWithNullableMembers.NullableValueProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - is nullable, - but it was non-nullable {Formatter.Format(subject)} - """); + await That(Act).DoesNotThrow(); } [Fact] @@ -175,21 +179,17 @@ Expected that subject } [Fact] - public async Task WhenPropertyIsNull_ShouldFail() + public async Task WhenPropertyIsWriteOnlyNullable_ShouldSucceed() { - PropertyInfo? subject = null; + PropertyInfo subject = typeof(ClassWithNullableMembers) + .GetProperty(nameof(ClassWithNullableMembers.NullableWriteOnlyProperty))!; async Task Act() { await That(subject).IsNullable(); } - await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - is nullable, - but it was - """); + await That(Act).DoesNotThrow(); } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.DependsOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.DependsOn.Tests.cs index 58c7cfa3..83c4e0d6 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.DependsOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.DependsOn.Tests.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using System.Text; using aweXpect.Reflection.Collections; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Consumers; using aweXpect.Reflection.Tests.TestHelpers.Dependencies.Layer1; @@ -21,63 +22,47 @@ public sealed class DependsOn public sealed class Tests { - [Theory] - [InlineData(typeof(ViaBaseType))] - [InlineData(typeof(ViaInterface))] - [InlineData(typeof(ViaField))] - [InlineData(typeof(ViaProperty))] - [InlineData(typeof(ViaIndexer))] - [InlineData(typeof(ViaEvent))] - [InlineData(typeof(ViaMethodParameter))] - [InlineData(typeof(ViaMethodReturn))] - [InlineData(typeof(ViaGenericArgument))] - [InlineData(typeof(ViaAttribute))] - [InlineData(typeof(ViaGenericConstraint<>))] - public async Task WhenTypeReferencesNamespaceInSignature_ShouldSucceed(Type subject) - { - async Task Act() - => await That(subject).DependsOn(Layer1Namespace); - - await That(Act).DoesNotThrow(); - } - [Fact] - public async Task WhenTypeDoesNotDependOnNamespace_ShouldFail() + public async Task WhenAnyOfMultipleNamespacesMatches_ShouldSucceed() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Layer2Namespace); + { + await That(subject).DependsOn(Layer2Namespace, Layer1Namespace); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - depends on namespace "{Layer2Namespace}", - but it depended on ["{Layer1Namespace}"] - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenEnumConstraintIsAuthored_ShouldCountAsDependency() + public async Task WhenArrayTargetIsUsed_ShouldMatchElementType() { - // Unlike the ValueType constraint `struct` compiles into, `where T : Enum` is authored. - Type subject = typeof(WithEnumConstraint<>); + // Dependencies are collected with array wrappers stripped, so an array target is + // unwrapped symmetrically: typeof(TargetA[]) matches like typeof(TargetA). + Type subject = typeof(WithArrayField); async Task Act() - => await That(subject).DependsOn("System"); + { + await That(subject).DependsOn(typeof(TargetA[])); + await That(subject).DependsOn(typeof(TargetA)); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenObsoleteIsAuthoredOnRequiredMembersConstructor_ShouldCountAsDependency() + public async Task WhenDebuggerStepThroughIsAuthoredOnAsyncMethod_ShouldCountAsDependency() { - // Only the compiler-emitted [Obsolete(marker, error: true)] paired with required members is - // skipped; an authored [Obsolete] on the same constructor still counts. - Type subject = typeof(WithRequiredPropertyAndAuthoredObsoleteConstructor); + // In Debug builds the authored [DebuggerStepThrough] appears next to the compiler-emitted + // one (two entries); in Release builds it is the only occurrence in an optimized assembly — + // in both cases it is recognized as authored and counts. + Type subject = typeof(WithAuthoredDebuggerStepThroughAsyncMethod); async Task Act() - => await That(subject).DependsOn("System"); + { + await That(subject).DependsOn("System.Diagnostics"); + } await That(Act).DoesNotThrow(); } @@ -99,12 +84,28 @@ async Task Act() } [Fact] - public async Task WhenSubNamespaceMatchesViaSubtree_ShouldSucceed() + public async Task WhenEnumConstraintIsAuthored_ShouldCountAsDependency() { - Type subject = typeof(ViaSubNamespace); + // Unlike the ValueType constraint `struct` compiles into, `where T : Enum` is authored. + Type subject = typeof(WithEnumConstraint<>); async Task Act() - => await That(subject).DependsOn(Layer1Namespace); + { + await That(subject).DependsOn("System"); + } + + await That(Act).DoesNotThrow(); + } + + [Fact] + public async Task WhenExactGenericConstructionIsReferenced_ShouldSucceed() + { + Type subject = typeof(ViaGenericArgument); + + async Task Act() + { + await That(subject).DependsOn(typeof(List)); + } await That(Act).DoesNotThrow(); } @@ -115,388 +116,457 @@ public async Task WhenExcludingSubNamespaces_ShouldNotMatchSubNamespace() Type subject = typeof(ViaSubNamespace); async Task Act() - => await That(subject).DependsOn(Layer1Namespace).ExcludingSubNamespaces(); + { + await That(subject).DependsOn(Layer1Namespace).ExcludingSubNamespaces(); + } await That(Act).Throws(); } [Fact] - public async Task WhenAnyOfMultipleNamespacesMatches_ShouldSucceed() + public async Task WhenGenericTypeDefinitionIsTargeted_ShouldMatchAnyConstruction() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ViaGenericArgument); async Task Act() - => await That(subject).DependsOn(Layer2Namespace, Layer1Namespace); + { + await That(subject).DependsOn(typeof(List<>)); + } await That(Act).DoesNotThrow(); } - [Fact] - public async Task WhenWidenedWithOrOn_ShouldSucceed() + [Theory] + [InlineData(".Layer2")] + [InlineData("Layer1..Layer2")] + [InlineData("Layer2 ")] + [InlineData(" Layer2")] + [InlineData("Layer2\tSub")] + public async Task WhenNamespaceCouldNeverMatch_ShouldThrowArgumentException(string @namespace) { + // Leading dots, empty segments and whitespace cannot occur in a real namespace, so such an + // input would make negative assertions pass vacuously, just like the trailing dot above. Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Layer2Namespace).OrOn(Layer1Namespace); + { + await That(subject).DependsOn(@namespace); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage( + "The namespaces must not contain empty segments or whitespace (such a namespace could never match)."); } [Fact] - public async Task WhenNamingFrameworkNamespace_ShouldSucceed() + public async Task WhenNamespaceEndsWithDot_ShouldThrowArgumentException() { - Type subject = typeof(FrameworkConsumer); + // A trailing-dot namespace could never match and would make negative assertions pass + // vacuously; only the excluded assembly prefixes use the trailing-dot convention. + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn("System.Collections.Generic"); + { + await That(subject).DependsOn($"{Layer1Namespace}."); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage("The namespaces must not end with a dot (sub-namespaces are matched automatically)."); } [Fact] - public async Task WhenTypeReferencesSpecificType_ShouldSucceed() + public async Task WhenNamespaceIsNull_ShouldThrowArgumentNullException() { - Type subject = typeof(ViaField); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(); + { + await That(subject).DependsOn(Layer1Namespace, null!); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage("The namespaces must not contain null.*").AsWildcard(); } [Fact] - public async Task WhenTypeReferencesTypeOnlyViaAttributeArgument_ShouldSucceed() + public async Task WhenNamespacesEnumerableIsNull_ShouldThrowArgumentNullException() { - Type subject = typeof(ViaAttributeArgument); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(); + { + await That(subject).DependsOn((IEnumerable)null!); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage("The namespaces must not be null.*").AsWildcard(); } [Fact] - public async Task WhenTypeReferencesEnumOnlyViaAttributeArgument_ShouldSucceed() + public async Task WhenNamingFrameworkNamespace_ShouldSucceed() { - // Layer2's TargetSeverity is referenced ONLY through the attribute's enum argument; the - // attribute type itself lives in Layer1. - Type subject = typeof(ViaEnumAttributeArgument); + Type subject = typeof(FrameworkConsumer); async Task Act() - => await That(subject).DependsOn(Layer2Namespace); + { + await That(subject).DependsOn("System.Collections.Generic"); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenTypeReferencesNamespaceOnlyViaParameterAttribute_ShouldSucceed() + public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() { - // Layer1's TargetAttribute is referenced ONLY through the attribute on a method parameter. - Type subject = typeof(ViaParameterAttribute); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Layer1Namespace); + { + await That(subject).DependsOn(); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage("At least one namespace must be specified."); } [Fact] - public async Task WhenTypeReferencesNamespaceOnlyViaReturnValueAttribute_ShouldSucceed() + public async Task WhenObsoleteIsAuthoredOnRequiredMembersConstructor_ShouldCountAsDependency() { - // Layer1's TargetAttribute is referenced ONLY through the [return: ...] attribute. - Type subject = typeof(ViaReturnValueAttribute); + // Only the compiler-emitted [Obsolete(marker, error: true)] paired with required members is + // skipped; an authored [Obsolete] on the same constructor still counts. + Type subject = typeof(WithRequiredPropertyAndAuthoredObsoleteConstructor); async Task Act() - => await That(subject).DependsOn(Layer1Namespace); + { + await That(subject).DependsOn("System"); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenDebuggerStepThroughIsAuthoredOnAsyncMethod_ShouldCountAsDependency() + public async Task WhenOnlyANestedTypeReferencesNamespace_ShouldFail() { - // In Debug builds the authored [DebuggerStepThrough] appears next to the compiler-emitted - // one (two entries); in Release builds it is the only occurrence in an optimized assembly — - // in both cases it is recognized as authored and counts. - Type subject = typeof(WithAuthoredDebuggerStepThroughAsyncMethod); + // Nested types are separate types with their own dependency surface; the declaring type's + // signature does not include what its nested types reference. The collection-based + // assertions enumerate nested types as their own items and cover them there. + Type subject = typeof(WithLayer1OnlyInNestedType); async Task Act() - => await That(subject).DependsOn("System.Diagnostics"); + { + await That(subject).DependsOn(Layer1Namespace); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws(); } [Fact] - public async Task WhenTypeDoesNotReferenceSpecificType_ShouldFail() + public async Task WhenOnlyOtherConstructionOfGenericIsReferenced_ShouldFail() { - Type subject = typeof(ViaField); + // ViaGenericArgument references List; List is a different construction. + Type subject = typeof(ViaGenericArgument); async Task Act() - => await That(subject).DependsOn(); + { + await That(subject).DependsOn(typeof(List)); + } await That(Act).Throws() .WithMessage(""" Expected that subject - depends on type TargetB, + depends on type List, but it did not """); } [Fact] - public async Task WhenTargetingGlobalNamespaceWithEmptyString_ShouldSucceed() + public async Task WhenSubNamespaceMatchesViaSubtree_ShouldSucceed() { - // An empty string targets exactly the global namespace. - Type subject = typeof(ReferencesGlobal); + Type subject = typeof(ViaSubNamespace); async Task Act() - => await That(subject).DependsOn(""); + { + await That(subject).DependsOn(Layer1Namespace); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenExactGenericConstructionIsReferenced_ShouldSucceed() + public async Task WhenTargetingGlobalNamespaceWithEmptyString_ShouldSucceed() { - Type subject = typeof(ViaGenericArgument); + // An empty string targets exactly the global namespace. + Type subject = typeof(ReferencesGlobal); async Task Act() - => await That(subject).DependsOn(typeof(List)); + { + await That(subject).DependsOn(""); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenGenericTypeDefinitionIsTargeted_ShouldMatchAnyConstruction() + public async Task WhenTypeDoesNotDependOnNamespace_ShouldFail() { - Type subject = typeof(ViaGenericArgument); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(typeof(List<>)); + { + await That(subject).DependsOn(Layer2Namespace); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + depends on namespace "{Layer2Namespace}", + but it depended on ["{Layer1Namespace}"] + """); } [Fact] - public async Task WhenOnlyOtherConstructionOfGenericIsReferenced_ShouldFail() + public async Task WhenTypeDoesNotReferenceSpecificType_ShouldFail() { - // ViaGenericArgument references List; List is a different construction. - Type subject = typeof(ViaGenericArgument); + Type subject = typeof(ViaField); async Task Act() - => await That(subject).DependsOn(typeof(List)); + { + await That(subject).DependsOn(); + } await That(Act).Throws() .WithMessage(""" Expected that subject - depends on type List, + depends on type TargetB, but it did not """); } [Fact] - public async Task WhenArrayTargetIsUsed_ShouldMatchElementType() + public async Task WhenTypeIsNull_ShouldFail() { - // Dependencies are collected with array wrappers stripped, so an array target is - // unwrapped symmetrically: typeof(TargetA[]) matches like typeof(TargetA). - Type subject = typeof(WithArrayField); + Type? subject = null; async Task Act() { - await That(subject).DependsOn(typeof(TargetA[])); - await That(subject).DependsOn(typeof(TargetA)); + await That(subject).DependsOn(Layer1Namespace); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + depends on namespace "{Layer1Namespace}", + but it was + """); } [Fact] - public async Task WhenWidenedWithOrOnType_ShouldSucceed() + public async Task WhenTypeReferencesEnumOnlyViaAttributeArgument_ShouldSucceed() { - Type subject = typeof(ViaField); + // Layer2's TargetSeverity is referenced ONLY through the attribute's enum argument; the + // attribute type itself lives in Layer1. + Type subject = typeof(ViaEnumAttributeArgument); async Task Act() - => await That(subject).DependsOn().OrOn(); + { + await That(subject).DependsOn(Layer2Namespace); + } await That(Act).DoesNotThrow(); } - [Fact] - public async Task WhenTypeIsNull_ShouldFail() + [Theory] + [InlineData(typeof(ViaBaseType))] + [InlineData(typeof(ViaInterface))] + [InlineData(typeof(ViaField))] + [InlineData(typeof(ViaProperty))] + [InlineData(typeof(ViaIndexer))] + [InlineData(typeof(ViaEvent))] + [InlineData(typeof(ViaMethodParameter))] + [InlineData(typeof(ViaMethodReturn))] + [InlineData(typeof(ViaGenericArgument))] + [InlineData(typeof(ViaAttribute))] + [InlineData(typeof(ViaGenericConstraint<>))] + public async Task WhenTypeReferencesNamespaceInSignature_ShouldSucceed(Type subject) { - Type? subject = null; - async Task Act() - => await That(subject).DependsOn(Layer1Namespace); + { + await That(subject).DependsOn(Layer1Namespace); + } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - depends on namespace "{Layer1Namespace}", - but it was - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() + public async Task WhenTypeReferencesNamespaceOnlyViaParameterAttribute_ShouldSucceed() { - Type subject = typeof(OnlyLayer1); + // Layer1's TargetAttribute is referenced ONLY through the attribute on a method parameter. + Type subject = typeof(ViaParameterAttribute); async Task Act() - => await That(subject).DependsOn(); + { + await That(subject).DependsOn(Layer1Namespace); + } - await That(Act).Throws() - .WithMessage("At least one namespace must be specified."); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenOnlyANestedTypeReferencesNamespace_ShouldFail() + public async Task WhenTypeReferencesNamespaceOnlyViaReturnValueAttribute_ShouldSucceed() { - // Nested types are separate types with their own dependency surface; the declaring type's - // signature does not include what its nested types reference. The collection-based - // assertions enumerate nested types as their own items and cover them there. - Type subject = typeof(WithLayer1OnlyInNestedType); + // Layer1's TargetAttribute is referenced ONLY through the [return: ...] attribute. + Type subject = typeof(ViaReturnValueAttribute); async Task Act() - => await That(subject).DependsOn(Layer1Namespace); + { + await That(subject).DependsOn(Layer1Namespace); + } - await That(Act).Throws(); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenNamespacesEnumerableIsNull_ShouldThrowArgumentNullException() + public async Task WhenTypeReferencesSpecificType_ShouldSucceed() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ViaField); async Task Act() - => await That(subject).DependsOn((IEnumerable)null!); + { + await That(subject).DependsOn(); + } - await That(Act).Throws() - .WithMessage("The namespaces must not be null.*").AsWildcard(); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenWidenedWithNullNamespacesEnumerable_ShouldThrowArgumentNullException() + public async Task WhenTypeReferencesTypeOnlyViaAttributeArgument_ShouldSucceed() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ViaAttributeArgument); async Task Act() - => await That(subject).DependsOn(Layer1Namespace).OrOn((IEnumerable)null!); + { + await That(subject).DependsOn(); + } - await That(Act).Throws() - .WithMessage("The namespaces must not be null.*").AsWildcard(); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenNamespaceIsNull_ShouldThrowArgumentNullException() + public async Task WhenWidenedWithNamespaceEndingWithDot_ShouldThrowArgumentException() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Layer1Namespace, null!); + { + await That(subject).DependsOn(Layer1Namespace).OrOn($"{Layer2Namespace}."); + } - await That(Act).Throws() - .WithMessage("The namespaces must not contain null.*").AsWildcard(); + await That(Act).Throws() + .WithMessage("The namespaces must not end with a dot (sub-namespaces are matched automatically)."); } [Fact] - public async Task WhenWidenedWithNullNamespace_ShouldThrowArgumentNullException() + public async Task WhenWidenedWithNamespaceThatCouldNeverMatch_ShouldThrowArgumentException() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Layer1Namespace).OrOn(Layer2Namespace, null!); + { + await That(subject).DependsOn(Layer1Namespace).OrOn($".{Layer2Namespace}"); + } - await That(Act).Throws() - .WithMessage("The namespaces must not contain null.*").AsWildcard(); + await That(Act).Throws() + .WithMessage( + "The namespaces must not contain empty segments or whitespace (such a namespace could never match)."); } [Fact] - public async Task WhenNamespaceEndsWithDot_ShouldThrowArgumentException() + public async Task WhenWidenedWithNullNamespace_ShouldThrowArgumentNullException() { - // A trailing-dot namespace could never match and would make negative assertions pass - // vacuously; only the excluded assembly prefixes use the trailing-dot convention. Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn($"{Layer1Namespace}."); + { + await That(subject).DependsOn(Layer1Namespace).OrOn(Layer2Namespace, null!); + } - await That(Act).Throws() - .WithMessage("The namespaces must not end with a dot (sub-namespaces are matched automatically)."); + await That(Act).Throws() + .WithMessage("The namespaces must not contain null.*").AsWildcard(); } [Fact] - public async Task WhenWidenedWithNamespaceEndingWithDot_ShouldThrowArgumentException() + public async Task WhenWidenedWithNullNamespacesEnumerable_ShouldThrowArgumentNullException() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Layer1Namespace).OrOn($"{Layer2Namespace}."); + { + await That(subject).DependsOn(Layer1Namespace).OrOn(null!); + } - await That(Act).Throws() - .WithMessage("The namespaces must not end with a dot (sub-namespaces are matched automatically)."); + await That(Act).Throws() + .WithMessage("The namespaces must not be null.*").AsWildcard(); } - [Theory] - [InlineData(".Layer2")] - [InlineData("Layer1..Layer2")] - [InlineData("Layer2 ")] - [InlineData(" Layer2")] - [InlineData("Layer2\tSub")] - public async Task WhenNamespaceCouldNeverMatch_ShouldThrowArgumentException(string @namespace) + [Fact] + public async Task WhenWidenedWithOrOn_ShouldSucceed() { - // Leading dots, empty segments and whitespace cannot occur in a real namespace, so such an - // input would make negative assertions pass vacuously, just like the trailing dot above. Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(@namespace); + { + await That(subject).DependsOn(Layer2Namespace).OrOn(Layer1Namespace); + } - await That(Act).Throws() - .WithMessage( - "The namespaces must not contain empty segments or whitespace (such a namespace could never match)."); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenWidenedWithNamespaceThatCouldNeverMatch_ShouldThrowArgumentException() + public async Task WhenWidenedWithOrOnType_ShouldSucceed() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ViaField); async Task Act() - => await That(subject).DependsOn(Layer1Namespace).OrOn($".{Layer2Namespace}"); + { + await That(subject).DependsOn().OrOn(); + } - await That(Act).Throws() - .WithMessage( - "The namespaces must not contain empty segments or whitespace (such a namespace could never match)."); + await That(Act).DoesNotThrow(); } } public sealed class FilteredTypesTargetTests { [Fact] - public async Task WhenTypeDependsOnTypeInTargetCollection_ShouldSucceed() + public async Task WhenAdditionalTargetIsNull_ShouldThrowArgumentNullException() { - Type subject = typeof(ViaField); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject) + .DependsOn(Types.InNamespace(Layer1Namespace), null!, null!); + } - await That(Act).DoesNotThrow(); + // The localized paramName suffix differs between frameworks ("(Parameter 'additional')" vs + // "Parametername: additional"), so only the shared part is matched. + await That(Act).Throws() + .WithMessage("The target collections of types must not contain null.*additional*") + .AsWildcard(); } [Fact] - public async Task WhenTypeDoesNotDependOnAnyTypeInTargetCollection_ShouldFail() + public async Task WhenAdditionalTargetsArrayIsNull_ShouldThrowArgumentNullException() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Types.InNamespace(Layer2Namespace)); + { + await That(subject).DependsOn(Types.InNamespace(Layer1Namespace), null!); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - depends on types within namespace "{Layer2Namespace}" in all loaded assemblies, - but it did not - """); + await That(Act).Throws() + .WithMessage("The additional target collections of types must not be null.*").AsWildcard(); } [Fact] @@ -505,33 +575,44 @@ public async Task WhenAnyTargetCollectionMatches_ShouldSucceed() Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Types.InNamespace(Layer2Namespace), Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependsOn(Types.InNamespace(Layer2Namespace), Types.InNamespace(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenWidenedWithOrOn_ShouldSucceed() + public async Task WhenGenericTypeDefinitionIsInTargetCollection_ShouldMatchConstruction() { - Type subject = typeof(OnlyLayer1); + // ViaLayer1GenericConstruction references the constructed TargetGeneric; the scanned + // target collection contains the open definition TargetGeneric<>. + Type subject = typeof(ViaLayer1GenericConstruction); async Task Act() - => await That(subject).DependsOn(Types.InNamespace(Layer2Namespace)).OrOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependsOn(In.Type(typeof(TargetGeneric<>))); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenGenericTypeDefinitionIsInTargetCollection_ShouldMatchConstruction() + public async Task WhenNegated_ShouldListMatchingDependencies() { - // ViaLayer1GenericConstruction references the constructed TargetGeneric; the scanned - // target collection contains the open definition TargetGeneric<>. - Type subject = typeof(ViaLayer1GenericConstruction); + Type subject = typeof(ViaField); async Task Act() - => await That(subject).DependsOn(In.Type(typeof(TargetGeneric<>))); + { + await That(subject).DoesNotComplyWith(it => it.DependsOn(Types.InNamespace(Layer1Namespace))); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + does not depend on types within namespace "{Layer1Namespace}" in all loaded assemblies, + but it depended on [TargetA] + """); } [Fact] @@ -542,7 +623,9 @@ public async Task WhenTargetCollectionContainsArrayType_ShouldMatchElementTypeDe Type subject = typeof(ViaField); async Task Act() - => await That(subject).DependsOn(In.Type(typeof(TargetA[]))); + { + await That(subject).DependsOn(In.Type(typeof(TargetA[]))); + } await That(Act).DoesNotThrow(); } @@ -554,7 +637,9 @@ public async Task WhenTargetCollectionContainsFrameworkTypes_ShouldMatchThem() Type subject = typeof(FrameworkConsumer); async Task Act() - => await That(subject).DependsOn(In.Type()); + { + await That(subject).DependsOn(In.Type()); + } await That(Act).DoesNotThrow(); } @@ -565,93 +650,101 @@ public async Task WhenTargetCollectionIsEmpty_ShouldFail() Type subject = typeof(ViaField); async Task Act() - => await That(subject).DependsOn(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject).DependsOn(Types.InNamespace("Non.Existent.Namespace")); + } await That(Act).Throws(); } [Fact] - public async Task WhenTypeIsNull_ShouldFail() + public async Task WhenTargetIsNull_ShouldThrowArgumentNullException() { - Type? subject = null; + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependsOn((Filtered.Types)null!); + } - await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - depends on types within namespace "{Layer1Namespace}" in all loaded assemblies, - but it was - """); + await That(Act).Throws() + .WithMessage("The target collection of types must not be null.*").AsWildcard(); } [Fact] - public async Task WhenTargetIsNull_ShouldThrowArgumentNullException() + public async Task WhenTypeDependsOnTypeInTargetCollection_ShouldSucceed() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ViaField); async Task Act() - => await That(subject).DependsOn((Filtered.Types)null!); + { + await That(subject).DependsOn(Types.InNamespace(Layer1Namespace)); + } - await That(Act).Throws() - .WithMessage("The target collection of types must not be null.*").AsWildcard(); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenAdditionalTargetsArrayIsNull_ShouldThrowArgumentNullException() + public async Task WhenTypeDoesNotDependOnAnyTypeInTargetCollection_ShouldFail() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Types.InNamespace(Layer1Namespace), null!); + { + await That(subject).DependsOn(Types.InNamespace(Layer2Namespace)); + } - await That(Act).Throws() - .WithMessage("The additional target collections of types must not be null.*").AsWildcard(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + depends on types within namespace "{Layer2Namespace}" in all loaded assemblies, + but it did not + """); } [Fact] - public async Task WhenAdditionalTargetIsNull_ShouldThrowArgumentNullException() + public async Task WhenTypeIsNull_ShouldFail() { - Type subject = typeof(OnlyLayer1); + Type? subject = null; async Task Act() - => await That(subject) - .DependsOn(Types.InNamespace(Layer1Namespace), (Filtered.Types)null!, (Filtered.Types)null!); + { + await That(subject).DependsOn(Types.InNamespace(Layer1Namespace)); + } - // The localized paramName suffix differs between frameworks ("(Parameter 'additional')" vs - // "Parametername: additional"), so only the shared part is matched. - await That(Act).Throws() - .WithMessage("The target collections of types must not contain null.*additional*") - .AsWildcard(); + await That(Act).ThrowsException() + .WithMessage($""" + Expected that subject + depends on types within namespace "{Layer1Namespace}" in all loaded assemblies, + but it was + """); } [Fact] - public async Task WhenWidenedWithoutTargets_ShouldThrowArgumentException() + public async Task WhenWidenedWithOrOn_ShouldSucceed() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOn(Types.InNamespace(Layer1Namespace)).OrOn(); + { + await That(subject).DependsOn(Types.InNamespace(Layer2Namespace)).OrOn(Types.InNamespace(Layer1Namespace)); + } - await That(Act).Throws() - .WithMessage("At least one collection of types must be specified."); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenNegated_ShouldListMatchingDependencies() + public async Task WhenWidenedWithoutTargets_ShouldThrowArgumentException() { - Type subject = typeof(ViaField); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DoesNotComplyWith(it => it.DependsOn(Types.InNamespace(Layer1Namespace))); + { + await That(subject).DependsOn(Types.InNamespace(Layer1Namespace)).OrOn(); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - does not depend on types within namespace "{Layer1Namespace}" in all loaded assemblies, - but it depended on [TargetA] - """); + await That(Act).Throws() + .WithMessage("At least one collection of types must be specified."); } } @@ -663,7 +756,9 @@ public async Task WhenTypeDependsOnNamespace_ShouldFail() Type subject = typeof(ViaField); async Task Act() - => await That(subject).DoesNotComplyWith(it => it.DependsOn(Layer1Namespace)); + { + await That(subject).DoesNotComplyWith(it => it.DependsOn(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.DependsOnlyOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.DependsOnlyOn.Tests.cs index afe1f6f1..1c039d74 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.DependsOnlyOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.DependsOnlyOn.Tests.cs @@ -24,81 +24,84 @@ public async Task WhenAllDependenciesAreAllowed_ShouldSucceed() Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace); + { + await That(subject).DependsOnlyOn(Layer1Namespace); + } await That(Act).DoesNotThrow(); } - [Fact] - public async Task WhenDependingOnDisallowedNamespace_ShouldFail() - { - Type subject = typeof(Layer1AndLayer2); - - async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace); - - await That(Act).Throws() - .WithMessage($""" - Expected that subject - depends only on namespace "{Layer1Namespace}", - but it also depended on ["{Layer2Namespace}"] - """); - } - [Fact] public async Task WhenAllowingMultipleNamespaces_ShouldSucceed() { Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace, Layer2Namespace); + { + await That(subject).DependsOnlyOn(Layer1Namespace, Layer2Namespace); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenWidenedWithOrOn_ShouldSucceed() + public async Task WhenDependingOnDisallowedNamespace_ShouldFail() { Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace).OrOn(Layer2Namespace); + { + await That(subject).DependsOnlyOn(Layer1Namespace); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + depends only on namespace "{Layer1Namespace}", + but it also depended on ["{Layer2Namespace}"] + """); } [Fact] - public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() + public async Task WhenDependingOnGlobalNamespace_ShouldReportGlobalNamespace() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ReferencesGlobal); async Task Act() - => await That(subject).DependsOnlyOn(); + { + await That(subject).DependsOnlyOn(Layer1Namespace); + } - await That(Act).Throws() - .WithMessage("At least one namespace must be specified."); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + depends only on namespace "{Layer1Namespace}", + but it also depended on [""] + """); } [Fact] - public async Task WhenDependingOnlyOnOwnNamespace_ShouldSucceed() + public async Task WhenDependingOnlyOnFramework_ShouldSucceed() { - Type subject = typeof(ReferencesOwnNamespace); + Type subject = typeof(FrameworkConsumer); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace); + { + await That(subject).DependsOnlyOn(Layer1Namespace); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenExcludingSubNamespaces_OwnSubNamespaceStaysAllowed() + public async Task WhenDependingOnlyOnOwnNamespace_ShouldSucceed() { - // ReferencesOwnSubNamespace (in ...Consumers) only references ...Consumers.OwnSub. By default the - // type's own sub-namespaces remain allowed even when sub-namespaces are excluded. - Type subject = typeof(ReferencesOwnSubNamespace); + Type subject = typeof(ReferencesOwnNamespace); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace).ExcludingSubNamespaces(); + { + await That(subject).DependsOnlyOn(Layer1Namespace); + } await That(Act).DoesNotThrow(); } @@ -109,8 +112,10 @@ public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceBecomesViolation( Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace) + { + await That(subject).DependsOnlyOn(Layer1Namespace) .ExcludingSubNamespaces().ExcludingOwnSubNamespaces(); + } await That(Act).Throws() .WithMessage($""" @@ -121,53 +126,59 @@ but it also depended on ["{OwnSubNamespace}"] } [Fact] - public async Task WhenOnlyExcludingOwnSubNamespaces_AllowedSubNamespacesStayIncluded() + public async Task WhenExcludingSubNamespaces_OwnSubNamespaceStaysAllowed() { - // The two toggles are independent: the own sub-namespace is no longer implicitly allowed, but - // the allowed namespaces still include their sub-namespaces, which covers it explicitly. + // ReferencesOwnSubNamespace (in ...Consumers) only references ...Consumers.OwnSub. By default the + // type's own sub-namespaces remain allowed even when sub-namespaces are excluded. Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).DependsOnlyOn(ConsumersNamespace).ExcludingOwnSubNamespaces(); + { + await That(subject).DependsOnlyOn(Layer1Namespace).ExcludingSubNamespaces(); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenDependingOnlyOnFramework_ShouldSucceed() + public async Task WhenGlobalNamespaceIsAllowedWithEmptyString_ShouldSucceed() { - Type subject = typeof(FrameworkConsumer); + // An empty string targets exactly the global namespace. + Type subject = typeof(ReferencesGlobal); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace); + { + await That(subject).DependsOnlyOn(Layer1Namespace, ""); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenDependingOnGlobalNamespace_ShouldReportGlobalNamespace() + public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() { - Type subject = typeof(ReferencesGlobal); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace); + { + await That(subject).DependsOnlyOn(); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - depends only on namespace "{Layer1Namespace}", - but it also depended on [""] - """); + await That(Act).Throws() + .WithMessage("At least one namespace must be specified."); } [Fact] - public async Task WhenGlobalNamespaceIsAllowedWithEmptyString_ShouldSucceed() + public async Task WhenOnlyExcludingOwnSubNamespaces_AllowedSubNamespacesStayIncluded() { - // An empty string targets exactly the global namespace. - Type subject = typeof(ReferencesGlobal); + // The two toggles are independent: the own sub-namespace is no longer implicitly allowed, but + // the allowed namespaces still include their sub-namespaces, which covers it explicitly. + Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace, ""); + { + await That(subject).DependsOnlyOn(ConsumersNamespace).ExcludingOwnSubNamespaces(); + } await That(Act).DoesNotThrow(); } @@ -178,7 +189,22 @@ public async Task WhenSubjectIsInGlobalNamespaceAndDependsOnlyOnFramework_Should Type subject = typeof(GlobalNamespaceTarget); async Task Act() - => await That(subject).DependsOnlyOn(Layer1Namespace); + { + await That(subject).DependsOnlyOn(Layer1Namespace); + } + + await That(Act).DoesNotThrow(); + } + + [Fact] + public async Task WhenWidenedWithOrOn_ShouldSucceed() + { + Type subject = typeof(Layer1AndLayer2); + + async Task Act() + { + await That(subject).DependsOnlyOn(Layer1Namespace).OrOn(Layer2Namespace); + } await That(Act).DoesNotThrow(); } @@ -192,7 +218,9 @@ public async Task WhenAllDependenciesAreInTargetCollection_ShouldSucceed() Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } @@ -203,7 +231,9 @@ public async Task WhenDependingOnTypeOutsideTargetCollections_ShouldFail() Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" @@ -214,114 +244,132 @@ but it also depended on ["TargetB"] } [Fact] - public async Task WhenWidenedWithOrOn_ShouldSucceed() + public async Task WhenDistinctViolatorsShareTheSimpleName_ShouldQualifyThemByNamespace() { - Type subject = typeof(Layer1AndLayer2); + // Both AmbiguousTarget dependencies are disallowed; they must stay apart in the message + // instead of collapsing into one indistinguishable "AmbiguousTarget" entry. + Type subject = typeof(WithSameNamedDependencies); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)) - .OrOn(Types.InNamespace(Layer2Namespace)); + { + await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage("*AmbiguousA.AmbiguousTarget*AmbiguousB.AmbiguousTarget*").AsWildcard(); } [Fact] - public async Task WhenDistinctViolatorsShareTheSimpleName_ShouldQualifyThemByNamespace() + public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceBecomesViolation() { - // Both AmbiguousTarget dependencies are disallowed; they must stay apart in the message - // instead of collapsing into one indistinguishable "AmbiguousTarget" entry. - Type subject = typeof(WithSameNamedDependencies); + Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)) + .ExcludingOwnSubNamespaces(); + } await That(Act).Throws() - .WithMessage("*AmbiguousA.AmbiguousTarget*AmbiguousB.AmbiguousTarget*").AsWildcard(); + .WithMessage($""" + Expected that subject + depends only on types within namespace "{Layer1Namespace}" in all loaded assemblies, + but it also depended on ["OwnSubTarget"] + """); } [Fact] - public async Task WhenTargetCollectionIsEmpty_ShouldStillAllowFrameworkDependencies() + public async Task WhenExcludingOwnSubNamespaces_TargetCollectionCoveringTheSubNamespaceStillAllowsIt() { - Type subject = typeof(FrameworkConsumer); + // The own sub-namespace is no longer implicitly allowed, but the target collection contains the + // referenced OwnSub type, which covers it explicitly. + Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject).DependsOnlyOn(Types.InNamespace(ConsumersNamespace)) + .ExcludingOwnSubNamespaces(); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenTargetCollectionIsEmpty_ShouldStillAllowOwnNamespace() + public async Task WhenNegated_ShouldSucceedForDisallowedDependency() { - Type subject = typeof(ReferencesOwnNamespace); + Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject) + .DoesNotComplyWith(it => it.DependsOnlyOn(Types.InNamespace(Layer1Namespace))); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenTargetCollectionIsEmpty_DisallowedDependencyShouldFail() + public async Task WhenReferencingOwnSubNamespace_ShouldSucceedByDefault() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)); + } - await That(Act).Throws(); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenNegated_ShouldSucceedForDisallowedDependency() + public async Task WhenTargetCollectionIsEmpty_DisallowedDependencyShouldFail() { - Type subject = typeof(Layer1AndLayer2); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject) - .DoesNotComplyWith(it => it.DependsOnlyOn(Types.InNamespace(Layer1Namespace))); + { + await That(subject).DependsOnlyOn(Types.InNamespace("Non.Existent.Namespace")); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws(); } [Fact] - public async Task WhenReferencingOwnSubNamespace_ShouldSucceedByDefault() + public async Task WhenTargetCollectionIsEmpty_ShouldStillAllowFrameworkDependencies() { - Type subject = typeof(ReferencesOwnSubNamespace); + Type subject = typeof(FrameworkConsumer); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependsOnlyOn(Types.InNamespace("Non.Existent.Namespace")); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceBecomesViolation() + public async Task WhenTargetCollectionIsEmpty_ShouldStillAllowOwnNamespace() { - Type subject = typeof(ReferencesOwnSubNamespace); + Type subject = typeof(ReferencesOwnNamespace); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)) - .ExcludingOwnSubNamespaces(); + { + await That(subject).DependsOnlyOn(Types.InNamespace("Non.Existent.Namespace")); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - depends only on types within namespace "{Layer1Namespace}" in all loaded assemblies, - but it also depended on ["OwnSubTarget"] - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenExcludingOwnSubNamespaces_TargetCollectionCoveringTheSubNamespaceStillAllowsIt() + public async Task WhenWidenedWithOrOn_ShouldSucceed() { - // The own sub-namespace is no longer implicitly allowed, but the target collection contains the - // referenced OwnSub type, which covers it explicitly. - Type subject = typeof(ReferencesOwnSubNamespace); + Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DependsOnlyOn(Types.InNamespace(ConsumersNamespace)) - .ExcludingOwnSubNamespaces(); + { + await That(subject).DependsOnlyOn(Types.InNamespace(Layer1Namespace)) + .OrOn(Types.InNamespace(Layer2Namespace)); + } await That(Act).DoesNotThrow(); } @@ -335,7 +383,9 @@ public async Task WhenDependingOnDisallowedNamespace_ShouldSucceed() Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DoesNotComplyWith(it => it.DependsOnlyOn(Layer1Namespace)); + { + await That(subject).DoesNotComplyWith(it => it.DependsOnlyOn(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.DoesNotDependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.DoesNotDependOn.Tests.cs index 02505c1b..27fabfe3 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.DoesNotDependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.DoesNotDependOn.Tests.cs @@ -22,41 +22,79 @@ public sealed class DoesNotDependOn public sealed class Tests { [Fact] - public async Task WhenTypeDoesNotDependOnNamespace_ShouldSucceed() + public async Task WhenArrayTargetIsUsed_ShouldMatchElementType() { - Type subject = typeof(OnlyLayer1); + // The array wrapper is unwrapped on both sides: WithArrayField references TargetA[], + // so it depends on typeof(TargetA[]) just like on typeof(TargetA). + Type subject = typeof(WithArrayField); async Task Act() - => await That(subject).DoesNotDependOn(Layer2Namespace); + { + await That(subject).DoesNotDependOn(typeof(TargetA[])); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage(""" + Expected that subject + does not depend on type TargetA[], + but it depended on [TargetA] + """); } [Fact] - public async Task WhenTypeDependsOnNamespace_ShouldFail() + public async Task WhenAttributeTypeIsExcludedViaCustomization_ShouldNotCountAsDependency() { - Type subject = typeof(ViaField); + // The built-in compiler-emitted attribute set can be extended via customization, e.g. for a + // marker attribute of a future compiler version; outside the scope the attribute counts again. + Type subject = typeof(ViaAttribute); + + using (Customize.aweXpect.Reflection().ExcludedAttributeTypes() + .Set([typeof(TargetAttribute).FullName!,])) + { + async Task Act() + { + await That(subject).DoesNotDependOn(Layer1Namespace); + } + + await That(Act).DoesNotThrow(); + } + + async Task ActOutsideScope() + { + await That(subject).DependsOn(Layer1Namespace); + } + + await That(ActOutsideScope).DoesNotThrow(); + } + + [Fact] + public async Task WhenCompilerEmitsAttributesForAsyncMethod_ShouldNotCountAsDependency() + { + // An async method makes the compiler emit [AsyncStateMachine(typeof(d__0))] and + // [DebuggerStepThrough]; neither attribute is authored. (The authored `void` return type + // still counts as a reference to "System", so the attribute namespaces are asserted.) + Type subject = typeof(WithAsyncMethod); async Task Act() - => await That(subject).DoesNotDependOn(Layer1Namespace); + { + await That(subject).DoesNotDependOn("System.Runtime.CompilerServices"); + await That(subject).DoesNotDependOn("System.Diagnostics"); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - does not depend on namespace "{Layer1Namespace}", - but it depended on ["{Layer1Namespace}"] - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenOnlySystemReferenceIsImplicitBaseAndNullableAttributes_ShouldSucceed() + public async Task WhenCompilerEmitsAttributesForIteratorMethod_ShouldNotCountAsDependency() { - // OnlyLayer1's only authored dependency is Layer1.TargetA; the implicit object base type and the - // compiler-emitted nullable attributes must not count as a dependency on "System". - Type subject = typeof(OnlyLayer1); + // An iterator method makes the compiler emit [IteratorStateMachine(typeof(d__0))]; + // the authored IEnumerable return type lives in System.Collections.Generic, not here. + Type subject = typeof(WithIteratorMethod); async Task Act() - => await That(subject).DoesNotDependOn("System"); + { + await That(subject).DoesNotDependOn("System.Runtime.CompilerServices"); + } await That(Act).DoesNotThrow(); } @@ -69,49 +107,44 @@ public async Task WhenCompilerEmitsAttributesForRequiredMember_ShouldNotCountAsD Type subject = typeof(WithRequiredProperty); async Task Act() - => await That(subject).DoesNotDependOn("System"); + { + await That(subject).DoesNotDependOn("System"); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenAttributeTypeIsExcludedViaCustomization_ShouldNotCountAsDependency() + public async Task WhenCompilerEmitsParamArrayForParamsParameter_ShouldNotCountAsDependency() { - // The built-in compiler-emitted attribute set can be extended via customization, e.g. for a - // marker attribute of a future compiler version; outside the scope the attribute counts again. - Type subject = typeof(ViaAttribute); + // The `params` keyword compiles into [ParamArray] on the parameter, which the author can + // never write directly (CS0674). + Type subject = typeof(WithParamsArrayOfOwnType); - using (Customize.aweXpect.Reflection().ExcludedAttributeTypes() - .Set([typeof(TargetAttribute).FullName!,])) + async Task Act() { - async Task Act() - => await That(subject).DoesNotDependOn(Layer1Namespace); - - await That(Act).DoesNotThrow(); + await That(subject).DoesNotDependOn(); } - async Task ActOutsideScope() - => await That(subject).DependsOn(Layer1Namespace); - - await That(ActOutsideScope).DoesNotThrow(); + await That(Act).DoesNotThrow(); } +#if NET8_0_OR_GREATER [Fact] - public async Task WhenCompilerEmitsAttributesForAsyncMethod_ShouldNotCountAsDependency() + public async Task WhenCompilerEmitsPreserveBaseOverridesForCovariantReturn_ShouldNotCountAsDependency() { - // An async method makes the compiler emit [AsyncStateMachine(typeof(d__0))] and - // [DebuggerStepThrough]; neither attribute is authored. (The authored `void` return type - // still counts as a reference to "System", so the attribute namespaces are asserted.) - Type subject = typeof(WithAsyncMethod); + // A covariant-return override makes the compiler emit [PreserveBaseOverrides]; the + // attribute is not authored. + Type subject = typeof(CovariantReturnDerived); async Task Act() { await That(subject).DoesNotDependOn("System.Runtime.CompilerServices"); - await That(subject).DoesNotDependOn("System.Diagnostics"); } await That(Act).DoesNotThrow(); } +#endif [Fact] public async Task WhenCompilerEmitsStateMachineForAsyncMethod_ShouldNotCountAsDependency() @@ -121,62 +154,102 @@ public async Task WhenCompilerEmitsStateMachineForAsyncMethod_ShouldNotCountAsDe Type subject = typeof(WithAsyncMethod); async Task Act() - => await That(subject) + { + await That(subject) .DoesNotDependOn("aweXpect.Reflection.Tests.TestHelpers.Dependencies.Synthetic"); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenCompilerEmitsAttributesForIteratorMethod_ShouldNotCountAsDependency() + public async Task WhenDelegateInfrastructureIsRuntimeSupplied_ShouldNotCountAsDependency() { - // An iterator method makes the compiler emit [IteratorStateMachine(typeof(d__0))]; - // the authored IEnumerable return type lives in System.Collections.Generic, not here. - Type subject = typeof(WithIteratorMethod); + // The MulticastDelegate base, the (object, IntPtr) constructor and BeginInvoke/EndInvoke + // are runtime-supplied; only the Invoke signature of a delegate is authored. + Type subject = typeof(TargetProviderDelegate); async Task Act() - => await That(subject).DoesNotDependOn("System.Runtime.CompilerServices"); + { + await That(subject).DoesNotDependOn("System"); + } await That(Act).DoesNotThrow(); } -#if NET8_0_OR_GREATER [Fact] - public async Task WhenCompilerEmitsPreserveBaseOverridesForCovariantReturn_ShouldNotCountAsDependency() + public async Task WhenInterfaceIsImplementedOnlyByBaseType_ShouldNotCountAsDependency() { - // A covariant-return override makes the compiler emit [PreserveBaseOverrides]; the - // attribute is not authored. - Type subject = typeof(CovariantReturnDerived); + // GetInterfaces() returns the transitive closure: DerivedWithoutOwnReferences inherits + // ITargetInterface from its base type without writing the reference itself. + Type subject = typeof(DerivedWithoutOwnReferences); async Task Act() - => await That(subject).DoesNotDependOn("System.Runtime.CompilerServices"); + { + await That(subject).DoesNotDependOn(Layer1Namespace); + } await That(Act).DoesNotThrow(); } -#endif [Fact] - public async Task WhenCompilerEmitsParamArrayForParamsParameter_ShouldNotCountAsDependency() + public async Task WhenNamingFrameworkNamespaceThatIsReferenced_ShouldFail() { - // The `params` keyword compiles into [ParamArray] on the parameter, which the author can - // never write directly (CS0674). - Type subject = typeof(WithParamsArrayOfOwnType); + Type subject = typeof(FrameworkConsumer); + + async Task Act() + { + await That(subject).DoesNotDependOn("System.Collections.Generic"); + } + + await That(Act).Throws() + .WithMessage(""" + Expected that subject + does not depend on namespace "System.Collections.Generic", + but it depended on ["System.Collections.Generic"] + """); + } + + [Fact] + public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() + { + Type subject = typeof(OnlyLayer1); + + async Task Act() + { + await That(subject).DoesNotDependOn(); + } + + await That(Act).Throws() + .WithMessage("At least one namespace must be specified."); + } + + [Fact] + public async Task WhenOnlyOtherConstructionOfGenericIsReferenced_ShouldSucceed() + { + // ViaGenericArgument references List; List is a different construction + // and must not be reported as a dependency. + Type subject = typeof(ViaGenericArgument); async Task Act() - => await That(subject).DoesNotDependOn(); + { + await That(subject).DoesNotDependOn(typeof(List)); + } await That(Act).DoesNotThrow(); } - [Theory] - [InlineData(typeof(WithStructConstraint<>))] - [InlineData(typeof(WithUnmanagedConstraint<>))] - public async Task WhenStructConstraintCompilesIntoValueType_ShouldNotCountAsDependency(Type subject) + [Fact] + public async Task WhenOnlySystemReferenceIsImplicitBaseAndNullableAttributes_ShouldSucceed() { - // `where T : struct` / `where T : unmanaged` compile into a System.ValueType constraint in - // metadata, which the author can never write directly (CS0702). + // OnlyLayer1's only authored dependency is Layer1.TargetA; the implicit object base type and the + // compiler-emitted nullable attributes must not count as a dependency on "System". + Type subject = typeof(OnlyLayer1); + async Task Act() - => await That(subject).DoesNotDependOn("System"); + { + await That(subject).DoesNotDependOn("System"); + } await That(Act).DoesNotThrow(); } @@ -200,19 +273,6 @@ async Task Act() await That(Act).DoesNotThrow(); } - [Fact] - public async Task WhenInterfaceIsImplementedOnlyByBaseType_ShouldNotCountAsDependency() - { - // GetInterfaces() returns the transitive closure: DerivedWithoutOwnReferences inherits - // ITargetInterface from its base type without writing the reference itself. - Type subject = typeof(DerivedWithoutOwnReferences); - - async Task Act() - => await That(subject).DoesNotDependOn(Layer1Namespace); - - await That(Act).DoesNotThrow(); - } - [Fact] public async Task WhenRecordSynthesizesEquatableInterface_ShouldNotCountAsDependency() { @@ -220,69 +280,57 @@ public async Task WhenRecordSynthesizesEquatableInterface_ShouldNotCountAsDepend Type subject = typeof(RecordWithLayer1Target); async Task Act() - => await That(subject).DoesNotDependOn("System"); - - await That(Act).DoesNotThrow(); - } - - [Fact] - public async Task WhenDelegateInfrastructureIsRuntimeSupplied_ShouldNotCountAsDependency() - { - // The MulticastDelegate base, the (object, IntPtr) constructor and BeginInvoke/EndInvoke - // are runtime-supplied; only the Invoke signature of a delegate is authored. - Type subject = typeof(TargetProviderDelegate); - - async Task Act() - => await That(subject).DoesNotDependOn("System"); + { + await That(subject).DoesNotDependOn("System"); + } await That(Act).DoesNotThrow(); } - [Fact] - public async Task WhenOnlyOtherConstructionOfGenericIsReferenced_ShouldSucceed() + [Theory] + [InlineData(typeof(WithStructConstraint<>))] + [InlineData(typeof(WithUnmanagedConstraint<>))] + public async Task WhenStructConstraintCompilesIntoValueType_ShouldNotCountAsDependency(Type subject) { - // ViaGenericArgument references List; List is a different construction - // and must not be reported as a dependency. - Type subject = typeof(ViaGenericArgument); - + // `where T : struct` / `where T : unmanaged` compile into a System.ValueType constraint in + // metadata, which the author can never write directly (CS0702). async Task Act() - => await That(subject).DoesNotDependOn(typeof(List)); + { + await That(subject).DoesNotDependOn("System"); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenArrayTargetIsUsed_ShouldMatchElementType() + public async Task WhenTypeDependsOnNamespace_ShouldFail() { - // The array wrapper is unwrapped on both sides: WithArrayField references TargetA[], - // so it depends on typeof(TargetA[]) just like on typeof(TargetA). - Type subject = typeof(WithArrayField); + Type subject = typeof(ViaField); async Task Act() - => await That(subject).DoesNotDependOn(typeof(TargetA[])); + { + await That(subject).DoesNotDependOn(Layer1Namespace); + } await That(Act).Throws() - .WithMessage(""" - Expected that subject - does not depend on type TargetA[], - but it depended on [TargetA] - """); + .WithMessage($""" + Expected that subject + does not depend on namespace "{Layer1Namespace}", + but it depended on ["{Layer1Namespace}"] + """); } [Fact] - public async Task WhenNamingFrameworkNamespaceThatIsReferenced_ShouldFail() + public async Task WhenTypeDoesNotDependOnNamespace_ShouldSucceed() { - Type subject = typeof(FrameworkConsumer); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DoesNotDependOn("System.Collections.Generic"); + { + await That(subject).DoesNotDependOn(Layer2Namespace); + } - await That(Act).Throws() - .WithMessage(""" - Expected that subject - does not depend on namespace "System.Collections.Generic", - but it depended on ["System.Collections.Generic"] - """); + await That(Act).DoesNotThrow(); } [Fact] @@ -291,7 +339,9 @@ public async Task WhenTypeDoesNotReferenceSpecificType_ShouldSucceed() Type subject = typeof(ViaField); async Task Act() - => await That(subject).DoesNotDependOn(); + { + await That(subject).DoesNotDependOn(); + } await That(Act).DoesNotThrow(); } @@ -302,7 +352,9 @@ public async Task WhenTypeReferencesSpecificType_ShouldFail() Type subject = typeof(ViaField); async Task Act() - => await That(subject).DoesNotDependOn(); + { + await That(subject).DoesNotDependOn(); + } await That(Act).Throws() .WithMessage(""" @@ -312,25 +364,15 @@ but it depended on [TargetA] """); } - [Fact] - public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() - { - Type subject = typeof(OnlyLayer1); - - async Task Act() - => await That(subject).DoesNotDependOn(); - - await That(Act).Throws() - .WithMessage("At least one namespace must be specified."); - } - [Fact] public async Task WhenWidenedWithOrOn_ShouldFailIfAnyMatches() { Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DoesNotDependOn(Layer2Namespace).OrOn(Layer1Namespace); + { + await That(subject).DoesNotDependOn(Layer2Namespace).OrOn(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -344,12 +386,14 @@ Expected that subject public sealed class FilteredTypesTargetTests { [Fact] - public async Task WhenTypeDoesNotDependOnAnyTypeInTargetCollection_ShouldSucceed() + public async Task WhenTargetCollectionIsEmpty_ShouldSucceedTrivially() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ViaField); async Task Act() - => await That(subject).DoesNotDependOn(Types.InNamespace(Layer2Namespace)); + { + await That(subject).DoesNotDependOn(Types.InNamespace("Non.Existent.Namespace")); + } await That(Act).DoesNotThrow(); } @@ -360,7 +404,9 @@ public async Task WhenTypeDependsOnTypeInTargetCollection_ShouldFail() Type subject = typeof(ViaField); async Task Act() - => await That(subject).DoesNotDependOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DoesNotDependOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" @@ -371,12 +417,14 @@ but it depended on [TargetA] } [Fact] - public async Task WhenTargetCollectionIsEmpty_ShouldSucceedTrivially() + public async Task WhenTypeDoesNotDependOnAnyTypeInTargetCollection_ShouldSucceed() { - Type subject = typeof(ViaField); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DoesNotDependOn(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject).DoesNotDependOn(Types.InNamespace(Layer2Namespace)); + } await That(Act).DoesNotThrow(); } @@ -387,8 +435,10 @@ public async Task WhenWidenedWithOrOn_ShouldFailIfAnyMatches() Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DoesNotDependOn(Types.InNamespace(Layer2Namespace)) + { + await That(subject).DoesNotDependOn(Types.InNamespace(Layer2Namespace)) .OrOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" @@ -407,7 +457,9 @@ public async Task WhenTypeDependsOnNamespace_ShouldSucceed() Type subject = typeof(ViaField); async Task Act() - => await That(subject).DoesNotComplyWith(it => it.DoesNotDependOn(Layer1Namespace)); + { + await That(subject).DoesNotComplyWith(it => it.DoesNotDependOn(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.HasDependenciesOutside.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.HasDependenciesOutside.Tests.cs index 33995ac3..83e8e970 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.HasDependenciesOutside.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.HasDependenciesOutside.Tests.cs @@ -13,24 +13,15 @@ public sealed class HasDependenciesOutside public sealed class Tests { - [Fact] - public async Task WhenDependingOnNamespaceOutsideAllowedSet_ShouldSucceed() - { - Type subject = typeof(Layer1AndLayer2); - - async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace); - - await That(Act).DoesNotThrow(); - } - [Fact] public async Task WhenAllDependenciesAreAllowed_ShouldFail() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -46,7 +37,9 @@ public async Task WhenAllowingMultipleNamespaces_ShouldFail() Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace, Layer2Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace, Layer2Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -57,31 +50,35 @@ but it only depended on the allowed namespaces } [Fact] - public async Task WhenWidenedWithOrOn_ShouldFail() + public async Task WhenDependingOnGlobalNamespace_ShouldSucceed() { - Type subject = typeof(Layer1AndLayer2); + Type subject = typeof(ReferencesGlobal); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace).OrOn(Layer2Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - has dependencies outside namespace "{Layer1Namespace}" or "{Layer2Namespace}", - but it only depended on the allowed namespaces - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() + public async Task WhenDependingOnlyOnFramework_ShouldFail() { - Type subject = typeof(OnlyLayer2); + // Framework dependencies never count as outside. + Type subject = typeof(FrameworkConsumer); async Task Act() - => await That(subject).HasDependenciesOutside(); + { + await That(subject).HasDependenciesOutside(Layer1Namespace); + } - await That(Act).Throws() - .WithMessage("At least one namespace must be specified."); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + has dependencies outside namespace "{Layer1Namespace}", + but it only depended on the allowed namespaces + """); } [Fact] @@ -91,7 +88,9 @@ public async Task WhenDependingOnlyOnOwnNamespace_ShouldFail() Type subject = typeof(ReferencesOwnNamespace); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -102,20 +101,16 @@ but it only depended on the allowed namespaces } [Fact] - public async Task WhenDependingOnlyOnFramework_ShouldFail() + public async Task WhenDependingOnNamespaceOutsideAllowedSet_ShouldSucceed() { - // Framework dependencies never count as outside. - Type subject = typeof(FrameworkConsumer); + Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - has dependencies outside namespace "{Layer1Namespace}", - but it only depended on the allowed namespaces - """); + await That(Act).DoesNotThrow(); } [Fact] @@ -125,7 +120,9 @@ public async Task WhenDependingOnSubNamespaceOfAllowedNamespace_ShouldFail() Type subject = typeof(ViaSubNamespace); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -136,12 +133,14 @@ but it only depended on the allowed namespaces } [Fact] - public async Task WhenExcludingSubNamespaces_SubNamespaceDependencyCountsAsOutside() + public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceCountsAsOutside() { - Type subject = typeof(ViaSubNamespace); + Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace).ExcludingSubNamespaces(); + { + await That(subject).HasDependenciesOutside(Layer1Namespace).ExcludingOwnSubNamespaces(); + } await That(Act).DoesNotThrow(); } @@ -154,7 +153,9 @@ public async Task WhenExcludingSubNamespaces_OwnSubNamespaceStaysAllowed() Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace).ExcludingSubNamespaces(); + { + await That(subject).HasDependenciesOutside(Layer1Namespace).ExcludingSubNamespaces(); + } await That(Act).Throws() .WithMessage($""" @@ -165,23 +166,14 @@ but it only depended on the allowed namespaces } [Fact] - public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceCountsAsOutside() - { - Type subject = typeof(ReferencesOwnSubNamespace); - - async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace).ExcludingOwnSubNamespaces(); - - await That(Act).DoesNotThrow(); - } - - [Fact] - public async Task WhenDependingOnGlobalNamespace_ShouldSucceed() + public async Task WhenExcludingSubNamespaces_SubNamespaceDependencyCountsAsOutside() { - Type subject = typeof(ReferencesGlobal); + Type subject = typeof(ViaSubNamespace); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace).ExcludingSubNamespaces(); + } await That(Act).DoesNotThrow(); } @@ -193,7 +185,9 @@ public async Task WhenGlobalNamespaceIsAllowedWithEmptyString_ShouldFail() Type subject = typeof(ReferencesGlobal); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace, ""); + { + await That(subject).HasDependenciesOutside(Layer1Namespace, ""); + } await That(Act).Throws() .WithMessage($""" @@ -203,13 +197,29 @@ but it only depended on the allowed namespaces """); } + [Fact] + public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() + { + Type subject = typeof(OnlyLayer2); + + async Task Act() + { + await That(subject).HasDependenciesOutside(); + } + + await That(Act).Throws() + .WithMessage("At least one namespace must be specified."); + } + [Fact] public async Task WhenSubjectIsInGlobalNamespaceAndDependsOnlyOnFramework_ShouldFail() { Type subject = typeof(GlobalNamespaceTarget); async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -225,7 +235,9 @@ public async Task WhenTypeIsNull_ShouldFail() Type? subject = null; async Task Act() - => await That(subject).HasDependenciesOutside(Layer1Namespace); + { + await That(subject).HasDependenciesOutside(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -234,28 +246,37 @@ Expected that subject but it was """); } - } - public sealed class FilteredTypesTargetTests - { [Fact] - public async Task WhenDependingOnTypeOutsideTargetCollections_ShouldSucceed() + public async Task WhenWidenedWithOrOn_ShouldFail() { Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HasDependenciesOutside(Layer1Namespace).OrOn(Layer2Namespace); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + has dependencies outside namespace "{Layer1Namespace}" or "{Layer2Namespace}", + but it only depended on the allowed namespaces + """); } + } + public sealed class FilteredTypesTargetTests + { [Fact] public async Task WhenAllDependenciesAreInTargetCollection_ShouldFail() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" @@ -266,62 +287,91 @@ but it only depended on the allowed types } [Fact] - public async Task WhenWidenedWithOrOn_ShouldFail() + public async Task WhenDependingOnTypeOutsideTargetCollections_ShouldSucceed() { Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)) - .OrOn(Types.InNamespace(Layer2Namespace)); + { + await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - has dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies or types within namespace "{Layer2Namespace}" in all loaded assemblies, - but it only depended on the allowed types - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenTargetCollectionIsEmpty_FrameworkDependenciesStayInside() + public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceCountsAsOutside() { - Type subject = typeof(FrameworkConsumer); + Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)) + .ExcludingOwnSubNamespaces(); + } - await That(Act).Throws(); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenTargetCollectionIsEmpty_OwnNamespaceStaysInside() + public async Task WhenNegated_ShouldFailForTypeWithDependencyOutside() { - Type subject = typeof(ReferencesOwnNamespace); + Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject) + .DoesNotComplyWith(it => it.HasDependenciesOutside(Types.InNamespace(Layer1Namespace))); + } - await That(Act).Throws(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + does not have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, + but it also depended on ["TargetB"] + """); } [Fact] - public async Task WhenTargetCollectionIsEmpty_DisallowedDependencyShouldSucceed() + public async Task WhenNegated_ShouldSucceedForTypeDependingOnlyOnAllowedTypes() { Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject) + .DoesNotComplyWith(it => it.HasDependenciesOutside(Types.InNamespace(Layer1Namespace))); + } await That(Act).DoesNotThrow(); } + [Fact] + public async Task WhenNegatedAndDistinctViolatorsShareTheSimpleName_ShouldQualifyThemByNamespace() + { + // Both AmbiguousTarget dependencies are outside the allowed set; they must stay apart in the + // message instead of collapsing into one indistinguishable "AmbiguousTarget" entry. + Type subject = typeof(WithSameNamedDependencies); + + async Task Act() + { + await That(subject) + .DoesNotComplyWith(it => it.HasDependenciesOutside(Types.InNamespace(Layer1Namespace))); + } + + await That(Act).Throws() + .WithMessage("*AmbiguousA.AmbiguousTarget*AmbiguousB.AmbiguousTarget*").AsWildcard(); + } + [Fact] public async Task WhenReferencingOwnSubNamespace_ShouldFailByDefault() { Type subject = typeof(ReferencesOwnSubNamespace); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" @@ -332,74 +382,78 @@ but it only depended on the allowed types } [Fact] - public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceCountsAsOutside() + public async Task WhenTargetCollectionIsEmpty_DisallowedDependencyShouldSucceed() { - Type subject = typeof(ReferencesOwnSubNamespace); + Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)) - .ExcludingOwnSubNamespaces(); + { + await That(subject).HasDependenciesOutside(Types.InNamespace("Non.Existent.Namespace")); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenTypeIsNull_ShouldFail() + public async Task WhenTargetCollectionIsEmpty_FrameworkDependenciesStayInside() { - Type? subject = null; + Type subject = typeof(FrameworkConsumer); async Task Act() - => await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HasDependenciesOutside(Types.InNamespace("Non.Existent.Namespace")); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - has dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, - but it was - """); + await That(Act).Throws(); } [Fact] - public async Task WhenNegated_ShouldSucceedForTypeDependingOnlyOnAllowedTypes() + public async Task WhenTargetCollectionIsEmpty_OwnNamespaceStaysInside() { - Type subject = typeof(OnlyLayer1); + Type subject = typeof(ReferencesOwnNamespace); async Task Act() - => await That(subject) - .DoesNotComplyWith(it => it.HasDependenciesOutside(Types.InNamespace(Layer1Namespace))); + { + await That(subject).HasDependenciesOutside(Types.InNamespace("Non.Existent.Namespace")); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws(); } [Fact] - public async Task WhenNegatedAndDistinctViolatorsShareTheSimpleName_ShouldQualifyThemByNamespace() + public async Task WhenTypeIsNull_ShouldFail() { - // Both AmbiguousTarget dependencies are outside the allowed set; they must stay apart in the - // message instead of collapsing into one indistinguishable "AmbiguousTarget" entry. - Type subject = typeof(WithSameNamedDependencies); + Type? subject = null; async Task Act() - => await That(subject) - .DoesNotComplyWith(it => it.HasDependenciesOutside(Types.InNamespace(Layer1Namespace))); + { + await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() - .WithMessage("*AmbiguousA.AmbiguousTarget*AmbiguousB.AmbiguousTarget*").AsWildcard(); + .WithMessage($""" + Expected that subject + has dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, + but it was + """); } [Fact] - public async Task WhenNegated_ShouldFailForTypeWithDependencyOutside() + public async Task WhenWidenedWithOrOn_ShouldFail() { Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject) - .DoesNotComplyWith(it => it.HasDependenciesOutside(Types.InNamespace(Layer1Namespace))); + { + await That(subject).HasDependenciesOutside(Types.InNamespace(Layer1Namespace)) + .OrOn(Types.InNamespace(Layer2Namespace)); + } await That(Act).Throws() .WithMessage($""" Expected that subject - does not have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, - but it also depended on ["TargetB"] + has dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies or types within namespace "{Layer2Namespace}" in all loaded assemblies, + but it only depended on the allowed types """); } } @@ -412,7 +466,9 @@ public async Task WhenAllDependenciesAreAllowed_ShouldSucceed() Type subject = typeof(OnlyLayer1); async Task Act() - => await That(subject).DoesNotComplyWith(it => it.HasDependenciesOutside(Layer1Namespace)); + { + await That(subject).DoesNotComplyWith(it => it.HasDependenciesOutside(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } @@ -423,7 +479,9 @@ public async Task WhenDependingOnNamespaceOutsideAllowedSet_ShouldFail() Type subject = typeof(Layer1AndLayer2); async Task Act() - => await That(subject).DoesNotComplyWith(it => it.HasDependenciesOutside(Layer1Namespace)); + { + await That(subject).DoesNotComplyWith(it => it.HasDependenciesOutside(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.HasOperator.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.HasOperator.Tests.cs index 48353f4a..9addd213 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.HasOperator.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.HasOperator.Tests.cs @@ -125,26 +125,26 @@ async Task Act() } [Fact] - public async Task WhenTypeHasTheOperatorWithTypeOperand_ShouldSucceed() + public async Task WhenTypeHasTheOperatorWithOpenGenericOperand_ShouldSucceed() { - Type subject = typeof(Money); + Type subject = typeof(GenericBox); async Task Act() { - await That(subject).HasOperator(Operator.Addition, typeof(Money)); + await That(subject).HasOperator(Operator.Addition, typeof(GenericBox<>)); } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenTypeHasTheOperatorWithOpenGenericOperand_ShouldSucceed() + public async Task WhenTypeHasTheOperatorWithTypeOperand_ShouldSucceed() { - Type subject = typeof(GenericBox); + Type subject = typeof(Money); async Task Act() { - await That(subject).HasOperator(Operator.Addition, typeof(GenericBox<>)); + await That(subject).HasOperator(Operator.Addition, typeof(Money)); } await That(Act).DoesNotThrow(); diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsImmutable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsImmutable.Tests.cs index 40f36b49..027afb11 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsImmutable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsImmutable.Tests.cs @@ -9,22 +9,10 @@ public sealed class IsImmutable { public sealed class Tests { - [Theory] - [MemberData(nameof(ImmutableTypes))] - public async Task WhenTypeIsImmutable_ShouldSucceed(Type subject) - { - async Task Act() - { - await That(subject).IsImmutable(); - } - - await That(Act).DoesNotThrow(); - } - [Fact] - public async Task WhenTypeHasMutableField_ShouldFail() + public async Task WhenTypeHasMultipleMutableMembers_ShouldFail() { - Type subject = typeof(ClassWithMutableField); + Type subject = typeof(ClassWithMutableFieldAndSettableProperty); async Task Act() { @@ -35,16 +23,17 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject is immutable, - but it was mutable ClassWithMutableField with mutable members [ - int ClassWithMutableField.Value + but it was mutable ClassWithMutableFieldAndSettableProperty with mutable members [ + int ClassWithMutableFieldAndSettableProperty.Field, + public int ClassWithMutableFieldAndSettableProperty.Property { get; set; } ] """); } [Fact] - public async Task WhenTypeHasSettableProperty_ShouldFail() + public async Task WhenTypeHasMutableField_ShouldFail() { - Type subject = typeof(ClassWithSettableProperty); + Type subject = typeof(ClassWithMutableField); async Task Act() { @@ -55,16 +44,16 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject is immutable, - but it was mutable ClassWithSettableProperty with mutable members [ - public int ClassWithSettableProperty.Value { get; set; } + but it was mutable ClassWithMutableField with mutable members [ + int ClassWithMutableField.Value ] """); } [Fact] - public async Task WhenTypeHasMultipleMutableMembers_ShouldFail() + public async Task WhenTypeHasPropertyWithPrivateSetter_ShouldFail() { - Type subject = typeof(ClassWithMutableFieldAndSettableProperty); + Type subject = typeof(ClassWithPrivateSettableProperty); async Task Act() { @@ -75,17 +64,16 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject is immutable, - but it was mutable ClassWithMutableFieldAndSettableProperty with mutable members [ - int ClassWithMutableFieldAndSettableProperty.Field, - public int ClassWithMutableFieldAndSettableProperty.Property { get; set; } + but it was mutable ClassWithPrivateSettableProperty with mutable members [ + public int ClassWithPrivateSettableProperty.Value { get; private set; } ] """); } [Fact] - public async Task WhenTypeInheritsMutableField_ShouldFail() + public async Task WhenTypeHasSettableIndexer_ShouldFail() { - Type subject = typeof(ClassInheritingMutableField); + Type subject = typeof(ClassWithSettableIndexer); async Task Act() { @@ -96,16 +84,16 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject is immutable, - but it was mutable ClassInheritingMutableField with mutable members [ - int MutableBaseClass._value + but it was mutable ClassWithSettableIndexer with mutable members [ + public int ClassWithSettableIndexer.Item { get; set; } ] """); } [Fact] - public async Task WhenTypeHasSettableIndexer_ShouldFail() + public async Task WhenTypeHasSettableProperty_ShouldFail() { - Type subject = typeof(ClassWithSettableIndexer); + Type subject = typeof(ClassWithSettableProperty); async Task Act() { @@ -116,16 +104,16 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject is immutable, - but it was mutable ClassWithSettableIndexer with mutable members [ - public int ClassWithSettableIndexer.Item { get; set; } + but it was mutable ClassWithSettableProperty with mutable members [ + public int ClassWithSettableProperty.Value { get; set; } ] """); } [Fact] - public async Task WhenTypeHasPropertyWithPrivateSetter_ShouldFail() + public async Task WhenTypeInheritsMutableField_ShouldFail() { - Type subject = typeof(ClassWithPrivateSettableProperty); + Type subject = typeof(ClassInheritingMutableField); async Task Act() { @@ -136,8 +124,8 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject is immutable, - but it was mutable ClassWithPrivateSettableProperty with mutable members [ - public int ClassWithPrivateSettableProperty.Value { get; private set; } + but it was mutable ClassInheritingMutableField with mutable members [ + int MutableBaseClass._value ] """); } @@ -162,10 +150,22 @@ int MutableBaseClassWithProtectedField.ProtectedValue """); } + [Theory] + [MemberData(nameof(ImmutableTypes))] + public async Task WhenTypeIsImmutable_ShouldSucceed(Type subject) + { + async Task Act() + { + await That(subject).IsImmutable(); + } + + await That(Act).DoesNotThrow(); + } + [Fact] - public async Task WhenTypeIsPositionalRecordStruct_ShouldFail() + public async Task WhenTypeIsNull_ShouldFail() { - Type subject = typeof(MutableRecordStruct); + Type? subject = null; async Task Act() { @@ -176,16 +176,14 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject is immutable, - but it was mutable MutableRecordStruct with mutable members [ - public int MutableRecordStruct.Value { get; set; } - ] + but it was """); } [Fact] - public async Task WhenTypeIsNull_ShouldFail() + public async Task WhenTypeIsPositionalRecordStruct_ShouldFail() { - Type? subject = null; + Type subject = typeof(MutableRecordStruct); async Task Act() { @@ -196,7 +194,9 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject is immutable, - but it was + but it was mutable MutableRecordStruct with mutable members [ + public int MutableRecordStruct.Value { get; set; } + ] """); } diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.IsNotImmutable.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.IsNotImmutable.Tests.cs index 8cbe94cc..6214617e 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.IsNotImmutable.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.IsNotImmutable.Tests.cs @@ -9,18 +9,6 @@ public sealed class IsNotImmutable { public sealed class Tests { - [Theory] - [MemberData(nameof(MutableTypes))] - public async Task WhenTypeIsMutable_ShouldSucceed(Type subject) - { - async Task Act() - { - await That(subject).IsNotImmutable(); - } - - await That(Act).DoesNotThrow(); - } - [Fact] public async Task WhenTypeIsImmutable_ShouldFail() { @@ -39,6 +27,18 @@ but it was immutable ImmutableClass """); } + [Theory] + [MemberData(nameof(MutableTypes))] + public async Task WhenTypeIsMutable_ShouldSucceed(Type subject) + { + async Task Act() + { + await That(subject).IsNotImmutable(); + } + + await That(Act).DoesNotThrow(); + } + [Fact] public async Task WhenTypeIsNull_ShouldFail() { diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.OnlyHasNonNullableMembers.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.OnlyHasNonNullableMembers.Tests.cs index d7485740..0591219b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.OnlyHasNonNullableMembers.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.OnlyHasNonNullableMembers.Tests.cs @@ -10,16 +10,23 @@ public sealed class OnlyHasNonNullableMembers public sealed class Tests { [Fact] - public async Task WhenTypeOnlyHasNonNullableMembers_ShouldSucceed() + public async Task WhenTypeHasMixedMembers_ShouldFail() { - Type subject = typeof(ClassWithNonNullableMembers); + Type subject = typeof(ClassWithMixedNullableMembers); async Task Act() { await That(subject).OnlyHasNonNullableMembers(); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage(""" + Expected that subject + only has non-nullable members, + but it contained nullable members [ + * + ] + """).AsWildcard(); } [Fact] @@ -58,9 +65,9 @@ but it contained nullable members [ } [Fact] - public async Task WhenTypeHasMixedMembers_ShouldFail() + public async Task WhenTypeIsNull_ShouldFail() { - Type subject = typeof(ClassWithMixedNullableMembers); + Type? subject = null; async Task Act() { @@ -71,28 +78,21 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject only has non-nullable members, - but it contained nullable members [ - * - ] - """).AsWildcard(); + but it was + """); } [Fact] - public async Task WhenTypeIsNull_ShouldFail() + public async Task WhenTypeOnlyHasNonNullableMembers_ShouldSucceed() { - Type? subject = null; + Type subject = typeof(ClassWithNonNullableMembers); async Task Act() { await That(subject).OnlyHasNonNullableMembers(); } - await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - only has non-nullable members, - but it was - """); + await That(Act).DoesNotThrow(); } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatType.OnlyHasNullableMembers.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatType.OnlyHasNullableMembers.Tests.cs index d5ee3215..5c728847 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatType.OnlyHasNullableMembers.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatType.OnlyHasNullableMembers.Tests.cs @@ -11,9 +11,9 @@ public sealed class OnlyHasNullableMembers public sealed class Tests { [Fact] - public async Task WhenTypeOnlyHasNullableMembers_ShouldSucceed() + public async Task WhenBaseTypeHasNonNullableMembers_ShouldSucceed() { - Type subject = typeof(ClassWithNullableMembers); + Type subject = typeof(DerivedClassWithNullableMembers); async Task Act() { @@ -23,6 +23,26 @@ async Task Act() await That(Act).DoesNotThrow(); } + [Fact] + public async Task WhenTypeHasMixedMembers_ShouldFail() + { + Type subject = typeof(ClassWithMixedNullableMembers); + + async Task Act() + { + await That(subject).OnlyHasNullableMembers(); + } + + await That(Act).ThrowsException() + .WithMessage(""" + Expected that subject + only has nullable members, + but it contained non-nullable members [ + * + ] + """).AsWildcard(); + } + [Fact] public async Task WhenTypeHasNoMembers_ShouldSucceed() { @@ -59,9 +79,9 @@ but it contained non-nullable members [ } [Fact] - public async Task WhenTypeHasMixedMembers_ShouldFail() + public async Task WhenTypeIsNull_ShouldFail() { - Type subject = typeof(ClassWithMixedNullableMembers); + Type? subject = null; async Task Act() { @@ -72,16 +92,14 @@ await That(Act).ThrowsException() .WithMessage(""" Expected that subject only has nullable members, - but it contained non-nullable members [ - * - ] - """).AsWildcard(); + but it was + """); } [Fact] - public async Task WhenBaseTypeHasNonNullableMembers_ShouldSucceed() + public async Task WhenTypeOnlyHasNullableMembers_ShouldSucceed() { - Type subject = typeof(DerivedClassWithNullableMembers); + Type subject = typeof(ClassWithNullableMembers); async Task Act() { @@ -110,24 +128,6 @@ but it contained non-nullable members [ ] """).AsWildcard(); } - - [Fact] - public async Task WhenTypeIsNull_ShouldFail() - { - Type? subject = null; - - async Task Act() - { - await That(subject).OnlyHasNullableMembers(); - } - - await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - only has nullable members, - but it was - """); - } } public sealed class NegatedTests diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.DependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.DependOn.Tests.cs index 313b2cae..f67ce9d9 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.DependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.DependOn.Tests.cs @@ -23,11 +23,27 @@ public async Task WhenAllTypesDependOnNamespace_ShouldSucceed() ]; async Task Act() - => await That(subject).DependOn(Layer1Namespace); + { + await That(subject).DependOn(Layer1Namespace); + } await That(Act).DoesNotThrow(); } + [Fact] + public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() + { + IEnumerable subject = [typeof(OnlyLayer1),]; + + async Task Act() + { + await That(subject).DependOn(); + } + + await That(Act).Throws() + .WithMessage("At least one namespace must be specified."); + } + [Fact] public async Task WhenSomeTypeDoesNotDependOnNamespace_ShouldFail() { @@ -38,7 +54,9 @@ public async Task WhenSomeTypeDoesNotDependOnNamespace_ShouldFail() ]; async Task Act() - => await That(subject).DependOn(Layer1Namespace); + { + await That(subject).DependOn(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -50,18 +68,6 @@ but it contained types without the dependency [ """); } - [Fact] - public async Task WhenNoNamespaceIsSpecified_ShouldThrowArgumentException() - { - IEnumerable subject = [typeof(OnlyLayer1),]; - - async Task Act() - => await That(subject).DependOn(); - - await That(Act).Throws() - .WithMessage("At least one namespace must be specified."); - } - [Fact] public async Task WhenWidenedWithOrOn_ShouldSucceed() { @@ -72,7 +78,9 @@ public async Task WhenWidenedWithOrOn_ShouldSucceed() ]; async Task Act() - => await That(subject).DependOn("Non.Existent.Namespace").OrOn(Layer1Namespace); + { + await That(subject).DependOn("Non.Existent.Namespace").OrOn(Layer1Namespace); + } await That(Act).DoesNotThrow(); } @@ -91,7 +99,9 @@ public async Task WhenAllTypesDependOnTargetCollection_ShouldSucceed() ]; async Task Act() - => await That(subject).DependOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } @@ -106,7 +116,9 @@ public async Task WhenSomeTypeDoesNotDependOnTargetCollection_ShouldFail() ]; async Task Act() - => await That(subject).DependOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" @@ -128,8 +140,10 @@ public async Task WhenWidenedWithOrOn_ShouldSucceed() ]; async Task Act() - => await That(subject).DependOn(Types.InNamespace("Non.Existent.Namespace")) + { + await That(subject).DependOn(Types.InNamespace("Non.Existent.Namespace")) .OrOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.DependOnlyOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.DependOnlyOn.Tests.cs index 7c176340..5a8c2028 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.DependOnlyOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.DependOnlyOn.Tests.cs @@ -24,13 +24,15 @@ public async Task WhenAllDependenciesAreAllowed_ShouldSucceed() ]; async Task Act() - => await That(subject).DependOnlyOn(Layer1Namespace); + { + await That(subject).DependOnlyOn(Layer1Namespace); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenSomeTypeDependsOnDisallowedNamespace_ShouldFail() + public async Task WhenAllowingAllNamespaces_ShouldSucceed() { IEnumerable subject = [ @@ -39,16 +41,11 @@ public async Task WhenSomeTypeDependsOnDisallowedNamespace_ShouldFail() ]; async Task Act() - => await That(subject).DependOnlyOn(Layer1Namespace); + { + await That(subject).DependOnlyOn(Layer1Namespace, Layer2Namespace); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - all depend only on namespace "{Layer1Namespace}", - but it contained types with disallowed dependencies [ - Layer1AndLayer2 depends on ["{Layer2Namespace}"] - ] - """); + await That(Act).DoesNotThrow(); } [Fact] @@ -61,7 +58,9 @@ public async Task WhenCollectionContainsNull_ShouldListNullWithoutViolations() ]; async Task Act() - => await That(subject).DependOnlyOn(Layer1Namespace); + { + await That(subject).DependOnlyOn(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -74,7 +73,7 @@ but it contained types with disallowed dependencies [ } [Fact] - public async Task WhenAllowingAllNamespaces_ShouldSucceed() + public async Task WhenSomeTypeDependsOnDisallowedNamespace_ShouldFail() { IEnumerable subject = [ @@ -83,9 +82,18 @@ public async Task WhenAllowingAllNamespaces_ShouldSucceed() ]; async Task Act() - => await That(subject).DependOnlyOn(Layer1Namespace, Layer2Namespace); + { + await That(subject).DependOnlyOn(Layer1Namespace); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + all depend only on namespace "{Layer1Namespace}", + but it contained types with disallowed dependencies [ + Layer1AndLayer2 depends on ["{Layer2Namespace}"] + ] + """); } } @@ -102,85 +110,95 @@ public async Task WhenAllDependenciesAreInTargetCollection_ShouldSucceed() ]; async Task Act() - => await That(subject).DependOnlyOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependOnlyOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenSomeTypeDependsOnTypeOutsideTargetCollections_ShouldFail() + public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceBecomesViolation() { IEnumerable subject = [ typeof(OnlyLayer1), - typeof(Layer1AndLayer2), + typeof(ReferencesOwnSubNamespace), ]; async Task Act() - => await That(subject).DependOnlyOn(Types.InNamespace(Layer1Namespace)); + { + await That(subject).DependOnlyOn(Types.InNamespace(Layer1Namespace)) + .ExcludingOwnSubNamespaces(); + } await That(Act).Throws() .WithMessage($""" Expected that subject all depend only on types within namespace "{Layer1Namespace}" in all loaded assemblies, but it contained types with disallowed dependencies [ - Layer1AndLayer2 depends on ["TargetB"] + ReferencesOwnSubNamespace depends on ["OwnSubTarget"] ] """); } [Fact] - public async Task WhenTargetCollectionIsEmpty_ShouldStillAllowOwnNamespaceAndFramework() + public async Task WhenSomeTypeDependsOnTypeOutsideTargetCollections_ShouldFail() { IEnumerable subject = [ - typeof(FrameworkConsumer), - typeof(ReferencesOwnNamespace), + typeof(OnlyLayer1), + typeof(Layer1AndLayer2), ]; async Task Act() - => await That(subject).DependOnlyOn(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject).DependOnlyOn(Types.InNamespace(Layer1Namespace)); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + all depend only on types within namespace "{Layer1Namespace}" in all loaded assemblies, + but it contained types with disallowed dependencies [ + Layer1AndLayer2 depends on ["TargetB"] + ] + """); } [Fact] - public async Task WhenWidenedWithOrOn_ShouldSucceed() + public async Task WhenTargetCollectionIsEmpty_ShouldStillAllowOwnNamespaceAndFramework() { IEnumerable subject = [ - typeof(OnlyLayer1), - typeof(Layer1AndLayer2), + typeof(FrameworkConsumer), + typeof(ReferencesOwnNamespace), ]; async Task Act() - => await That(subject).DependOnlyOn(Types.InNamespace(Layer1Namespace)) - .OrOn(Types.InNamespace(Layer2Namespace)); + { + await That(subject).DependOnlyOn(Types.InNamespace("Non.Existent.Namespace")); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceBecomesViolation() + public async Task WhenWidenedWithOrOn_ShouldSucceed() { IEnumerable subject = [ typeof(OnlyLayer1), - typeof(ReferencesOwnSubNamespace), + typeof(Layer1AndLayer2), ]; async Task Act() - => await That(subject).DependOnlyOn(Types.InNamespace(Layer1Namespace)) - .ExcludingOwnSubNamespaces(); + { + await That(subject).DependOnlyOn(Types.InNamespace(Layer1Namespace)) + .OrOn(Types.InNamespace(Layer2Namespace)); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - all depend only on types within namespace "{Layer1Namespace}" in all loaded assemblies, - but it contained types with disallowed dependencies [ - ReferencesOwnSubNamespace depends on ["OwnSubTarget"] - ] - """); + await That(Act).DoesNotThrow(); } } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.DoNotDependOn.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.DoNotDependOn.Tests.cs index b0fb33f7..86fdb9ff 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.DoNotDependOn.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.DoNotDependOn.Tests.cs @@ -14,62 +14,68 @@ public sealed class DoNotDependOn public sealed class Tests { [Fact] - public async Task WhenNoTypeDependsOnNamespace_ShouldSucceed() + public async Task WhenCollectionContainsNull_ShouldFail() { + // A null item's dependencies cannot be verified, so it fails the negative assertion just + // like it fails DependOn and DependOnlyOn, instead of slipping through. IEnumerable subject = [ - typeof(ViaField), typeof(OnlyLayer1), + null, ]; async Task Act() - => await That(subject).DoNotDependOn(Layer2Namespace); + { + await That(subject).DoNotDependOn(Layer2Namespace); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + all do not depend on namespace "{Layer2Namespace}", + but it contained types with the dependency [ + + ] + """); } [Fact] - public async Task WhenSomeTypeDependsOnNamespace_ShouldFail() + public async Task WhenNoTypeDependsOnNamespace_ShouldSucceed() { IEnumerable subject = [ + typeof(ViaField), typeof(OnlyLayer1), - typeof(Layer1AndLayer2), ]; async Task Act() - => await That(subject).DoNotDependOn(Layer2Namespace); + { + await That(subject).DoNotDependOn(Layer2Namespace); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - all do not depend on namespace "{Layer2Namespace}", - but it contained types with the dependency [ - Layer1AndLayer2 - ] - """); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenCollectionContainsNull_ShouldFail() + public async Task WhenSomeTypeDependsOnNamespace_ShouldFail() { - // A null item's dependencies cannot be verified, so it fails the negative assertion just - // like it fails DependOn and DependOnlyOn, instead of slipping through. IEnumerable subject = [ typeof(OnlyLayer1), - null, + typeof(Layer1AndLayer2), ]; async Task Act() - => await That(subject).DoNotDependOn(Layer2Namespace); + { + await That(subject).DoNotDependOn(Layer2Namespace); + } await That(Act).Throws() .WithMessage($""" Expected that subject all do not depend on namespace "{Layer2Namespace}", but it contained types with the dependency [ - + Layer1AndLayer2 ] """); } @@ -87,7 +93,9 @@ public async Task WhenNoTypeDependsOnTargetCollection_ShouldSucceed() ]; async Task Act() - => await That(subject).DoNotDependOn(Types.InNamespace(Layer2Namespace)); + { + await That(subject).DoNotDependOn(Types.InNamespace(Layer2Namespace)); + } await That(Act).DoesNotThrow(); } @@ -102,7 +110,9 @@ public async Task WhenSomeTypeDependsOnTargetCollection_ShouldFail() ]; async Task Act() - => await That(subject).DoNotDependOn(Types.InNamespace(Layer2Namespace)); + { + await That(subject).DoNotDependOn(Types.InNamespace(Layer2Namespace)); + } await That(Act).Throws() .WithMessage($""" @@ -125,7 +135,9 @@ public async Task WhenTargetCollectionIsEmpty_ShouldSucceedTrivially() ]; async Task Act() - => await That(subject).DoNotDependOn(Types.InNamespace("Non.Existent.Namespace")); + { + await That(subject).DoNotDependOn(Types.InNamespace("Non.Existent.Namespace")); + } await That(Act).DoesNotThrow(); } @@ -139,8 +151,10 @@ public async Task WhenWidenedWithOrOn_ShouldFailIfAnyMatches() ]; async Task Act() - => await That(subject).DoNotDependOn(Types.InNamespace(Layer2Namespace)) + { + await That(subject).DoNotDependOn(Types.InNamespace(Layer2Namespace)) .OrOn(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws(); } diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveDependenciesOutside.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveDependenciesOutside.Tests.cs index a429f2d7..1eece411 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveDependenciesOutside.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveDependenciesOutside.Tests.cs @@ -17,40 +17,43 @@ public sealed class HaveDependenciesOutside public sealed class Tests { [Fact] - public async Task WhenAllTypesHaveDependenciesOutside_ShouldSucceed() + public async Task WhenAllowingAllNamespaces_ShouldFail() { IEnumerable subject = [ typeof(Layer1AndLayer2), - typeof(OnlyLayer2), ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Layer1Namespace); + { + await That(subject).HaveDependenciesOutside(Layer1Namespace, Layer2Namespace); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + all have dependencies outside namespace "{Layer1Namespace}" or "{Layer2Namespace}", + but it contained types depending only on the allowed namespaces [ + Layer1AndLayer2 + ] + """); } [Fact] - public async Task WhenSomeTypeDependsOnlyOnAllowedNamespaces_ShouldFail() + public async Task WhenAllTypesHaveDependenciesOutside_ShouldSucceed() { IEnumerable subject = [ typeof(Layer1AndLayer2), - typeof(OnlyLayer1), + typeof(OnlyLayer2), ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Layer1Namespace); + { + await That(subject).HaveDependenciesOutside(Layer1Namespace); + } - await That(Act).Throws() - .WithMessage($""" - Expected that subject - all have dependencies outside namespace "{Layer1Namespace}", - but it contained types depending only on the allowed namespaces [ - OnlyLayer1 - ] - """); + await That(Act).DoesNotThrow(); } [Fact] @@ -63,7 +66,9 @@ public async Task WhenCollectionContainsNull_ShouldListNull() ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Layer1Namespace); + { + await That(subject).HaveDependenciesOutside(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -76,22 +81,25 @@ but it contained types depending only on the allowed namespaces [ } [Fact] - public async Task WhenAllowingAllNamespaces_ShouldFail() + public async Task WhenSomeTypeDependsOnlyOnAllowedNamespaces_ShouldFail() { IEnumerable subject = [ typeof(Layer1AndLayer2), + typeof(OnlyLayer1), ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Layer1Namespace, Layer2Namespace); + { + await That(subject).HaveDependenciesOutside(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" Expected that subject - all have dependencies outside namespace "{Layer1Namespace}" or "{Layer2Namespace}", + all have dependencies outside namespace "{Layer1Namespace}", but it contained types depending only on the allowed namespaces [ - Layer1AndLayer2 + OnlyLayer1 ] """); } @@ -106,7 +114,9 @@ public async Task WhenAsyncEnumerableTypesHaveDependenciesOutside_ShouldSucceed( }.ToTestAsyncEnumerable(); async Task Act() - => await That(subject).HaveDependenciesOutside(Layer1Namespace); + { + await That(subject).HaveDependenciesOutside(Layer1Namespace); + } await That(Act).DoesNotThrow(); } @@ -120,7 +130,9 @@ public async Task WhenAsyncEnumerableContainsTypeDependingOnlyOnAllowedNamespace }.ToTestAsyncEnumerable(); async Task Act() - => await That(subject).HaveDependenciesOutside(Layer1Namespace); + { + await That(subject).HaveDependenciesOutside(Layer1Namespace); + } await That(Act).Throws() .WithMessage($""" @@ -146,111 +158,167 @@ public async Task WhenAllTypesHaveDependenciesOutsideTargetCollection_ShouldSucc ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenSomeTypeDependsOnlyOnTargetCollections_ShouldFail() + public async Task WhenCollectionContainsNull_ShouldListNull() { IEnumerable subject = [ typeof(Layer1AndLayer2), - typeof(OnlyLayer1), + null, ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" Expected that subject all have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, but it contained types depending only on the allowed types [ - OnlyLayer1 + ] """); } [Fact] - public async Task WhenCollectionContainsNull_ShouldListNull() + public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceCountsAsOutside() + { + IEnumerable subject = + [ + typeof(ReferencesOwnSubNamespace), + ]; + + async Task Act() + { + await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)) + .ExcludingOwnSubNamespaces(); + } + + await That(Act).DoesNotThrow(); + } + + [Fact] + public async Task WhenNegated_ShouldFailWhenAllTypesHaveDependenciesOutside() { IEnumerable subject = [ typeof(Layer1AndLayer2), - null, + typeof(OnlyLayer2), ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject) + .DoesNotComplyWith(they => they.HaveDependenciesOutside(Types.InNamespace(Layer1Namespace))); + } await That(Act).Throws() .WithMessage($""" Expected that subject - all have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, - but it contained types depending only on the allowed types [ - + not all have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, + but it only contained types with dependencies outside the allowed types [ + Layer1AndLayer2 depends on ["TargetB"], + OnlyLayer2 depends on ["TargetB"] ] """); } [Fact] - public async Task WhenWidenedWithOrOn_ShouldFail() + public async Task WhenNegated_ShouldSucceedWhenSomeTypeDependsOnlyOnTargetCollections() { IEnumerable subject = [ typeof(Layer1AndLayer2), + typeof(OnlyLayer1), ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)) - .OrOn(Types.InNamespace(Layer2Namespace)); + { + await That(subject) + .DoesNotComplyWith(they => they.HaveDependenciesOutside(Types.InNamespace(Layer1Namespace))); + } + + await That(Act).DoesNotThrow(); + } + + [Fact] + public async Task WhenReferencingOwnSubNamespace_ShouldFailByDefault() + { + IEnumerable subject = + [ + typeof(ReferencesOwnSubNamespace), + ]; + + async Task Act() + { + await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" Expected that subject - all have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies or types within namespace "{Layer2Namespace}" in all loaded assemblies, + all have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, but it contained types depending only on the allowed types [ - Layer1AndLayer2 + ReferencesOwnSubNamespace ] """); } [Fact] - public async Task WhenReferencingOwnSubNamespace_ShouldFailByDefault() + public async Task WhenSomeTypeDependsOnlyOnTargetCollections_ShouldFail() { IEnumerable subject = [ - typeof(ReferencesOwnSubNamespace), + typeof(Layer1AndLayer2), + typeof(OnlyLayer1), ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" Expected that subject all have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, but it contained types depending only on the allowed types [ - ReferencesOwnSubNamespace + OnlyLayer1 ] """); } [Fact] - public async Task WhenExcludingOwnSubNamespaces_OwnSubNamespaceCountsAsOutside() + public async Task WhenWidenedWithOrOn_ShouldFail() { IEnumerable subject = [ - typeof(ReferencesOwnSubNamespace), + typeof(Layer1AndLayer2), ]; async Task Act() - => await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)) - .ExcludingOwnSubNamespaces(); + { + await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)) + .OrOn(Types.InNamespace(Layer2Namespace)); + } - await That(Act).DoesNotThrow(); + await That(Act).Throws() + .WithMessage($""" + Expected that subject + all have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies or types within namespace "{Layer2Namespace}" in all loaded assemblies, + but it contained types depending only on the allowed types [ + Layer1AndLayer2 + ] + """); } #if NET8_0_OR_GREATER @@ -263,7 +331,9 @@ public async Task WhenAsyncEnumerableTypesHaveDependenciesOutsideTargetCollectio }.ToTestAsyncEnumerable(); async Task Act() - => await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } @@ -277,7 +347,9 @@ public async Task WhenAsyncEnumerableContainsTypeDependingOnlyOnTargetCollection }.ToTestAsyncEnumerable(); async Task Act() - => await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + { + await That(subject).HaveDependenciesOutside(Types.InNamespace(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" @@ -289,25 +361,12 @@ but it contained types depending only on the allowed types [ """); } #endif + } + public sealed class NegatedTests + { [Fact] - public async Task WhenNegated_ShouldSucceedWhenSomeTypeDependsOnlyOnTargetCollections() - { - IEnumerable subject = - [ - typeof(Layer1AndLayer2), - typeof(OnlyLayer1), - ]; - - async Task Act() - => await That(subject) - .DoesNotComplyWith(they => they.HaveDependenciesOutside(Types.InNamespace(Layer1Namespace))); - - await That(Act).DoesNotThrow(); - } - - [Fact] - public async Task WhenNegated_ShouldFailWhenAllTypesHaveDependenciesOutside() + public async Task WhenAllTypesHaveDependenciesOutside_ShouldFail() { IEnumerable subject = [ @@ -316,23 +375,22 @@ public async Task WhenNegated_ShouldFailWhenAllTypesHaveDependenciesOutside() ]; async Task Act() - => await That(subject) - .DoesNotComplyWith(they => they.HaveDependenciesOutside(Types.InNamespace(Layer1Namespace))); + { + await That(subject) + .DoesNotComplyWith(they => they.HaveDependenciesOutside(Layer1Namespace)); + } await That(Act).Throws() .WithMessage($""" Expected that subject - not all have dependencies outside types within namespace "{Layer1Namespace}" in all loaded assemblies, - but it only contained types with dependencies outside the allowed types [ - Layer1AndLayer2 depends on ["TargetB"], - OnlyLayer2 depends on ["TargetB"] + not all have dependencies outside namespace "{Layer1Namespace}", + but it only contained types with dependencies outside the allowed namespaces [ + Layer1AndLayer2 depends on ["{Layer2Namespace}"], + OnlyLayer2 depends on ["{Layer2Namespace}"] ] """); } - } - public sealed class NegatedTests - { [Fact] public async Task WhenSomeTypeDependsOnlyOnAllowedNamespaces_ShouldSucceed() { @@ -343,35 +401,13 @@ public async Task WhenSomeTypeDependsOnlyOnAllowedNamespaces_ShouldSucceed() ]; async Task Act() - => await That(subject) + { + await That(subject) .DoesNotComplyWith(they => they.HaveDependenciesOutside(Layer1Namespace)); + } await That(Act).DoesNotThrow(); } - - [Fact] - public async Task WhenAllTypesHaveDependenciesOutside_ShouldFail() - { - IEnumerable subject = - [ - typeof(Layer1AndLayer2), - typeof(OnlyLayer2), - ]; - - async Task Act() - => await That(subject) - .DoesNotComplyWith(they => they.HaveDependenciesOutside(Layer1Namespace)); - - await That(Act).Throws() - .WithMessage($""" - Expected that subject - not all have dependencies outside namespace "{Layer1Namespace}", - but it only contained types with dependencies outside the allowed namespaces [ - Layer1AndLayer2 depends on ["{Layer2Namespace}"], - OnlyLayer2 depends on ["{Layer2Namespace}"] - ] - """); - } } } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveNoDependencyCycles.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveNoDependencyCycles.Tests.cs index 4dbb1bac..36436f52 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveNoDependencyCycles.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveNoDependencyCycles.Tests.cs @@ -35,76 +35,87 @@ public sealed class HaveNoDependencyCycles public sealed class Tests { [Fact] - public async Task WhenSetIsAcyclic_ShouldSucceed() + public async Task WhenCollectionContainsNull_ShouldIgnoreNull() { IEnumerable subject = [ typeof(HighType), + null, typeof(LowType), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenCollectionContainsNull_ShouldIgnoreNull() + public async Task WhenDependencyTargetIsOutOfSet_ShouldNotCreateAnEdge() { + // Order references Two.Billing, but Billing is not part of the analyzed set, so no edge is created. IEnumerable subject = [ - typeof(HighType), - null, - typeof(LowType), + typeof(TwoOrders.Order), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenTwoNamespacesFormCycle_ShouldFailAndListBothNamespaces() + public async Task WhenGlobalNamespaceIsInACycle_ShouldRenderGlobalNamespace() { IEnumerable subject = [ - typeof(TwoOrders.Order), - typeof(TwoBilling.Invoice), + typeof(GlobalCycleType), + typeof(GlobalRingType), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).Throws() .WithMessage($""" Expected that subject have no dependency cycles, but it had a dependency cycle: - {Prefix}.Two.Billing -> {Prefix}.Two.Orders -> {Prefix}.Two.Billing + -> {Prefix}.GlobalRing -> """); } [Fact] - public async Task WhenThreeNamespacesFormCycle_ShouldDetectTheLongerCycle() + public async Task WhenMultipleCyclesExist_ShouldListAllOfThem() { IEnumerable subject = [ typeof(ThreeA.TypeA), typeof(ThreeB.TypeB), typeof(ThreeC.TypeC), + typeof(TwoOrders.Order), + typeof(TwoBilling.Invoice), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).Throws() .WithMessage($""" Expected that subject have no dependency cycles, - but it had a dependency cycle: + but it had 2 dependency cycles: {Prefix}.Three.A -> {Prefix}.Three.B -> {Prefix}.Three.C -> {Prefix}.Three.A + {Prefix}.Two.Billing -> {Prefix}.Two.Orders -> {Prefix}.Two.Billing """); } @@ -117,81 +128,88 @@ public async Task WhenOnlyDependingOnFrameworkTypes_ShouldSucceed() ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenUsingNamespaceSource_ShouldDetectCycle() - { - async Task Act() - => await That(Types.InNamespace($"{Prefix}.Two")).HaveNoDependencyCycles(); - - await That(Act).Throws() - .WithMessage("*had a dependency cycle*").AsWildcard(); - } - - [Fact] - public async Task WhenDependencyTargetIsOutOfSet_ShouldNotCreateAnEdge() + public async Task WhenSetIsAcyclic_ShouldSucceed() { - // Order references Two.Billing, but Billing is not part of the analyzed set, so no edge is created. IEnumerable subject = [ - typeof(TwoOrders.Order), + typeof(HighType), + typeof(LowType), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenMultipleCyclesExist_ShouldListAllOfThem() + public async Task WhenThreeNamespacesFormCycle_ShouldDetectTheLongerCycle() { IEnumerable subject = [ typeof(ThreeA.TypeA), typeof(ThreeB.TypeB), typeof(ThreeC.TypeC), - typeof(TwoOrders.Order), - typeof(TwoBilling.Invoice), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).Throws() .WithMessage($""" Expected that subject have no dependency cycles, - but it had 2 dependency cycles: + but it had a dependency cycle: {Prefix}.Three.A -> {Prefix}.Three.B -> {Prefix}.Three.C -> {Prefix}.Three.A - {Prefix}.Two.Billing -> {Prefix}.Two.Orders -> {Prefix}.Two.Billing """); } [Fact] - public async Task WhenGlobalNamespaceIsInACycle_ShouldRenderGlobalNamespace() + public async Task WhenTwoNamespacesFormCycle_ShouldFailAndListBothNamespaces() { IEnumerable subject = [ - typeof(GlobalCycleType), - typeof(GlobalRingType), + typeof(TwoOrders.Order), + typeof(TwoBilling.Invoice), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).Throws() .WithMessage($""" Expected that subject have no dependency cycles, but it had a dependency cycle: - -> {Prefix}.GlobalRing -> + {Prefix}.Two.Billing -> {Prefix}.Two.Orders -> {Prefix}.Two.Billing """); } + + [Fact] + public async Task WhenUsingNamespaceSource_ShouldDetectCycle() + { + async Task Act() + { + await That(Types.InNamespace($"{Prefix}.Two")).HaveNoDependencyCycles(); + } + + await That(Act).Throws() + .WithMessage("*had a dependency cycle*").AsWildcard(); + } } public sealed class NegatedTests @@ -206,7 +224,9 @@ public async Task WhenSetHasCycle_ShouldSucceed() ]; async Task Act() - => await That(subject).DoesNotComplyWith(they => they.HaveNoDependencyCycles()); + { + await That(subject).DoesNotComplyWith(they => they.HaveNoDependencyCycles()); + } await That(Act).DoesNotThrow(); } @@ -221,7 +241,9 @@ public async Task WhenSetIsAcyclic_ShouldFail() ]; async Task Act() - => await That(subject).DoesNotComplyWith(they => they.HaveNoDependencyCycles()); + { + await That(subject).DoesNotComplyWith(they => they.HaveNoDependencyCycles()); + } await That(Act).Throws() .WithMessage(""" @@ -234,22 +256,6 @@ but it had none public sealed class ResolverTests { - [Fact] - public async Task WithSignatureResolver_ABodyOnlyEdge_ShouldNotFormACycle() - { - IEnumerable subject = - [ - typeof(ResolverA.ResolverA), - typeof(ResolverB.ResolverB), - ]; - - async Task Act() - => await That(subject).HaveNoDependencyCycles(); - - // Only the signature edge A -> B is visible, so there is no cycle. - await That(Act).DoesNotThrow(); - } - [Fact] public async Task WhenAResolverSuppliesTheReverseEdge_ShouldDetectTheCycle() { @@ -269,139 +275,151 @@ public async Task WhenAResolverSuppliesTheReverseEdge_ShouldDetectTheCycle() : builtin(type))) { async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).Throws() .WithMessage("*had a dependency cycle*").AsWildcard(); } } - } - - public sealed class SliceTests - { - private const string Prefix = HaveNoDependencyCycles.Prefix; [Fact] - public async Task WhenSubNamespacesShareSlice_ShouldCollapseAndSucceed() + public async Task WithSignatureResolver_ABodyOnlyEdge_ShouldNotFormACycle() { IEnumerable subject = [ - typeof(SlicedPart1.Part1Type), - typeof(SlicedPart2.Part2Type), + typeof(ResolverA.ResolverA), + typeof(ResolverB.ResolverB), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles($"{Prefix}.Sliced"); + { + await That(subject).HaveNoDependencyCycles(); + } + // Only the signature edge A -> B is visible, so there is no cycle. await That(Act).DoesNotThrow(); } + } + public sealed class SliceTests + { [Fact] - public async Task WhenNotGrouped_ShouldDetectTheSubNamespaceCycle() + public async Task WhenGroupingCollapsesNamespacesIntoSlices_ShouldReportSliceNames() { IEnumerable subject = [ - typeof(SlicedPart1.Part1Type), - typeof(SlicedPart2.Part2Type), + typeof(GroupedOrdersDomain.OrderDomain), + typeof(GroupedOrdersApi.OrderApi), + typeof(GroupedBilling.Invoice), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles($"{Prefix}.Grouped"); + } await That(Act).Throws() .WithMessage($""" Expected that subject - have no dependency cycles, + have no dependency cycles when grouped into slices under "{Prefix}.Grouped", but it had a dependency cycle: - {Prefix}.Sliced.Module.Part1 -> {Prefix}.Sliced.Module.Part2 -> {Prefix}.Sliced.Module.Part1 + {Prefix}.Grouped.Billing -> {Prefix}.Grouped.Orders -> {Prefix}.Grouped.Billing """); } [Fact] - public async Task WhenGroupingCollapsesNamespacesIntoSlices_ShouldReportSliceNames() + public async Task WhenNotGrouped_ShouldDetectTheSubNamespaceCycle() { IEnumerable subject = [ - typeof(GroupedOrdersDomain.OrderDomain), - typeof(GroupedOrdersApi.OrderApi), - typeof(GroupedBilling.Invoice), + typeof(SlicedPart1.Part1Type), + typeof(SlicedPart2.Part2Type), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles($"{Prefix}.Grouped"); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).Throws() .WithMessage($""" Expected that subject - have no dependency cycles when grouped into slices under "{Prefix}.Grouped", + have no dependency cycles, but it had a dependency cycle: - {Prefix}.Grouped.Billing -> {Prefix}.Grouped.Orders -> {Prefix}.Grouped.Billing + {Prefix}.Sliced.Module.Part1 -> {Prefix}.Sliced.Module.Part2 -> {Prefix}.Sliced.Module.Part1 """); } - } - - public sealed class SubNamespaceTests - { - private const string Prefix = HaveNoDependencyCycles.Prefix; [Fact] - public async Task WhenParentAndChildReferenceEachOther_ShouldSucceedByDefault() + public async Task WhenSubNamespacesShareSlice_ShouldCollapseAndSucceed() { - // By default a namespace and its sub-namespaces are one family, so the references do not form a cycle. IEnumerable subject = [ - typeof(FamilyParent), - typeof(FamilyChild), + typeof(SlicedPart1.Part1Type), + typeof(SlicedPart2.Part2Type), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles($"{Prefix}.Sliced"); + } await That(Act).DoesNotThrow(); } + private const string Prefix = HaveNoDependencyCycles.Prefix; + } + + public sealed class SubNamespaceTests + { [Fact] - public async Task WhenExcludingSubNamespaces_ShouldDetectTheFamilyCycle() + public async Task WhenCycleReentersFamilyThroughSubNamespace_ShouldDetectItByDefault() { + // Parent -> Other -> Parent.Child: because Parent and Parent.Child are one node by default, this is a + // Parent <-> Other cycle. A mere edge-suppression (that did not merge the nodes) would miss it. IEnumerable subject = [ - typeof(FamilyParent), - typeof(FamilyChild), + typeof(IndirectParent.IndirectParentType), + typeof(IndirectParentChild.IndirectChildType), + typeof(IndirectOther.IndirectOtherType), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles().ExcludingSubNamespaces(); + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).Throws() .WithMessage($""" Expected that subject have no dependency cycles, but it had a dependency cycle: - {Prefix}.Family -> {Prefix}.Family.Inner -> {Prefix}.Family + {Prefix}.Indirect.Other -> {Prefix}.Indirect.Parent -> {Prefix}.Indirect.Other """); } [Fact] - public async Task WhenCycleReentersFamilyThroughSubNamespace_ShouldDetectItByDefault() + public async Task WhenExcludingSubNamespaces_ShouldDetectTheFamilyCycle() { - // Parent -> Other -> Parent.Child: because Parent and Parent.Child are one node by default, this is a - // Parent <-> Other cycle. A mere edge-suppression (that did not merge the nodes) would miss it. IEnumerable subject = [ - typeof(IndirectParent.IndirectParentType), - typeof(IndirectParentChild.IndirectChildType), - typeof(IndirectOther.IndirectOtherType), + typeof(FamilyParent), + typeof(FamilyChild), ]; async Task Act() - => await That(subject).HaveNoDependencyCycles(); + { + await That(subject).HaveNoDependencyCycles().ExcludingSubNamespaces(); + } await That(Act).Throws() .WithMessage($""" Expected that subject have no dependency cycles, but it had a dependency cycle: - {Prefix}.Indirect.Other -> {Prefix}.Indirect.Parent -> {Prefix}.Indirect.Other + {Prefix}.Family -> {Prefix}.Family.Inner -> {Prefix}.Family """); } @@ -418,10 +436,32 @@ public async Task WhenExcludingSubNamespaces_TheReentryLandsOnAnotherNode_Should ]; async Task Act() - => await That(subject).HaveNoDependencyCycles().ExcludingSubNamespaces(); + { + await That(subject).HaveNoDependencyCycles().ExcludingSubNamespaces(); + } + + await That(Act).DoesNotThrow(); + } + + [Fact] + public async Task WhenParentAndChildReferenceEachOther_ShouldSucceedByDefault() + { + // By default a namespace and its sub-namespaces are one family, so the references do not form a cycle. + IEnumerable subject = + [ + typeof(FamilyParent), + typeof(FamilyChild), + ]; + + async Task Act() + { + await That(subject).HaveNoDependencyCycles(); + } await That(Act).DoesNotThrow(); } + + private const string Prefix = HaveNoDependencyCycles.Prefix; } } } diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveOperator.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveOperator.Tests.cs index 466a1ef0..34620ba9 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveOperator.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.HaveOperator.Tests.cs @@ -173,7 +173,7 @@ async Task Act() } [Fact] - public async Task WhenSomeTypeHasTheOperatorWithTypeOperand_ShouldFail() + public async Task WhenSomeTypeHasTheOperatorWithOperand_ShouldFail() { IEnumerable subject = new[] { @@ -182,21 +182,21 @@ public async Task WhenSomeTypeHasTheOperatorWithTypeOperand_ShouldFail() async Task Act() { - await That(subject).DoNotHaveOperator(Operator.Addition, typeof(Money)); + await That(subject).DoNotHaveOperator(Operator.Addition); } await That(Act).ThrowsException() .WithMessage($""" Expected that subject - all do not have the operator Addition with operand {Formatter.Format(typeof(Money))}, - but it contained types with the operator Addition with operand {Formatter.Format(typeof(Money))} [ + all do not have the operator Addition with operand {Formatter.Format(typeof(int))}, + but it contained types with the operator Addition with operand {Formatter.Format(typeof(int))} [ * ] """).AsWildcard(); } [Fact] - public async Task WhenSomeTypeHasTheOperatorWithOperand_ShouldFail() + public async Task WhenSomeTypeHasTheOperatorWithTypeOperand_ShouldFail() { IEnumerable subject = new[] { @@ -205,14 +205,14 @@ public async Task WhenSomeTypeHasTheOperatorWithOperand_ShouldFail() async Task Act() { - await That(subject).DoNotHaveOperator(Operator.Addition); + await That(subject).DoNotHaveOperator(Operator.Addition, typeof(Money)); } await That(Act).ThrowsException() .WithMessage($""" Expected that subject - all do not have the operator Addition with operand {Formatter.Format(typeof(int))}, - but it contained types with the operator Addition with operand {Formatter.Format(typeof(int))} [ + all do not have the operator Addition with operand {Formatter.Format(typeof(Money))}, + but it contained types with the operator Addition with operand {Formatter.Format(typeof(Money))} [ * ] """).AsWildcard(); @@ -320,42 +320,42 @@ async Task Act() } [Fact] - public async Task WhenSomeTypeDoesNotHaveTheOperator_ShouldFail() + public async Task WhenNoTypeHasTheOperatorWithOperand_ShouldSucceed() { IAsyncEnumerable subject = new[] { - typeof(Money), typeof(ClassWithoutOperators), + typeof(Money), }.ToTestAsyncEnumerable(); async Task Act() { - await That(subject).HaveOperator(Operator.Addition); + await That(subject).DoNotHaveOperator(Operator.Addition); } - await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - all have the operator Addition, - but it contained types without the operator Addition [ - * - ] - """).AsWildcard(); + await That(Act).DoesNotThrow(); } [Fact] - public async Task WhenNoTypeHasTheOperatorWithOperand_ShouldSucceed() + public async Task WhenSomeTypeDoesNotHaveTheOperator_ShouldFail() { IAsyncEnumerable subject = new[] { - typeof(Money), + typeof(Money), typeof(ClassWithoutOperators), }.ToTestAsyncEnumerable(); async Task Act() { - await That(subject).DoNotHaveOperator(Operator.Addition); + await That(subject).HaveOperator(Operator.Addition); } - await That(Act).DoesNotThrow(); + await That(Act).ThrowsException() + .WithMessage(""" + Expected that subject + all have the operator Addition, + but it contained types without the operator Addition [ + * + ] + """).AsWildcard(); } [Fact] diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.OnlyHaveNonNullableMembers.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.OnlyHaveNonNullableMembers.Tests.cs index 012ce921..b0152a73 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.OnlyHaveNonNullableMembers.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.OnlyHaveNonNullableMembers.Tests.cs @@ -32,15 +32,13 @@ async Task Act() } [Fact] - public async Task WhenTypesContainTypeWithNullableMembers_ShouldFail() + public async Task WhenCollectionContainsNull_ShouldListNullWithoutViolations() { IEnumerable subject = [ typeof(ClassWithNonNullableMembers), - typeof(ClassWithSingleNullableProperty), + null, ]; - PropertyInfo property = typeof(ClassWithSingleNullableProperty) - .GetProperty(nameof(ClassWithSingleNullableProperty.NullableProperty))!; async Task Act() { @@ -48,23 +46,25 @@ async Task Act() } await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - only have non-nullable members, - but it contained types with nullable members [ - ClassWithSingleNullableProperty with nullable members [{Formatter.Format(property)}] - ] - """); + .WithMessage(""" + Expected that subject + only have non-nullable members, + but it contained types with nullable members [ + + ] + """); } [Fact] - public async Task WhenCollectionContainsNull_ShouldListNullWithoutViolations() + public async Task WhenTypesContainTypeWithNullableMembers_ShouldFail() { IEnumerable subject = [ typeof(ClassWithNonNullableMembers), - null, + typeof(ClassWithSingleNullableProperty), ]; + PropertyInfo property = typeof(ClassWithSingleNullableProperty) + .GetProperty(nameof(ClassWithSingleNullableProperty.NullableProperty))!; async Task Act() { @@ -72,13 +72,13 @@ async Task Act() } await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - only have non-nullable members, - but it contained types with nullable members [ - - ] - """); + .WithMessage($""" + Expected that subject + only have non-nullable members, + but it contained types with nullable members [ + ClassWithSingleNullableProperty with nullable members [{Formatter.Format(property)}] + ] + """); } } @@ -133,8 +133,7 @@ public async Task WhenAllTypesOnlyHaveNonNullableMembers_ShouldSucceed() { IAsyncEnumerable subject = new[] { - typeof(ClassWithNonNullableMembers), - typeof(ClassWithSingleNonNullableProperty), + typeof(ClassWithNonNullableMembers), typeof(ClassWithSingleNonNullableProperty), } .ToTestAsyncEnumerable(); @@ -151,8 +150,7 @@ public async Task WhenTypesContainTypeWithNullableMembers_ShouldFail() { IAsyncEnumerable subject = new[] { - typeof(ClassWithNonNullableMembers), - typeof(ClassWithSingleNullableProperty), + typeof(ClassWithNonNullableMembers), typeof(ClassWithSingleNullableProperty), } .ToTestAsyncEnumerable(); diff --git a/Tests/aweXpect.Reflection.Tests/ThatTypes.OnlyHaveNullableMembers.Tests.cs b/Tests/aweXpect.Reflection.Tests/ThatTypes.OnlyHaveNullableMembers.Tests.cs index 4bc524ea..0d17f67b 100644 --- a/Tests/aweXpect.Reflection.Tests/ThatTypes.OnlyHaveNullableMembers.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/ThatTypes.OnlyHaveNullableMembers.Tests.cs @@ -32,15 +32,13 @@ async Task Act() } [Fact] - public async Task WhenTypesContainTypeWithNonNullableMembers_ShouldFail() + public async Task WhenCollectionContainsNull_ShouldListNullWithoutViolations() { IEnumerable subject = [ typeof(ClassWithNullableMembers), - typeof(ClassWithSingleNonNullableProperty), + null, ]; - PropertyInfo property = typeof(ClassWithSingleNonNullableProperty) - .GetProperty(nameof(ClassWithSingleNonNullableProperty.NonNullableProperty))!; async Task Act() { @@ -48,13 +46,13 @@ async Task Act() } await That(Act).ThrowsException() - .WithMessage($""" - Expected that subject - only have nullable members, - but it contained types with non-nullable members [ - ClassWithSingleNonNullableProperty with non-nullable members [{Formatter.Format(property)}] - ] - """); + .WithMessage(""" + Expected that subject + only have nullable members, + but it contained types with non-nullable members [ + + ] + """); } [Fact] @@ -85,13 +83,15 @@ but it contained types with non-nullable members [ } [Fact] - public async Task WhenCollectionContainsNull_ShouldListNullWithoutViolations() + public async Task WhenTypesContainTypeWithNonNullableMembers_ShouldFail() { IEnumerable subject = [ typeof(ClassWithNullableMembers), - null, + typeof(ClassWithSingleNonNullableProperty), ]; + PropertyInfo property = typeof(ClassWithSingleNonNullableProperty) + .GetProperty(nameof(ClassWithSingleNonNullableProperty.NonNullableProperty))!; async Task Act() { @@ -99,13 +99,13 @@ async Task Act() } await That(Act).ThrowsException() - .WithMessage(""" - Expected that subject - only have nullable members, - but it contained types with non-nullable members [ - - ] - """); + .WithMessage($""" + Expected that subject + only have nullable members, + but it contained types with non-nullable members [ + ClassWithSingleNonNullableProperty with non-nullable members [{Formatter.Format(property)}] + ] + """); } } @@ -160,8 +160,7 @@ public async Task WhenAllTypesOnlyHaveNullableMembers_ShouldSucceed() { IAsyncEnumerable subject = new[] { - typeof(ClassWithNullableMembers), - typeof(ClassWithSingleNullableProperty), + typeof(ClassWithNullableMembers), typeof(ClassWithSingleNullableProperty), } .ToTestAsyncEnumerable(); @@ -178,8 +177,7 @@ public async Task WhenTypesContainTypeWithNonNullableMembers_ShouldFail() { IAsyncEnumerable subject = new[] { - typeof(ClassWithNullableMembers), - typeof(ClassWithSingleNonNullableProperty), + typeof(ClassWithNullableMembers), typeof(ClassWithSingleNonNullableProperty), } .ToTestAsyncEnumerable(); diff --git a/Tests/aweXpect.Reflection.Tests/TypesTests.cs b/Tests/aweXpect.Reflection.Tests/TypesTests.cs index e4372f18..2deba1fc 100644 --- a/Tests/aweXpect.Reflection.Tests/TypesTests.cs +++ b/Tests/aweXpect.Reflection.Tests/TypesTests.cs @@ -11,8 +11,6 @@ namespace aweXpect.Reflection.Tests; // ReSharper disable PossibleMultipleEnumeration public sealed class TypesTests { - private const string NamespaceScope = "aweXpect.Reflection.Tests.TestHelpers.Types.NamespaceScope"; - [Fact] public async Task InAllLoadedAssemblies_ShouldContainTypesFromMultipleAssemblies() { @@ -65,6 +63,59 @@ public async Task InAssemblyContaining_WithType_ShouldContainTypesFromAssemblyOf await That(sut.GetDescription()).IsEqualTo("types in assembly containing type In"); } + [Fact] + public async Task InNamespace_AfterClarification_OriginalShouldStillUseAllLoadedAssemblies() + { + Filtered.Types.InNamespaceResult sut = Types.InNamespace(NamespaceScope); + _ = sut.InAssemblyContaining(typeof(In)); + + await That(sut).Contains(typeof(ClassInNamespaceScope)); + await That(sut.GetDescription()) + .IsEqualTo($"types within namespace \"{NamespaceScope}\" in all loaded assemblies"); + } + + [Fact] + public async Task InNamespace_InAllLoadedAssemblies_ShouldMatchDefaultSource() + { + Filtered.Types sut = Types.InNamespace(NamespaceScope).InAllLoadedAssemblies(); + + await That(sut).Contains(typeof(ClassInNamespaceScope)); + await That(sut.GetDescription()) + .IsEqualTo($"types within namespace \"{NamespaceScope}\" in all loaded assemblies"); + } + + [Fact] + public async Task InNamespace_InAssemblies_ShouldLimitSourceToProvidedAssemblies() + { + Filtered.Types sut = Types.InNamespace(NamespaceScope).InAssemblies(typeof(TypesTests).Assembly); + + await That(sut).Contains(typeof(ClassInNamespaceScope)); + await That(sut.GetDescription()) + .IsEqualTo($"types within namespace \"{NamespaceScope}\" in the assemblies [aweXpect.Reflection.Tests*]") + .AsWildcard(); + } + + [Fact] + public async Task InNamespace_InAssemblyContaining_WithGeneric_ShouldLimitSourceToAssemblyOfProvidedType() + { + Filtered.Types sut = Types.InNamespace(NamespaceScope).InAssemblyContaining(); + + await That(sut).Contains(typeof(ClassInNamespaceScope)); + await That(sut.GetDescription()) + .IsEqualTo( + $"types within namespace \"{NamespaceScope}\" in assembly containing type ClassInNamespaceScope"); + } + + [Fact] + public async Task InNamespace_InAssemblyContaining_WithType_WhenAssemblyDoesNotContainNamespace_ShouldBeEmpty() + { + Filtered.Types sut = Types.InNamespace(NamespaceScope).InAssemblyContaining(typeof(In)); + + await That(sut).IsEmpty(); + await That(sut.GetDescription()) + .IsEqualTo($"types within namespace \"{NamespaceScope}\" in assembly containing type In"); + } + [Fact] public async Task InNamespace_ShouldContainTypesWithinNamespaceIncludingSubNamespaces() { @@ -83,7 +134,9 @@ public async Task InNamespace_ShouldSelectTypesThatCanBeAsserted() Filtered.Types sut = Types.InNamespace(NamespaceScope); async Task Act() - => await That(sut).AreWithinNamespace(NamespaceScope); + { + await That(sut).AreWithinNamespace(NamespaceScope); + } await That(Act).DoesNotThrow(); } @@ -94,8 +147,10 @@ public async Task InNamespace_WhenAssertionFails_ShouldReportFullMessage() Filtered.Types sut = Types.InNamespace(NamespaceScope); async Task Act() - => await That(sut) + { + await That(sut) .AreWithinNamespace("aweXpect.Reflection.Tests.TestHelpers.Types.NamespaceScopeSibling"); + } await That(Act).Throws() .WithMessage(""" @@ -113,8 +168,10 @@ public async Task InNamespace_WhenNegatingMatchingAssertion_ShouldReportFullMess Filtered.Types sut = Types.InNamespace(NamespaceScope); async Task Act() - => await That(sut).DoesNotComplyWith(they + { + await That(sut).DoesNotComplyWith(they => they.AreWithinNamespace(NamespaceScope)); + } await That(Act).Throws() .WithMessage(""" @@ -136,56 +193,5 @@ await That(sut.GetDescription()) .IsEqualTo("types within namespace \"Non.Existent.Namespace\" in all loaded assemblies"); } - [Fact] - public async Task InNamespace_InAllLoadedAssemblies_ShouldMatchDefaultSource() - { - Filtered.Types sut = Types.InNamespace(NamespaceScope).InAllLoadedAssemblies(); - - await That(sut).Contains(typeof(ClassInNamespaceScope)); - await That(sut.GetDescription()) - .IsEqualTo($"types within namespace \"{NamespaceScope}\" in all loaded assemblies"); - } - - [Fact] - public async Task InNamespace_InAssemblies_ShouldLimitSourceToProvidedAssemblies() - { - Filtered.Types sut = Types.InNamespace(NamespaceScope).InAssemblies(typeof(TypesTests).Assembly); - - await That(sut).Contains(typeof(ClassInNamespaceScope)); - await That(sut.GetDescription()) - .IsEqualTo($"types within namespace \"{NamespaceScope}\" in the assemblies [aweXpect.Reflection.Tests*]") - .AsWildcard(); - } - - [Fact] - public async Task InNamespace_InAssemblyContaining_WithGeneric_ShouldLimitSourceToAssemblyOfProvidedType() - { - Filtered.Types sut = Types.InNamespace(NamespaceScope).InAssemblyContaining(); - - await That(sut).Contains(typeof(ClassInNamespaceScope)); - await That(sut.GetDescription()) - .IsEqualTo( - $"types within namespace \"{NamespaceScope}\" in assembly containing type ClassInNamespaceScope"); - } - - [Fact] - public async Task InNamespace_InAssemblyContaining_WithType_WhenAssemblyDoesNotContainNamespace_ShouldBeEmpty() - { - Filtered.Types sut = Types.InNamespace(NamespaceScope).InAssemblyContaining(typeof(In)); - - await That(sut).IsEmpty(); - await That(sut.GetDescription()) - .IsEqualTo($"types within namespace \"{NamespaceScope}\" in assembly containing type In"); - } - - [Fact] - public async Task InNamespace_AfterClarification_OriginalShouldStillUseAllLoadedAssemblies() - { - Filtered.Types.InNamespaceResult sut = Types.InNamespace(NamespaceScope); - _ = sut.InAssemblyContaining(typeof(In)); - - await That(sut).Contains(typeof(ClassInNamespaceScope)); - await That(sut.GetDescription()) - .IsEqualTo($"types within namespace \"{NamespaceScope}\" in all loaded assemblies"); - } + private const string NamespaceScope = "aweXpect.Reflection.Tests.TestHelpers.Types.NamespaceScope"; } From cbcec117f90bd9e159e7a4a8f7a3fe32080f9a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Sat, 6 Jun 2026 12:52:45 +0200 Subject: [PATCH 3/4] fix: restore 'sealed' modifiers required by ShouldChainSealedBeforeMethods --- .../Filters/TypeFilters.MemberAccess.Tests.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs index f467e66a..e3019529 100644 --- a/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs +++ b/Tests/aweXpect.Reflection.Tests/Filters/TypeFilters.MemberAccess.Tests.cs @@ -145,8 +145,10 @@ private sealed class SealedMemberClass : ConcreteForSealed { // 'sealed' is required so MethodInfo.IsFinal is true, which the .Sealed // filter relies on (see ShouldChainSealedBeforeMethods); do not remove. - public override string ToString() => "Sealed"; - public override void VirtualMethod() { } + // ReSharper disable SealedMemberInSealedClass + public sealed override string ToString() => "Sealed"; + public sealed override void VirtualMethod() { } + // ReSharper restore SealedMemberInSealedClass } } } From ee3afc80bcc151b46f39f47200fb25e7ade43420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Breu=C3=9F?= Date: Sat, 6 Jun 2026 12:52:45 +0200 Subject: [PATCH 4/4] fix: check out .cs files with native line endings to fix tests on Linux Forcing eol=crlf made raw string literals contain \r\n on Linux, while assertion messages are built with Environment.NewLine (\n there), failing ~2500 message-assertion tests on ubuntu CI. --- .gitattributes | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 69d1e691..3a5c56a5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,7 +8,10 @@ # ReSharper DotSettings files are in Unix Format *.DotSettings text eol=lf *.sln text eol=crlf -*.cs text eol=crlf +# .cs files use native line endings (CRLF on Windows, LF on Linux/macOS): +# tests compare raw string literals against messages built with Environment.NewLine, +# so the checkout eol must match the platform. Do not force eol=crlf here. +*.cs text # Allows checking out and developing in Windows # while mounting and running tests in Linux