From ac76162874692de7aaae080ab971136f4e21eb5d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 Nov 2023 12:13:26 +0000 Subject: [PATCH 1/3] build(mods): Bump eng from `39060c0` to `c3b635f` Bumps [eng](https://github.com/dailydevops/dotnet-engineering) from `39060c0` to `c3b635f`. - [Commits](https://github.com/dailydevops/dotnet-engineering/compare/39060c0d81e275952059ff06183c3255500383dc...c3b635f1e9422b3825bb7b017b54dc522d674836) --- updated-dependencies: - dependency-name: eng dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- eng | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng b/eng index 39060c0..c3b635f 160000 --- a/eng +++ b/eng @@ -1 +1 @@ -Subproject commit 39060c0d81e275952059ff06183c3255500383dc +Subproject commit c3b635f1e9422b3825bb7b017b54dc522d674836 From 615d5b1d97ee1adb6edfb36423557b49be36455a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20St=C3=BChmer?= <3283596+samtrion@users.noreply.github.com> Date: Fri, 17 Nov 2023 22:50:43 +0100 Subject: [PATCH 2/3] build(deps): Updated CSharpier.MSBuild --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 3e502f4..9dd21c3 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,7 +3,7 @@ - + From d13733c7084a8f77d0def68e6cc2001fd3cea596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20St=C3=BChmer?= <3283596+samtrion@users.noreply.github.com> Date: Fri, 17 Nov 2023 22:50:54 +0100 Subject: [PATCH 3/3] chore: Reorderd usings --- .../BugAttribute.cs | 2 +- .../EpicAttribute.cs | 2 +- .../FeatureAttribute.cs | 2 +- .../Internal/TestTraitBaseAttribute.cs | 2 +- .../IssueAttribute.cs | 2 +- .../UserStoryAttribute.cs | 2 +- .../WorkItemAttribute.cs | 2 +- .../BugAttribute.cs | 2 +- .../ContinuousTestBase.cs | 2 +- .../EpicAttribute.cs | 2 +- .../FeatureAttribute.cs | 2 +- .../IntegrationTestAttribute.cs | 2 +- .../IssueAttribute.cs | 2 +- .../MaxLevelOfParallelismAttribute.cs | 2 +- .../UserStoryAttribute.cs | 2 +- .../WorkItemAttribute.cs | 2 +- .../BugAttribute.cs | 2 +- .../Internal/CategoryTraitBaseAttribute.cs | 2 +- .../Internal/CategoryTraitDiscoverer.cs | 2 +- .../Internal/CultureTraitDiscoverer.cs | 2 +- .../SetCultureAttribute.cs | 2 +- .../SetUICultureAttribute.cs | 2 +- .../AcceptanceTestAttributeTests.cs | 2 +- .../AttributeTestsBase.cs | 95 +++++++++++++++---- .../BugAttributeTests.cs | 2 +- .../EndToEndTestAttributeTests.cs | 2 +- .../EpicAttributeTests.cs | 2 +- .../FeatureAttributeTests.cs | 2 +- .../FunctionalTestAttributeTests.cs | 2 +- .../IntegrationTestAttributeTests.cs | 2 +- .../IssueAttributeTests.cs | 2 +- .../PerformanceTestAttributeTests.cs | 2 +- .../PostDeploymentAttributeTests.cs | 2 +- .../PreDeploymentAttributeTests.cs | 2 +- .../UnitTestAttributeTests.cs | 2 +- .../UserStoryAttributeTests.cs | 2 +- .../AcceptanceTestAttributeTests.cs | 2 +- .../AttributeTestsBase.cs | 43 ++++++--- .../BugAttributeTests.cs | 4 +- .../EndToEndTestAttributeTests.cs | 2 +- .../EpicAttributeTests.cs | 2 +- .../FeatureAttributeTests.cs | 2 +- .../FunctionalTestAttributeTests.cs | 2 +- .../IntegrationTestAttributeTests.cs | 2 +- .../IssueAttributeTests.cs | 2 +- .../PerformanceTestAttributeTests.cs | 2 +- .../PostDeploymentAttributeTests.cs | 2 +- .../PreDeploymentAttributeTests.cs | 2 +- .../SetCultureAttributeTests.cs | 2 +- .../SetUICultureAttributeTests.cs | 2 +- .../UnitTestAttributeTests.cs | 2 +- .../UserStoryAttributeTests.cs | 2 +- .../WorkItemAttributeTests.cs | 2 +- .../AttributeTestsBase.cs | 5 +- 54 files changed, 159 insertions(+), 88 deletions(-) diff --git a/src/NetEvolve.Extensions.MSTest/BugAttribute.cs b/src/NetEvolve.Extensions.MSTest/BugAttribute.cs index 61d63a8..eb40ee8 100644 --- a/src/NetEvolve.Extensions.MSTest/BugAttribute.cs +++ b/src/NetEvolve.Extensions.MSTest/BugAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.MSTest; -using NetEvolve.Extensions.MSTest.Internal; using System; +using NetEvolve.Extensions.MSTest.Internal; /// /// Attribute used to decorate a test class or method as Bug, with optional Id diff --git a/src/NetEvolve.Extensions.MSTest/EpicAttribute.cs b/src/NetEvolve.Extensions.MSTest/EpicAttribute.cs index d98065e..904b94b 100644 --- a/src/NetEvolve.Extensions.MSTest/EpicAttribute.cs +++ b/src/NetEvolve.Extensions.MSTest/EpicAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.MSTest; -using NetEvolve.Extensions.MSTest.Internal; using System; +using NetEvolve.Extensions.MSTest.Internal; /// /// Attribute used to decorate a test class or method as Epic, with optional Id diff --git a/src/NetEvolve.Extensions.MSTest/FeatureAttribute.cs b/src/NetEvolve.Extensions.MSTest/FeatureAttribute.cs index a457fa3..64f5cef 100644 --- a/src/NetEvolve.Extensions.MSTest/FeatureAttribute.cs +++ b/src/NetEvolve.Extensions.MSTest/FeatureAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.MSTest; -using NetEvolve.Extensions.MSTest.Internal; using System; +using NetEvolve.Extensions.MSTest.Internal; /// /// Attribute used to decorate a test class or method as Feature, with optional Id diff --git a/src/NetEvolve.Extensions.MSTest/Internal/TestTraitBaseAttribute.cs b/src/NetEvolve.Extensions.MSTest/Internal/TestTraitBaseAttribute.cs index 7acedf2..602289a 100644 --- a/src/NetEvolve.Extensions.MSTest/Internal/TestTraitBaseAttribute.cs +++ b/src/NetEvolve.Extensions.MSTest/Internal/TestTraitBaseAttribute.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Internal; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Collections.Generic; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// [System.Diagnostics.CodeAnalysis.SuppressMessage( diff --git a/src/NetEvolve.Extensions.MSTest/IssueAttribute.cs b/src/NetEvolve.Extensions.MSTest/IssueAttribute.cs index 26917ef..ab7a0d0 100644 --- a/src/NetEvolve.Extensions.MSTest/IssueAttribute.cs +++ b/src/NetEvolve.Extensions.MSTest/IssueAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.MSTest; -using NetEvolve.Extensions.MSTest.Internal; using System; +using NetEvolve.Extensions.MSTest.Internal; /// /// Attribute used to decorate a test class or method as Issue, with optional Id diff --git a/src/NetEvolve.Extensions.MSTest/UserStoryAttribute.cs b/src/NetEvolve.Extensions.MSTest/UserStoryAttribute.cs index 867fcbb..955de02 100644 --- a/src/NetEvolve.Extensions.MSTest/UserStoryAttribute.cs +++ b/src/NetEvolve.Extensions.MSTest/UserStoryAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.MSTest; -using NetEvolve.Extensions.MSTest.Internal; using System; +using NetEvolve.Extensions.MSTest.Internal; /// /// Attribute used to decorate a test class or method as UserStory, with optional Id diff --git a/src/NetEvolve.Extensions.MSTest/WorkItemAttribute.cs b/src/NetEvolve.Extensions.MSTest/WorkItemAttribute.cs index 646f30c..297fb6e 100644 --- a/src/NetEvolve.Extensions.MSTest/WorkItemAttribute.cs +++ b/src/NetEvolve.Extensions.MSTest/WorkItemAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.MSTest; -using NetEvolve.Extensions.MSTest.Internal; using System; +using NetEvolve.Extensions.MSTest.Internal; /// /// Attribute used to decorate a test class or method as WorkItem, with optional Id diff --git a/src/NetEvolve.Extensions.NUnit/BugAttribute.cs b/src/NetEvolve.Extensions.NUnit/BugAttribute.cs index fbe072e..89d8a51 100644 --- a/src/NetEvolve.Extensions.NUnit/BugAttribute.cs +++ b/src/NetEvolve.Extensions.NUnit/BugAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.NUnit; -using NetEvolve.Extensions.NUnit.Internal; using System; +using NetEvolve.Extensions.NUnit.Internal; /// /// Attribute used to decorate a test class or method as Bug, with optional Id diff --git a/src/NetEvolve.Extensions.NUnit/ContinuousTestBase.cs b/src/NetEvolve.Extensions.NUnit/ContinuousTestBase.cs index b7aae50..f7a0683 100644 --- a/src/NetEvolve.Extensions.NUnit/ContinuousTestBase.cs +++ b/src/NetEvolve.Extensions.NUnit/ContinuousTestBase.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit; +using System.Threading.Tasks; using global::NUnit.Framework; using global::NUnit.Framework.Interfaces; -using System.Threading.Tasks; /// /// Basic implementation for the execution of continuous tests, based on . diff --git a/src/NetEvolve.Extensions.NUnit/EpicAttribute.cs b/src/NetEvolve.Extensions.NUnit/EpicAttribute.cs index f152189..d7c6e61 100644 --- a/src/NetEvolve.Extensions.NUnit/EpicAttribute.cs +++ b/src/NetEvolve.Extensions.NUnit/EpicAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.NUnit; -using NetEvolve.Extensions.NUnit.Internal; using System; +using NetEvolve.Extensions.NUnit.Internal; /// /// Attribute used to decorate a test class or method as Epic, with optional Id diff --git a/src/NetEvolve.Extensions.NUnit/FeatureAttribute.cs b/src/NetEvolve.Extensions.NUnit/FeatureAttribute.cs index 8d493bc..227fbf3 100644 --- a/src/NetEvolve.Extensions.NUnit/FeatureAttribute.cs +++ b/src/NetEvolve.Extensions.NUnit/FeatureAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.NUnit; -using NetEvolve.Extensions.NUnit.Internal; using System; +using NetEvolve.Extensions.NUnit.Internal; /// /// Attribute used to decorate a test class or method as Feature, with optional Id diff --git a/src/NetEvolve.Extensions.NUnit/IntegrationTestAttribute.cs b/src/NetEvolve.Extensions.NUnit/IntegrationTestAttribute.cs index a0eab8d..41fe1f9 100644 --- a/src/NetEvolve.Extensions.NUnit/IntegrationTestAttribute.cs +++ b/src/NetEvolve.Extensions.NUnit/IntegrationTestAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.NUnit; -using global::NUnit.Framework; using System; +using global::NUnit.Framework; /// /// Attribute used to decorate a test class or method as IntegrationTest. diff --git a/src/NetEvolve.Extensions.NUnit/IssueAttribute.cs b/src/NetEvolve.Extensions.NUnit/IssueAttribute.cs index 84a1eff..ae0fb7e 100644 --- a/src/NetEvolve.Extensions.NUnit/IssueAttribute.cs +++ b/src/NetEvolve.Extensions.NUnit/IssueAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.NUnit; -using NetEvolve.Extensions.NUnit.Internal; using System; +using NetEvolve.Extensions.NUnit.Internal; /// /// Attribute used to decorate a test class or method as Issue, with optional Id diff --git a/src/NetEvolve.Extensions.NUnit/MaxLevelOfParallelismAttribute.cs b/src/NetEvolve.Extensions.NUnit/MaxLevelOfParallelismAttribute.cs index 4e2fcd8..cc1012c 100644 --- a/src/NetEvolve.Extensions.NUnit/MaxLevelOfParallelismAttribute.cs +++ b/src/NetEvolve.Extensions.NUnit/MaxLevelOfParallelismAttribute.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit; -using global::NUnit.Framework; using System; using System.Diagnostics.CodeAnalysis; +using global::NUnit.Framework; /// /// Sets the number of worker threads taking into account the available diff --git a/src/NetEvolve.Extensions.NUnit/UserStoryAttribute.cs b/src/NetEvolve.Extensions.NUnit/UserStoryAttribute.cs index 9363cae..4dd5f17 100644 --- a/src/NetEvolve.Extensions.NUnit/UserStoryAttribute.cs +++ b/src/NetEvolve.Extensions.NUnit/UserStoryAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.NUnit; -using NetEvolve.Extensions.NUnit.Internal; using System; +using NetEvolve.Extensions.NUnit.Internal; /// /// Attribute used to decorate a test class or method as UserStory, with optional Id diff --git a/src/NetEvolve.Extensions.NUnit/WorkItemAttribute.cs b/src/NetEvolve.Extensions.NUnit/WorkItemAttribute.cs index bcfbdc0..3b05a3c 100644 --- a/src/NetEvolve.Extensions.NUnit/WorkItemAttribute.cs +++ b/src/NetEvolve.Extensions.NUnit/WorkItemAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.NUnit; -using NetEvolve.Extensions.NUnit.Internal; using System; +using NetEvolve.Extensions.NUnit.Internal; /// /// Attribute used to decorate a test class or method as WorkItem, with optional Id diff --git a/src/NetEvolve.Extensions.XUnit/BugAttribute.cs b/src/NetEvolve.Extensions.XUnit/BugAttribute.cs index 1c29075..8af86ef 100644 --- a/src/NetEvolve.Extensions.XUnit/BugAttribute.cs +++ b/src/NetEvolve.Extensions.XUnit/BugAttribute.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.XUnit; -using NetEvolve.Extensions.XUnit.Internal; using System; +using NetEvolve.Extensions.XUnit.Internal; /// /// Attribute used to decorate a test class or method as Bug, with optional Id diff --git a/src/NetEvolve.Extensions.XUnit/Internal/CategoryTraitBaseAttribute.cs b/src/NetEvolve.Extensions.XUnit/Internal/CategoryTraitBaseAttribute.cs index fd16f29..2757b39 100644 --- a/src/NetEvolve.Extensions.XUnit/Internal/CategoryTraitBaseAttribute.cs +++ b/src/NetEvolve.Extensions.XUnit/Internal/CategoryTraitBaseAttribute.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.XUnit.Internal; -using NetEvolve.Extensions.XUnit; using System; using System.Diagnostics.CodeAnalysis; +using NetEvolve.Extensions.XUnit; using Xunit.Sdk; /// diff --git a/src/NetEvolve.Extensions.XUnit/Internal/CategoryTraitDiscoverer.cs b/src/NetEvolve.Extensions.XUnit/Internal/CategoryTraitDiscoverer.cs index c015078..fc2e347 100644 --- a/src/NetEvolve.Extensions.XUnit/Internal/CategoryTraitDiscoverer.cs +++ b/src/NetEvolve.Extensions.XUnit/Internal/CategoryTraitDiscoverer.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.XUnit.Internal; -using NetEvolve.Extensions.XUnit; using System.Collections.Generic; +using NetEvolve.Extensions.XUnit; using Xunit.Abstractions; /// diff --git a/src/NetEvolve.Extensions.XUnit/Internal/CultureTraitDiscoverer.cs b/src/NetEvolve.Extensions.XUnit/Internal/CultureTraitDiscoverer.cs index 60d5cb7..440303c 100644 --- a/src/NetEvolve.Extensions.XUnit/Internal/CultureTraitDiscoverer.cs +++ b/src/NetEvolve.Extensions.XUnit/Internal/CultureTraitDiscoverer.cs @@ -1,7 +1,7 @@ namespace NetEvolve.Extensions.XUnit.Internal; -using NetEvolve.Extensions.XUnit; using System.Collections.Generic; +using NetEvolve.Extensions.XUnit; using Xunit.Abstractions; /// diff --git a/src/NetEvolve.Extensions.XUnit/SetCultureAttribute.cs b/src/NetEvolve.Extensions.XUnit/SetCultureAttribute.cs index 4165ebe..229d57d 100644 --- a/src/NetEvolve.Extensions.XUnit/SetCultureAttribute.cs +++ b/src/NetEvolve.Extensions.XUnit/SetCultureAttribute.cs @@ -1,9 +1,9 @@ namespace NetEvolve.Extensions.XUnit; -using NetEvolve.Extensions.XUnit.Internal; using System; using System.Globalization; using System.Reflection; +using NetEvolve.Extensions.XUnit.Internal; /// /// Based on the value passed as culture, the marked test is executed. diff --git a/src/NetEvolve.Extensions.XUnit/SetUICultureAttribute.cs b/src/NetEvolve.Extensions.XUnit/SetUICultureAttribute.cs index bc9709e..d4f6c27 100644 --- a/src/NetEvolve.Extensions.XUnit/SetUICultureAttribute.cs +++ b/src/NetEvolve.Extensions.XUnit/SetUICultureAttribute.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.XUnit; -using NetEvolve.Extensions.XUnit.Internal; using System; using System.Globalization; +using NetEvolve.Extensions.XUnit.Internal; /// /// Based on the value passed as UI culture, the marked test is executed. diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/AcceptanceTestAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/AcceptanceTestAttributeTests.cs index 7487aa9..45c45f7 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/AcceptanceTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/AcceptanceTestAttributeTests.cs @@ -1,9 +1,9 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; using VerifyTests; /// diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/AttributeTestsBase.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/AttributeTestsBase.cs index 51db893..27436a3 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/AttributeTestsBase.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/AttributeTestsBase.cs @@ -1,12 +1,12 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using NetEvolve.Extensions.MSTest.Internal; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using NetEvolve.Extensions.MSTest.Internal; using VerifyMSTest; using VerifyTests; @@ -23,12 +23,21 @@ protected IEnumerable> GetProperties( [CallerMemberName] string? methodName = null ) { - if (string.IsNullOrWhiteSpace(methodName)) { throw new ArgumentNullException(nameof(methodName)); } + if (string.IsNullOrWhiteSpace(methodName)) + { + throw new ArgumentNullException(nameof(methodName)); + } var owningType = GetType(); - var methodInfo = owningType.GetMethod(methodName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); + var methodInfo = owningType.GetMethod( + methodName, + BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance + ); - if (methodInfo is null) { return Enumerable.Empty>(); } + if (methodInfo is null) + { + return Enumerable.Empty>(); + } var categories = GetTestCategoryBaseAttributes(methodInfo).ToArray(); if (categories is not null) @@ -38,7 +47,9 @@ protected IEnumerable> GetProperties( if (categories is not null) { - categories = categories.Concat(GetTestCategoryBaseAttributes(owningType.Module.Assembly)).ToArray(); + categories = categories + .Concat(GetTestCategoryBaseAttributes(owningType.Module.Assembly)) + .ToArray(); } if (categories is null) @@ -46,54 +57,96 @@ protected IEnumerable> GetProperties( return Array.Empty>(); } - return categories.Where(x => x.Key is not null && !string.IsNullOrWhiteSpace(x.Value)).Distinct(); + return categories + .Where(x => x.Key is not null && !string.IsNullOrWhiteSpace(x.Value)) + .Distinct(); } - private IEnumerable> GetTestCategoryBaseAttributes(Assembly assembly) + private IEnumerable> GetTestCategoryBaseAttributes( + Assembly assembly + ) { - if (assembly is null) { yield break; } + if (assembly is null) + { + yield break; + } var attributes = assembly.GetCustomAttributes(); - if (attributes is null) { yield break; } + if (attributes is null) + { + yield break; + } foreach (var attribute in attributes) { - if (attribute is null) { continue; } + if (attribute is null) + { + continue; + } foreach (var testCategory in attribute.TestCategories) { - if (string.IsNullOrWhiteSpace(testCategory)) { continue; } + if (string.IsNullOrWhiteSpace(testCategory)) + { + continue; + } yield return new KeyValuePair("TestCategory", testCategory); - if (attribute is TestCategoryWithIdBaseAttribute attributeWithId && !string.IsNullOrWhiteSpace(attributeWithId.Id)) + if ( + attribute is TestCategoryWithIdBaseAttribute attributeWithId + && !string.IsNullOrWhiteSpace(attributeWithId.Id) + ) { - yield return new KeyValuePair(testCategory, attributeWithId.Id!); + yield return new KeyValuePair( + testCategory, + attributeWithId.Id! + ); } } } } - private IEnumerable> GetTestCategoryBaseAttributes(MemberInfo? member) + private IEnumerable> GetTestCategoryBaseAttributes( + MemberInfo? member + ) { - if (member is null) { yield break; } + if (member is null) + { + yield break; + } var attributes = member.GetCustomAttributes(true); - if (attributes is null) { yield break; } + if (attributes is null) + { + yield break; + } foreach (var attribute in attributes) { - if (attribute is null) { continue; } + if (attribute is null) + { + continue; + } foreach (var testCategory in attribute.TestCategories) { - if (string.IsNullOrWhiteSpace(testCategory)) { continue; } + if (string.IsNullOrWhiteSpace(testCategory)) + { + continue; + } yield return new KeyValuePair("TestCategory", testCategory); - if (attribute is TestCategoryWithIdBaseAttribute attributeWithId && !string.IsNullOrWhiteSpace(attributeWithId.Id)) + if ( + attribute is TestCategoryWithIdBaseAttribute attributeWithId + && !string.IsNullOrWhiteSpace(attributeWithId.Id) + ) { - yield return new KeyValuePair(testCategory, attributeWithId.Id!); + yield return new KeyValuePair( + testCategory, + attributeWithId.Id! + ); } } } diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/BugAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/BugAttributeTests.cs index 339c997..be63c92 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/BugAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/BugAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/EndToEndTestAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/EndToEndTestAttributeTests.cs index 40cd139..cb5545f 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/EndToEndTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/EndToEndTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/EpicAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/EpicAttributeTests.cs index 102d5d7..016931e 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/EpicAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/EpicAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/FeatureAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/FeatureAttributeTests.cs index 522d6d2..6ea608f 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/FeatureAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/FeatureAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/FunctionalTestAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/FunctionalTestAttributeTests.cs index 5d8c6a6..bba13af 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/FunctionalTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/FunctionalTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/IntegrationTestAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/IntegrationTestAttributeTests.cs index 7605ca4..865e789 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/IntegrationTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/IntegrationTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/IssueAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/IssueAttributeTests.cs index f2de497..ff97652 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/IssueAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/IssueAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PerformanceTestAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PerformanceTestAttributeTests.cs index 7449343..f427545 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PerformanceTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PerformanceTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PostDeploymentAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PostDeploymentAttributeTests.cs index 220ef04..8fbbacf 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PostDeploymentAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PostDeploymentAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PreDeploymentAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PreDeploymentAttributeTests.cs index 9089f16..10a1b89 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PreDeploymentAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/PreDeploymentAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/UnitTestAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/UnitTestAttributeTests.cs index 7815541..484d172 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/UnitTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/UnitTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/UserStoryAttributeTests.cs b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/UserStoryAttributeTests.cs index cef637d..bf98e55 100644 --- a/tests/NetEvolve.Extensions.MSTest.Tests.Unit/UserStoryAttributeTests.cs +++ b/tests/NetEvolve.Extensions.MSTest.Tests.Unit/UserStoryAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.MSTest.Tests.Unit; -using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using Microsoft.VisualStudio.TestTools.UnitTesting; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/AcceptanceTestAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/AcceptanceTestAttributeTests.cs index 68d4731..5cc9c08 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/AcceptanceTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/AcceptanceTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/AttributeTestsBase.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/AttributeTestsBase.cs index 37c28d1..fd84446 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/AttributeTestsBase.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/AttributeTestsBase.cs @@ -1,14 +1,14 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; -using global::NUnit.Framework.Internal; -using global::NUnit.Framework.Internal.Builders; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; +using global::NUnit.Framework; +using global::NUnit.Framework.Internal; +using global::NUnit.Framework.Internal.Builders; using VerifyNUnit; using VerifyTests; @@ -19,14 +19,14 @@ [TestFixture] public abstract class AttributeTestsBase { - private static readonly List _excludeKeys - = new List { - PropertyNames.AppDomain, - PropertyNames.JoinType, - PropertyNames.ProcessId, - PropertyNames.ProviderStackTrace, - PropertyNames.SkipReason - }; + private static readonly List _excludeKeys = new List + { + PropertyNames.AppDomain, + PropertyNames.JoinType, + PropertyNames.ProcessId, + PropertyNames.ProviderStackTrace, + PropertyNames.SkipReason + }; /// /// Gets the Traits from the given Method name @@ -43,7 +43,10 @@ protected IEnumerable> GetProperties( } var classType = GetType(); - var methodInfo = classType.GetMethod(methodName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); + var methodInfo = classType.GetMethod( + methodName, + BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance + ); if (methodInfo is null) { @@ -55,11 +58,23 @@ protected IEnumerable> GetProperties( foreach (var key in test.Properties.Keys) { - if (_excludeKeys.Any(x => x.Equals(key, StringComparison.OrdinalIgnoreCase))) { continue; } + if (_excludeKeys.Any(x => x.Equals(key, StringComparison.OrdinalIgnoreCase))) + { + continue; + } foreach (string value in test.Properties[key]) { - result.Add(new KeyValuePair(key.Replace(PropertyNames.Category, "TestCategory", StringComparison.Ordinal), value)); + result.Add( + new KeyValuePair( + key.Replace( + PropertyNames.Category, + "TestCategory", + StringComparison.Ordinal + ), + value + ) + ); } } diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/BugAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/BugAttributeTests.cs index 25df332..3583ea1 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/BugAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/BugAttributeTests.cs @@ -1,9 +1,9 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; -using NetEvolve.Extensions.NUnit; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; +using NetEvolve.Extensions.NUnit; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/EndToEndTestAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/EndToEndTestAttributeTests.cs index 7c477fc..b161787 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/EndToEndTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/EndToEndTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/EpicAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/EpicAttributeTests.cs index 7d260f1..5ae115f 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/EpicAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/EpicAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/FeatureAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/FeatureAttributeTests.cs index dd86b0d..89de0f7 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/FeatureAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/FeatureAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/FunctionalTestAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/FunctionalTestAttributeTests.cs index 23b8d19..66387bf 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/FunctionalTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/FunctionalTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/IntegrationTestAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/IntegrationTestAttributeTests.cs index b9784b6..9c90de9 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/IntegrationTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/IntegrationTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/IssueAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/IssueAttributeTests.cs index 99cddb1..5c58e9d 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/IssueAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/IssueAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PerformanceTestAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PerformanceTestAttributeTests.cs index df159aa..e96f2d2 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PerformanceTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PerformanceTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PostDeploymentAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PostDeploymentAttributeTests.cs index e08949b..51955dc 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PostDeploymentAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PostDeploymentAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PreDeploymentAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PreDeploymentAttributeTests.cs index 44b3b4e..4e8b0d1 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PreDeploymentAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/PreDeploymentAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetCultureAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetCultureAttributeTests.cs index e258579..6bf7d44 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetCultureAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetCultureAttributeTests.cs @@ -1,10 +1,10 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading.Tasks; +using global::NUnit.Framework; [ExcludeFromCodeCoverage] public class SetCultureAttributeTests : AttributeTestsBase diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetUICultureAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetUICultureAttributeTests.cs index 4099200..6f682cc 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetUICultureAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/SetUICultureAttributeTests.cs @@ -1,10 +1,10 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Threading.Tasks; +using global::NUnit.Framework; [ExcludeFromCodeCoverage] public class SetUICultureAttributeTests : AttributeTestsBase diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/UnitTestAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/UnitTestAttributeTests.cs index 38c9cf1..89cb558 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/UnitTestAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/UnitTestAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/UserStoryAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/UserStoryAttributeTests.cs index dd85e7c..0163015 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/UserStoryAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/UserStoryAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/WorkItemAttributeTests.cs b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/WorkItemAttributeTests.cs index cd91903..0840de6 100644 --- a/tests/NetEvolve.Extensions.NUnit.Tests.Unit/WorkItemAttributeTests.cs +++ b/tests/NetEvolve.Extensions.NUnit.Tests.Unit/WorkItemAttributeTests.cs @@ -1,8 +1,8 @@ namespace NetEvolve.Extensions.NUnit.Tests.Unit; -using global::NUnit.Framework; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using global::NUnit.Framework; /// /// Unit tests for . diff --git a/tests/NetEvolve.Extensions.XUnit.Tests.Unit/AttributeTestsBase.cs b/tests/NetEvolve.Extensions.XUnit.Tests.Unit/AttributeTestsBase.cs index 4680f42..673c07a 100644 --- a/tests/NetEvolve.Extensions.XUnit.Tests.Unit/AttributeTestsBase.cs +++ b/tests/NetEvolve.Extensions.XUnit.Tests.Unit/AttributeTestsBase.cs @@ -31,7 +31,10 @@ protected IEnumerable> GetTraits( } var classType = GetType(); - var methodInfo = classType.GetMethod(methodName, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); + var methodInfo = classType.GetMethod( + methodName, + BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance + ); var result = TraitHelper.GetTraits(methodInfo).Distinct().ToList();