Created
June 15, 2020 13:49
-
-
Save jpschroeder/635ec6677d36805cee02adee702b4d47 to your computer and use it in GitHub Desktop.
Minimal NUnit With dotnet-script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "nuget: NUnit, 3.12.0" | |
#r "nuget: NUnitLite, 3.12.0" | |
using NUnit.Framework; | |
using NUnitLite; | |
public class MyTests | |
{ | |
[Test] | |
public void PassingTest() | |
=> Assert.IsTrue(true); | |
[Test] | |
public void FailingTest() | |
=> Assert.IsTrue(false); | |
} | |
new AutoRun().Execute(Args.ToArray()); | |
// dotnet script nunit-scripts.csx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment