-
Notifications
You must be signed in to change notification settings - Fork 27
Port to Xunit #52
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
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 |
| <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
| 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 <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
…`TckAssert.Fail` Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Subscritpion to Subscription Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
* added xml documentation * Updated NUnit runner Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
…`TckAssert.Fail` Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
…et461, update nuget package versions Author: Gregorius Soedharmo <arkatufus@yahoo.com> Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
Signed-off-by: Gregorius Soedharmo <arkatufus@yahoo.com>
…ms-dotnet into Update_to_Xunit
Related to #45