示例#1
0
 public void AddMillsecondTest()
 {
     int hour = 1;
     int mins = 2;
     int second = 3;
     var target = new Time(hour, mins, second);
     int millsecond = 3;
     target = target.AddMillseconds(millsecond);
     var expcet = new TimeSpan(0, 1, 2, 3, 3);
     Assert.AreEqual(expcet.Ticks, expcet.Ticks);
 }
示例#2
0
        public void AddMillsecondTest()
        {
            int hour       = 1;
            int mins       = 2;
            int second     = 3;
            var target     = new Time(hour, mins, second);
            int millsecond = 3;

            target = target.AddMillseconds(millsecond);
            var expcet = new TimeSpan(0, 1, 2, 3, 3);

            Assert.AreEqual(expcet.Ticks, expcet.Ticks);
        }