Exemplo n.º 1
0
        public void Virtual_Method_Should_Be_Overridden_In_Host()
        {
            const string name = "Hello World!";

            MixinWithVirtualMember specAsMixin = _spec;


            specAsMixin.PrettyPrint(name).ShouldNotEqual(
                new MixinWithVirtualMember().PrettyPrint(name));
        }
Exemplo n.º 2
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));
        }