Skip to content

Instantly share code, notes, and snippets.

@ppanyukov
Created September 21, 2012 10:58
Show Gist options
  • Save ppanyukov/3760901 to your computer and use it in GitHub Desktop.
Save ppanyukov/3760901 to your computer and use it in GitHub Desktop.
Cool way to create, embed, and structure tests
internal static class FooBar
{
private static void DoStuff()
{
}
private static class SelfTests
{
[TestFixture]
public class DoStuff
{
[Test]
public void RunsFast()
{
FooBar.DoStuff();
}
}
}
}
@ppanyukov
Copy link
Author

This is the coolest stuff I've ever seen in my whole life.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment