using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnitTestSharp; using UnitTestSharp.Extensions; using System.Reflection; namespace TestsForUnitTestSharp.Extensions { public class DummyWrapper { public class MethodBaseExtensionsTests : TestFixture { public void Works() { var frame = new System.Diagnostics.StackFrame(true); string pedigree = "TestsForUnitTestSharp.Extensions::DummyWrapper.MethodBaseExtensionsTests::Works"; CheckEqual(pedigree, frame.GetMethod().ExtractPedigree()); } } } public class Base : UnitTestSharp.TestFixture { [IgnoreTest] public void Test() { } } public class Derived : Base { public void DerivedPedigree() { CheckEqual("TestsForUnitTestSharp.Extensions::Derived::Test", GetType().GetMethod("Test").ExtractPedigree()); } } }