Пример #1
0
        public void VibratePatternConverToNumberArray()
        {
            var type = CreateTypeDefinition("VibratePattern");
            var name = NameService.GetTypeName(type);

            Assert.AreEqual("int[]", name);
        }
Пример #2
0
        public void GenericTypes(string genericType, string typeParameter1, string expectedType)
        {
            var type = CreateSingleParameterGeneric(genericType, typeParameter1);
            var name = NameService.GetTypeName(type);

            Assert.AreEqual(expectedType, name);
        }
Пример #3
0
        public void RegularTypes(string idlType, string csharpType)
        {
            var type = CreateTypeDefinition(idlType);
            var name = NameService.GetTypeName(type);

            Assert.AreEqual(csharpType, name);
        }