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

            Assert.IsTrue(string.IsNullOrEmpty(a.GetFormatDescription()));
            var b = new ValueFormat
            {
                DataType = DataType.DateTime
            };

            Assert.IsTrue(b.GetFormatDescription().Contains("MM/dd/yyyy"));
        }