protected override void Establish_context() { _spec = new MixinIsAbstractWithProtectedNonParameterlessConstructorSpec(); _childClass = new ChildClass(); }
public void Can_Call_All_Public_Members() { _spec.PublicAbstractMethod().ShouldEqual("Target-PublicAbstractMethod"); _spec.PublicVirtualMethod().ShouldEqual("Target's Public Virtual Method"); _spec.RegularMethod().ShouldEqual("Hello World"); MixinIsAbstractWithProtectedNonParameterlessConstructorSpec.PublicStaticMethod().ShouldEqual("public static method"); _spec.OtherMixinMethod().ShouldEqual("Other Mixin Method"); _spec.PublicVirtualProperty = "Test"; _spec.PublicVirtualProperty.ShouldEqual("Test"); }