Skip to content

Commit 39720e1

Browse files
committed
Upgrade to xUnit 2.4
Branching for repro purposes...this breaks all tests runs due to UWP shenanigans.
1 parent 640e767 commit 39720e1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Directory.build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424

2525
<LibraryTargetFrameworks>net45;net46;netstandard1.5;netstandard2.0</LibraryTargetFrameworks>
2626
<CoreFxVersion>4.3.0</CoreFxVersion>
27-
<xUnitVersion>2.3.1</xUnitVersion>
27+
<xUnitVersion>2.4.0-beta.2.build3967</xUnitVersion>
2828
</PropertyGroup>
2929
</Project>

StackExchange.Redis.Tests/Helpers/Attributes.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)