public void TryParse_Single() { Aver.IsTrue(HourList.TryParse("1-2", out var got)); Aver.IsTrue(HourList.TryParse("2-3", out got)); Aver.IsTrue(HourList.TryParse("14.5-18:30", out got)); Aver.IsTrue(HourList.TryParse("14.5-18.62", out got)); }
public void TryParse_Single_Malformed() { Aver.IsFalse(HourList.TryParse("14.z-18:30", out var got)); Aver.IsFalse(HourList.TryParse("14.5-18:t", out got)); Aver.IsFalse(HourList.TryParse("14.5-18:", out got)); Aver.IsFalse(HourList.TryParse("14.5-:2", out got)); Aver.IsFalse(HourList.TryParse("14.5-", out got)); Aver.IsFalse(HourList.TryParse("14.5-18:62", out got)); }
public void TryParse_Blank() { Aver.IsFalse(HourList.TryParse("", out var got)); Aver.IsFalse(HourList.TryParse(null, out got)); }