Skip to content

Instantly share code, notes, and snippets.

@stoolrossa
Created July 26, 2013 09:54
Show Gist options
  • Save stoolrossa/6087691 to your computer and use it in GitHub Desktop.
Save stoolrossa/6087691 to your computer and use it in GitHub Desktop.
[TestClass]
public abstract class SpecificationContext
{
[TestInitialize]
public void Init()
{
Given();
When();
}
public virtual void Given()
{
}
public virtual void When()
{
}
[TestCleanup]
public void TestCleanup()
{
Cleanup();
}
protected virtual void Cleanup()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment