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); }
public void WTTTime_Prop_Seconds() { GroundFrame.Core.Timetables.WTTTime TestTime = new Core.Timetables.WTTTime(60); int SecondsResult = 60; Assert.Equal(SecondsResult, TestTime.Seconds); }
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)); }
public void WTTTime_Prop_FormattedLongTime(int Input, string ExpectedValue) { GroundFrame.Core.Timetables.WTTTime TestTime = new Core.Timetables.WTTTime(Input); Assert.Equal(ExpectedValue, TestTime.FormattedLongTime); }