Example #1
0
        public void TestJSDateArray()
        {
            var typeStructure = new TypeStructure
            {
                IsArray     = true,
                Name        = "Test Property",
                Type        = typeof(DateTime),
                IsSytemType = true
            };
            var propertyComment = new PropertyComment(typeStructure).GetText();

            Assert.AreEqual("/**\r\n    * @type Date[]\r\n*/", propertyComment);
        }
Example #2
0
        public void TestJSClass()
        {
            var typeStructure = new TypeStructure
            {
                IsArray     = true,
                Name        = "Test Property",
                TypeName    = "Person",
                Type        = typeof(Person),
                IsSytemType = false
            };
            var propertyComment = new PropertyComment(typeStructure).GetText();

            Assert.AreEqual("/**\r\n    * @type Person[]\r\n*/", propertyComment);
        }