Skip to content

Instantly share code, notes, and snippets.

@jpschroeder
Created June 15, 2020 13:49
Show Gist options
  • Save jpschroeder/635ec6677d36805cee02adee702b4d47 to your computer and use it in GitHub Desktop.
Save jpschroeder/635ec6677d36805cee02adee702b4d47 to your computer and use it in GitHub Desktop.
Minimal NUnit With dotnet-script
#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