예제 #1
0
        public void Virtual_Method_Should_Be_Overridden_In_Child()
        {
            const string name = "Hello World!";

            MixinWithVirtualMember specAsMixin  = _spec;
            MixinWithVirtualMember childAsMixin = new ChildTest();

            var childPrettyPrint = childAsMixin.PrettyPrint(name);

            specAsMixin.PrettyPrint(name).ShouldNotEqual(
                childAsMixin.PrettyPrint(name));
        }
        public void Virtual_Method_Should_Be_Overridden_In_Child()
        {
            const string name = "Hello World!";

            MixinWithVirtualMember specAsMixin = _spec;
            MixinWithVirtualMember childAsMixin = new ChildTest();

            var childPrettyPrint = childAsMixin.PrettyPrint(name);

            specAsMixin.PrettyPrint(name).ShouldNotEqual(
                childAsMixin.PrettyPrint(name));
        }