Skip to content

Instantly share code, notes, and snippets.

@kkozmic
Created October 2, 2010 04:11
Show Gist options
  • Save kkozmic/607284 to your computer and use it in GitHub Desktop.
Save kkozmic/607284 to your computer and use it in GitHub Desktop.
[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