Skip to content
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

Closed
wants to merge 58 commits into from
Closed

Port to Xunit #52

wants to merge 58 commits into from

Conversation

Arkatufus
Copy link

@Arkatufus Arkatufus commented Aug 21, 2020

Related to #45

  • Port NUnit to Xunit
  • Update build framework target from net45 to net452 and netstandard2.0

@Aaronontheweb
Copy link

Did you get a chance to see this comment by @marcpiechura from last year?

#46 (comment)

@Arkatufus
Copy link
Author

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" />
Copy link
Author

@Arkatufus Arkatufus Aug 21, 2020

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");
Copy link
Author

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
Copy link
Author

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

Arkatufus and others added 16 commits August 22, 2020 00:37
# 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
…`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]>
akarnokd and others added 29 commits May 18, 2021 00:11
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]>
…`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]>
…et461, update nuget package versions

Author:    Gregorius Soedharmo <[email protected]>
Signed-off-by: Gregorius Soedharmo <[email protected]>
@Arkatufus Arkatufus closed this by deleting the head repository May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants