Ejemplo n.º 1
0
        public void TextObjectGetPropertyTypeTest()
        {
            const string source     = "int:1 string:Test double:1.1\r\n";
            var          textObject = new TextObject(source);

            Assert.AreEqual("System.Int32", textObject.GetPropertyType("int:(.*?)\\s"), "Int OK");
            Assert.AreEqual("System.String", textObject.GetPropertyType("string:(.*?)\\s"), "String OK");
            Assert.AreEqual("System.Double", textObject.GetPropertyType("double:(.*?)\\s"), "Double OK");
            Assert.IsNull(textObject.GetPropertyType("bogus:(.*)\\s"), "Not found OK");
        }