Created
September 21, 2012 10:58
-
-
Save ppanyukov/3760901 to your computer and use it in GitHub Desktop.
Cool way to create, embed, and structure tests
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
internal static class FooBar | |
{ | |
private static void DoStuff() | |
{ | |
} | |
private static class SelfTests | |
{ | |
[TestFixture] | |
public class DoStuff | |
{ | |
[Test] | |
public void RunsFast() | |
{ | |
FooBar.DoStuff(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the coolest stuff I've ever seen in my whole life.