From 7a3a286ebb6a3c2de2337bd87d197d8da9cd9932 Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Thu, 23 Jan 2025 17:49:54 +0100 Subject: [PATCH] Handle "Xunit.SkipException" in tests discoverer --- tests/NRedisStack.Tests/SkippableTheoryDiscoverer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/NRedisStack.Tests/SkippableTheoryDiscoverer.cs b/tests/NRedisStack.Tests/SkippableTheoryDiscoverer.cs index a7e6535e..9f2261a3 100644 --- a/tests/NRedisStack.Tests/SkippableTheoryDiscoverer.cs +++ b/tests/NRedisStack.Tests/SkippableTheoryDiscoverer.cs @@ -42,7 +42,7 @@ public SkippableTheoryDiscoverer(IMessageSink diagnosticMessageSink) public virtual IEnumerable Discover(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute) { Requires.NotNull(factAttribute, nameof(factAttribute)); - string[] skippingExceptionNames = new[] { "Xunit.SkippableFact.SkipException" }; + string[] skippingExceptionNames = new[] { "Xunit.SkippableFact.SkipException", "Xunit.SkipException" }; TestMethodDisplay defaultMethodDisplay = discoveryOptions.MethodDisplayOrDefault(); IEnumerable? basis = this.theoryDiscoverer.Discover(discoveryOptions, testMethod, factAttribute);