Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
39720e12
Commit
39720e12
authored
Mar 13, 2018
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to xUnit 2.4
Branching for repro purposes...this breaks all tests runs due to UWP shenanigans.
parent
640e767c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
Directory.build.props
Directory.build.props
+1
-1
Attributes.cs
StackExchange.Redis.Tests/Helpers/Attributes.cs
+11
-11
No files found.
Directory.build.props
View file @
39720e12
...
...
@@ -24,6 +24,6 @@
<LibraryTargetFrameworks>net45;net46;netstandard1.5;netstandard2.0</LibraryTargetFrameworks>
<CoreFxVersion>4.3.0</CoreFxVersion>
<xUnitVersion>2.
3.1
</xUnitVersion>
<xUnitVersion>2.
4.0-beta.2.build3967
</xUnitVersion>
</PropertyGroup>
</Project>
StackExchange.Redis.Tests/Helpers/Attributes.cs
View file @
39720e12
...
...
@@ -49,7 +49,7 @@ public class FactDiscoverer : Xunit.Sdk.FactDiscoverer
public
FactDiscoverer
(
IMessageSink
diagnosticMessageSink
)
:
base
(
diagnosticMessageSink
)
{
}
protected
override
IXunitTestCase
CreateTestCase
(
ITestFrameworkDiscoveryOptions
discoveryOptions
,
ITestMethod
testMethod
,
IAttributeInfo
factAttribute
)
=>
new
SkippableTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
testMethod
);
=>
new
SkippableTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
discoveryOptions
.
MethodDisplayOptionsOrDefault
(),
testMethod
);
}
public
class
TheoryDiscoverer
:
Xunit
.
Sdk
.
TheoryDiscoverer
...
...
@@ -57,16 +57,16 @@ public class TheoryDiscoverer : Xunit.Sdk.TheoryDiscoverer
public
TheoryDiscoverer
(
IMessageSink
diagnosticMessageSink
)
:
base
(
diagnosticMessageSink
)
{
}
protected
override
IEnumerable
<
IXunitTestCase
>
CreateTestCasesForDataRow
(
ITestFrameworkDiscoveryOptions
discoveryOptions
,
ITestMethod
testMethod
,
IAttributeInfo
theoryAttribute
,
object
[]
dataRow
)
=>
new
[]
{
new
SkippableTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
testMethod
,
dataRow
)
};
=>
new
[]
{
new
SkippableTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
discoveryOptions
.
MethodDisplayOptionsOrDefault
(),
testMethod
,
dataRow
)
};
protected
override
IEnumerable
<
IXunitTestCase
>
CreateTestCasesForSkip
(
ITestFrameworkDiscoveryOptions
discoveryOptions
,
ITestMethod
testMethod
,
IAttributeInfo
theoryAttribute
,
string
skipReason
)
=>
new
[]
{
new
SkippableTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
testMethod
)
};
=>
new
[]
{
new
SkippableTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
discoveryOptions
.
MethodDisplayOptionsOrDefault
(),
testMethod
)
};
protected
override
IEnumerable
<
IXunitTestCase
>
CreateTestCasesForTheory
(
ITestFrameworkDiscoveryOptions
discoveryOptions
,
ITestMethod
testMethod
,
IAttributeInfo
theoryAttribute
)
=>
new
[]
{
new
SkippableTheoryTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
testMethod
)
};
=>
new
[]
{
new
SkippableTheoryTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
discoveryOptions
.
MethodDisplayOptionsOrDefault
(),
testMethod
)
};
protected
override
IEnumerable
<
IXunitTestCase
>
CreateTestCasesForSkippedDataRow
(
ITestFrameworkDiscoveryOptions
discoveryOptions
,
ITestMethod
testMethod
,
IAttributeInfo
theoryAttribute
,
object
[]
dataRow
,
string
skipReason
)
=>
new
[]
{
new
NamedSkippedDataRowTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
testMethod
,
skipReason
,
dataRow
)
};
=>
new
[]
{
new
NamedSkippedDataRowTestCase
(
DiagnosticMessageSink
,
discoveryOptions
.
MethodDisplayOrDefault
(),
discoveryOptions
.
MethodDisplayOptionsOrDefault
(),
testMethod
,
skipReason
,
dataRow
)
};
}
public
class
SkippableTestCase
:
XunitTestCase
...
...
@@ -77,8 +77,8 @@ public class SkippableTestCase : XunitTestCase
[
Obsolete
(
"Called by the de-serializer; should only be called by deriving classes for de-serialization purposes"
)]
public
SkippableTestCase
()
{
}
public
SkippableTestCase
(
IMessageSink
diagnosticMessageSink
,
TestMethodDisplay
defaultMethodDisplay
,
ITestMethod
testMethod
,
object
[]
testMethodArguments
=
null
)
:
base
(
diagnosticMessageSink
,
defaultMethodDisplay
,
testMethod
,
testMethodArguments
)
public
SkippableTestCase
(
IMessageSink
diagnosticMessageSink
,
TestMethodDisplay
defaultMethodDisplay
,
TestMethodDisplayOptions
defaultMethodDisplayOptions
,
ITestMethod
testMethod
,
object
[]
testMethodArguments
=
null
)
:
base
(
diagnosticMessageSink
,
defaultMethodDisplay
,
defaultMethodDisplayOptions
,
testMethod
,
testMethodArguments
)
{
}
...
...
@@ -103,8 +103,8 @@ public class SkippableTheoryTestCase : XunitTheoryTestCase
[
Obsolete
(
"Called by the de-serializer; should only be called by deriving classes for de-serialization purposes"
)]
public
SkippableTheoryTestCase
()
{
}
public
SkippableTheoryTestCase
(
IMessageSink
diagnosticMessageSink
,
TestMethodDisplay
defaultMethodDisplay
,
ITestMethod
testMethod
)
:
base
(
diagnosticMessageSink
,
defaultMethodDisplay
,
testMethod
)
{
}
public
SkippableTheoryTestCase
(
IMessageSink
diagnosticMessageSink
,
TestMethodDisplay
defaultMethodDisplay
,
TestMethodDisplayOptions
defaultMethodDisplayOptions
,
ITestMethod
testMethod
)
:
base
(
diagnosticMessageSink
,
defaultMethodDisplay
,
defaultMethodDisplayOptions
,
testMethod
)
{
}
public
override
async
Task
<
RunSummary
>
RunAsync
(
IMessageSink
diagnosticMessageSink
,
...
...
@@ -127,8 +127,8 @@ public class NamedSkippedDataRowTestCase : XunitSkippedDataRowTestCase
[
Obsolete
(
"Called by the de-serializer; should only be called by deriving classes for de-serialization purposes"
)]
public
NamedSkippedDataRowTestCase
()
{
}
public
NamedSkippedDataRowTestCase
(
IMessageSink
diagnosticMessageSink
,
TestMethodDisplay
defaultMethodDisplay
,
ITestMethod
testMethod
,
string
skipReason
,
object
[]
testMethodArguments
=
null
)
:
base
(
diagnosticMessageSink
,
defaultMethodDisplay
,
testMethod
,
skipReason
,
testMethodArguments
)
{
}
public
NamedSkippedDataRowTestCase
(
IMessageSink
diagnosticMessageSink
,
TestMethodDisplay
defaultMethodDisplay
,
TestMethodDisplayOptions
defaultMethodDisplayOptions
,
ITestMethod
testMethod
,
string
skipReason
,
object
[]
testMethodArguments
=
null
)
:
base
(
diagnosticMessageSink
,
defaultMethodDisplay
,
defaultMethodDisplayOptions
,
testMethod
,
skipReason
,
testMethodArguments
)
{
}
}
public
class
SkippableMessageBus
:
IMessageBus
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment