コード例 #1
0
        public void WTTTime_Prop_DateAndTime()
        {
            GroundFrame.Core.Timetables.WTTTime TestTime = new Core.Timetables.WTTTime(60);
            DateTime DateTimeResult = new DateTime(1850, 1, 1, 0, 1, 0);

            Assert.Equal(DateTimeResult, TestTime.DateAndTime);
        }
コード例 #2
0
        public void WTTTime_Prop_Seconds()
        {
            GroundFrame.Core.Timetables.WTTTime TestTime = new Core.Timetables.WTTTime(60);
            int SecondsResult = 60;

            Assert.Equal(SecondsResult, TestTime.Seconds);
        }
コード例 #3
0
 public void WTTTime_Method_FormattedTime(int Input, WTTTimeFormat Format, string Delimiter, string ExpectedValue)
 {
     GroundFrame.Core.Timetables.WTTTime TestTime = new Core.Timetables.WTTTime(Input);
     Assert.Equal(ExpectedValue, TestTime.FormatTime(Format, Delimiter));
 }
コード例 #4
0
 public void WTTTime_Prop_FormattedLongTime(int Input, string ExpectedValue)
 {
     GroundFrame.Core.Timetables.WTTTime TestTime = new Core.Timetables.WTTTime(Input);
     Assert.Equal(ExpectedValue, TestTime.FormattedLongTime);
 }