Example #1
0
        public void TestVirtualMethod()
        {
            var mock = Substitute.For <ClassNonVirtualMethods>();
            var sut  = new ClassToTest();

            sut.CallVirtualMethod(mock);
        }
Example #2
0
        public void TestNonVirtualMethodWithMockClass()
        {
            var mock = new MockClassWithNonVirtualMethods();
            var sut  = new ClassToTest();

            sut.CallNonVirtualMethod(mock);
        }