示例#1
0
        public void StringFormatTest()
        {
            Time2  strgFormat     = new Time2(20, 35, 59);
            string strgFormatCopy = "20:35:59";

            Assert.AreEqual(strgFormatCopy, strgFormat.ToUniversalString());
        }
示例#2
0
        public void NegativeToStringTest2()
        {
            Time2  strgFormat     = new Time2(13, 35, 59);
            string strgFormatCopy = "13:35:59 AM";

            Assert.AreNotEqual(strgFormatCopy, strgFormat.ToUniversalString());
        }