1
1
// Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
+ using System . Collections . Generic ;
4
5
using Xunit . Abstractions ;
5
6
using Xunit . Sdk ;
6
7
@@ -16,10 +17,10 @@ public ConditionalTheoryDiscoverer(IMessageSink diagnosticMessageSink)
16
17
_diagnosticMessageSink = diagnosticMessageSink ;
17
18
}
18
19
19
- protected override IXunitTestCase CreateTestCaseForDataRow ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo theoryAttribute , object [ ] dataRow )
20
- => new SkipXunitTestCase ( _diagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod , dataRow ) ;
20
+ protected override IEnumerable < IXunitTestCase > CreateTestCasesForDataRow ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo theoryAttribute , object [ ] dataRow )
21
+ => new [ ] { new SkipXunitTestCase ( _diagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod , dataRow ) } ;
21
22
22
- protected override IXunitTestCase CreateTestCaseForTheory ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo theoryAttribute )
23
- => new SkipXunitTheoryTestCase ( _diagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod ) ;
23
+ protected override IEnumerable < IXunitTestCase > CreateTestCasesForTheory ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo theoryAttribute )
24
+ => new [ ] { new SkipXunitTheoryTestCase ( _diagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod ) } ;
24
25
}
25
26
}
0 commit comments