@@ -49,24 +49,24 @@ public class FactDiscoverer : Xunit.Sdk.FactDiscoverer
4949 public FactDiscoverer ( IMessageSink diagnosticMessageSink ) : base ( diagnosticMessageSink ) { }
5050
5151 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 ) ;
5353 }
5454
5555 public class TheoryDiscoverer : Xunit . Sdk . TheoryDiscoverer
5656 {
5757 public TheoryDiscoverer ( IMessageSink diagnosticMessageSink ) : base ( diagnosticMessageSink ) { }
5858
5959 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 ) } ;
6161
6262 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 ) } ;
6464
6565 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 ) } ;
6767
6868 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 ) } ;
7070 }
7171
7272 public class SkippableTestCase : XunitTestCase
@@ -77,8 +77,8 @@ protected override string GetDisplayName(IAttributeInfo factAttribute, string di
7777 [ Obsolete ( "Called by the de-serializer; should only be called by deriving classes for de-serialization purposes" ) ]
7878 public SkippableTestCase ( ) { }
7979
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 )
8282 {
8383 }
8484
@@ -103,8 +103,8 @@ protected override string GetDisplayName(IAttributeInfo factAttribute, string di
103103 [ Obsolete ( "Called by the de-serializer; should only be called by deriving classes for de-serialization purposes" ) ]
104104 public SkippableTheoryTestCase ( ) { }
105105
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 ) { }
108108
109109 public override async Task < RunSummary > RunAsync (
110110 IMessageSink diagnosticMessageSink ,
@@ -127,8 +127,8 @@ protected override string GetDisplayName(IAttributeInfo factAttribute, string di
127127 [ Obsolete ( "Called by the de-serializer; should only be called by deriving classes for de-serialization purposes" ) ]
128128 public NamedSkippedDataRowTestCase ( ) { }
129129
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 ) { }
132132 }
133133
134134 public class SkippableMessageBus : IMessageBus
0 commit comments