예제 #1
0
        public void TestCase1()
        {
            var check = new VkReturnTypeCheck {
                ReturnType = "Result", Variable = "first_call"
            };

            Assert.AreEqual("if ( first_call == Result.Success ) return first_call;", check.GetImplementation());
        }
예제 #2
0
        public void TestCase3()
        {
            var check = new VkReturnTypeCheck {
                ReturnType = "UInt32", Variable = "first_call"
            };

            Assert.AreEqual("if ( first_call == 0 ) return first_call;", check.GetImplementation());
        }