Created
October 2, 2010 01:24
-
-
Save staxmanade/607142 to your computer and use it in GitHub Desktop.
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
[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