Created
February 24, 2014 08:39
-
-
Save asbjornu/9183938 to your computer and use it in GitHub Desktop.
Unit test syntax for C#
This file contains 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
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