-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port to Xunit #52
Port to Xunit #52
Conversation
…`TckAssert.Fail`
Did you get a chance to see this comment by @marcpiechura from last year? |
Yes, that is possible to do in Xunit now |
@@ -19,7 +19,9 @@ | |||
</ItemGroup> | |||
|
|||
<ItemGroup> | |||
<PackageReference Include="NUnit" Version="3.7.1" /> | |||
<PackageReference Include="xunit" Version="2.4.1" /> | |||
<PackageReference Include="Xunit.SkippableFact" Version="1.4.13" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a small helper package that lets us skip Xunit tests programatically by throwing SkipException
@@ -314,7 +314,7 @@ public void Required_spec213_blackbox_onNext_mustThrowNullPointerExceptionWhenPa | |||
{ | |||
var element = default(T); | |||
if(element != null) | |||
throw new IgnoreException("Can't verify behavior for value types"); | |||
throw new SkipException("Can't verify behavior for value types"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IgnoreException is replaced with SkipException
|
||
namespace Reactive.Streams.TCK.Support | ||
{ | ||
public static class TckAssert |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This static class is added to add Assert.Ignore
(renamed to Skip) and Assert.Fail
convenience static methods
# Conflicts: # src/examples/Reactive.Streams.Example.Unicast.Tests/SyncSubscriberTest.cs # src/examples/Reactive.Streams.Example.Unicast.Tests/SyncSubscriberWhiteboxTest.cs # src/tck/Reactive.Streams.TCK.Tests/EmptyLazyPublisherTest.cs # src/tck/Reactive.Streams.TCK.Tests/IdentityProcessorVerificationTest.cs # src/tck/Reactive.Streams.TCK.Tests/RangePublisherTest.cs # src/tck/Reactive.Streams.TCK.Tests/SingleElementPublisherTest.cs # src/tck/Reactive.Streams.TCK.Tests/SubscriberBlackboxVerificationTest.cs # src/tck/Reactive.Streams.TCK.Tests/Support/TCKVerificationSupport.cs # src/tck/Reactive.Streams.TCK.Tests/SyncTriggeredDemandSubscriberTest.cs # src/tck/Reactive.Streams.TCK.Tests/SyncTriggeredDemandSubscriberWhiteboxTest.cs
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
…`TckAssert.Fail` Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Subscritpion to Subscription Signed-off-by: Gregorius Soedharmo <[email protected]>
* added xml documentation * Updated NUnit runner Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
…`TckAssert.Fail` Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
…et461, update nuget package versions Author: Gregorius Soedharmo <[email protected]> Signed-off-by: Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
…ms-dotnet into Update_to_Xunit
Related to #45