Skip to content

Instantly share code, notes, and snippets.

@staxmanade
Created October 2, 2010 01:24
Show Gist options
  • Save staxmanade/607142 to your computer and use it in GitHub Desktop.
Save staxmanade/607142 to your computer and use it in GitHub Desktop.
[TestFixture]
public class InheritedFixture
{
protected int _setupValue;
[SetUp]
public void ShouldNotRun()
{
_setupValue = 10;
}
[TearDown]
public void ShouldNotRunAlso()
{
}
}
[TestFixture]
public class SubClass : InheritedFixture
{
[Test]
public void Should_pass()
{
Assert.AreEqual(10, _setupValue);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment