Created
October 2, 2010 04:11
-
-
Save kkozmic/607284 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Base | |
{ | |
protected int @base; | |
[SetUp] | |
public void BaseSetUp() | |
{ | |
@base = 4; | |
} | |
} | |
[TestFixture] | |
public class Inherited : Base | |
{ | |
private int inherited; | |
[SetUp] | |
public void InheritedSetUp() | |
{ | |
inherited = 2; | |
} | |
[Test] | |
public void TestBoth() | |
{ | |
Assert.AreEqual(2, inherited); | |
Assert.AreEqual(4, @base); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment