Example #1
0
        public void IncrementDynamicTest()
        {
            dynamic _newStrongTypedInstance = new DynamicExampleClass();

            Assert.AreEqual <int>(11, _newStrongTypedInstance.Increment(10));
        }
Example #2
0
        public void IncrementDynamicWrongNumberOfParametersTest()
        {
            dynamic _newStrongTypedInstance = new DynamicExampleClass();

            Assert.AreEqual <int>(11, _newStrongTypedInstance.Increment(10, "10"));
        }
Example #3
0
        public void IncrementStringTest()
        {
            DynamicExampleClass _newStrongTypedInstance = new DynamicExampleClass();

            Assert.AreEqual <int>(11, _newStrongTypedInstance.Increment("10"));
        }