Skip to content

Instantly share code, notes, and snippets.

@asbjornu
Created February 24, 2014 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asbjornu/9183938 to your computer and use it in GitHub Desktop.
Save asbjornu/9183938 to your computer and use it in GitHub Desktop.
Unit test syntax for C#
public class HelloWorld
{
public string Say()
{
return "Hello World!";
}
test
{
void Say_ReturnsHelloWorld()
{
var hello = new HelloWorld();
Assert.That(hello.Say(), Is.EqualTo("Hello World!"));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment