Beispiel #1
0
        public void NoArguments_0()
        {
            var signature = new VkMethodSignature {
                Name = "CreateInstance", ReturnType = "void"
            };

            Assert.AreEqual("public void CreateInstance()", signature.GetImplementation());
        }
Beispiel #2
0
        public void NoArguments_3()
        {
            var signature = new VkMethodSignature {
                Name = "CreateInstance", ReturnType = "Result", IsStatic = true
            };

            Assert.AreEqual("public static Result CreateInstance()", signature.GetImplementation());
        }
Beispiel #3
0
        public void OneArgument_1_Ref()
        {
            var signature = new VkMethodSignature {
                Name = "CreateInstance", ReturnType = "void"
            };

            signature.Parameters.Add(new VkMethodParameter {
                Name = "pCount", BaseCsType = "UInt32", UseRef = true
            });
            Assert.AreEqual(1, signature.Parameters.Count);
            Assert.AreEqual("public void CreateInstance(ref UInt32 pCount)", signature.GetImplementation());
        }