예제 #1
0
        public void GetTypeAndFormatDescriptionTest()
        {
            var a = new ValueFormat
            {
                DataType = DataType.String
            };

            Assert.AreEqual("Text", a.GetTypeAndFormatDescription());
            var b = new ValueFormat
            {
                DataType = DataType.DateTime
            };

            Assert.IsTrue(b.GetTypeAndFormatDescription().Contains("Date Time"));
            Assert.IsTrue(b.GetTypeAndFormatDescription().Contains("MM/dd/yyyy"));
        }