@@ -49,24 +49,24 @@ public class FactDiscoverer : Xunit.Sdk.FactDiscoverer
49
49
public FactDiscoverer ( IMessageSink diagnosticMessageSink ) : base ( diagnosticMessageSink ) { }
50
50
51
51
protected override IXunitTestCase CreateTestCase ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo factAttribute )
52
- => new SkippableTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod ) ;
52
+ => new SkippableTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , discoveryOptions . MethodDisplayOptionsOrDefault ( ) , testMethod ) ;
53
53
}
54
54
55
55
public class TheoryDiscoverer : Xunit . Sdk . TheoryDiscoverer
56
56
{
57
57
public TheoryDiscoverer ( IMessageSink diagnosticMessageSink ) : base ( diagnosticMessageSink ) { }
58
58
59
59
protected override IEnumerable < IXunitTestCase > CreateTestCasesForDataRow ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo theoryAttribute , object [ ] dataRow )
60
- => new [ ] { new SkippableTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod , dataRow ) } ;
60
+ => new [ ] { new SkippableTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , discoveryOptions . MethodDisplayOptionsOrDefault ( ) , testMethod , dataRow ) } ;
61
61
62
62
protected override IEnumerable < IXunitTestCase > CreateTestCasesForSkip ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo theoryAttribute , string skipReason )
63
- => new [ ] { new SkippableTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod ) } ;
63
+ => new [ ] { new SkippableTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , discoveryOptions . MethodDisplayOptionsOrDefault ( ) , testMethod ) } ;
64
64
65
65
protected override IEnumerable < IXunitTestCase > CreateTestCasesForTheory ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo theoryAttribute )
66
- => new [ ] { new SkippableTheoryTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod ) } ;
66
+ => new [ ] { new SkippableTheoryTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , discoveryOptions . MethodDisplayOptionsOrDefault ( ) , testMethod ) } ;
67
67
68
68
protected override IEnumerable < IXunitTestCase > CreateTestCasesForSkippedDataRow ( ITestFrameworkDiscoveryOptions discoveryOptions , ITestMethod testMethod , IAttributeInfo theoryAttribute , object [ ] dataRow , string skipReason )
69
- => new [ ] { new NamedSkippedDataRowTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , testMethod , skipReason , dataRow ) } ;
69
+ => new [ ] { new NamedSkippedDataRowTestCase ( DiagnosticMessageSink , discoveryOptions . MethodDisplayOrDefault ( ) , discoveryOptions . MethodDisplayOptionsOrDefault ( ) , testMethod , skipReason , dataRow ) } ;
70
70
}
71
71
72
72
public class SkippableTestCase : XunitTestCase
@@ -77,8 +77,8 @@ protected override string GetDisplayName(IAttributeInfo factAttribute, string di
77
77
[ Obsolete ( "Called by the de-serializer; should only be called by deriving classes for de-serialization purposes" ) ]
78
78
public SkippableTestCase ( ) { }
79
79
80
- public SkippableTestCase ( IMessageSink diagnosticMessageSink , TestMethodDisplay defaultMethodDisplay , ITestMethod testMethod , object [ ] testMethodArguments = null )
81
- : base ( diagnosticMessageSink , defaultMethodDisplay , testMethod , testMethodArguments )
80
+ public SkippableTestCase ( IMessageSink diagnosticMessageSink , TestMethodDisplay defaultMethodDisplay , TestMethodDisplayOptions defaultMethodDisplayOptions , ITestMethod testMethod , object [ ] testMethodArguments = null )
81
+ : base ( diagnosticMessageSink , defaultMethodDisplay , defaultMethodDisplayOptions , testMethod , testMethodArguments )
82
82
{
83
83
}
84
84
@@ -103,8 +103,8 @@ protected override string GetDisplayName(IAttributeInfo factAttribute, string di
103
103
[ Obsolete ( "Called by the de-serializer; should only be called by deriving classes for de-serialization purposes" ) ]
104
104
public SkippableTheoryTestCase ( ) { }
105
105
106
- public SkippableTheoryTestCase ( IMessageSink diagnosticMessageSink , TestMethodDisplay defaultMethodDisplay , ITestMethod testMethod )
107
- : base ( diagnosticMessageSink , defaultMethodDisplay , testMethod ) { }
106
+ public SkippableTheoryTestCase ( IMessageSink diagnosticMessageSink , TestMethodDisplay defaultMethodDisplay , TestMethodDisplayOptions defaultMethodDisplayOptions , ITestMethod testMethod )
107
+ : base ( diagnosticMessageSink , defaultMethodDisplay , defaultMethodDisplayOptions , testMethod ) { }
108
108
109
109
public override async Task < RunSummary > RunAsync (
110
110
IMessageSink diagnosticMessageSink ,
@@ -127,8 +127,8 @@ protected override string GetDisplayName(IAttributeInfo factAttribute, string di
127
127
[ Obsolete ( "Called by the de-serializer; should only be called by deriving classes for de-serialization purposes" ) ]
128
128
public NamedSkippedDataRowTestCase ( ) { }
129
129
130
- public NamedSkippedDataRowTestCase ( IMessageSink diagnosticMessageSink , TestMethodDisplay defaultMethodDisplay , ITestMethod testMethod , string skipReason , object [ ] testMethodArguments = null )
131
- : base ( diagnosticMessageSink , defaultMethodDisplay , testMethod , skipReason , testMethodArguments ) { }
130
+ public NamedSkippedDataRowTestCase ( IMessageSink diagnosticMessageSink , TestMethodDisplay defaultMethodDisplay , TestMethodDisplayOptions defaultMethodDisplayOptions , ITestMethod testMethod , string skipReason , object [ ] testMethodArguments = null )
131
+ : base ( diagnosticMessageSink , defaultMethodDisplay , defaultMethodDisplayOptions , testMethod , skipReason , testMethodArguments ) { }
132
132
}
133
133
134
134
public class SkippableMessageBus : IMessageBus
0 commit comments