Skip to content

Instantly share code, notes, and snippets.

@sdether
Created January 18, 2012 22:09
Show Gist options
  • Save sdether/1636128 to your computer and use it in GitHub Desktop.
Save sdether/1636128 to your computer and use it in GitHub Desktop.
public class IPageHierarchyTestBase {
protected bool _passed;
protected IPageHierarchyBL _hierarchy;
[Test]
public virtual void Can_get_page_by_id() {
Console.WriteLine("running test");
Assert.IsNotNull(_hierarchy);
}
}
[TestFixture]
public class LegacyPageHierachyTests : IPageHierarchyTestBase {
[SetUp]
public void Setup() {
_hierarchy = new LegacyPageHierarchyBL(null);
}
public override void Can_get_page_by_id() {
Console.WriteLine("setting up test");
base.Can_get_page_by_id();
}
}
[TestFixture]
public class PageHierachyTests : IPageHierarchyTestBase {
[SetUp]
public void Setup() {
_hierarchy = new PageHierarchyBL(null);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment