Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 public void TryParse_Blank()
 {
     Aver.IsFalse(HourList.TryParse("", out var got));
     Aver.IsFalse(HourList.TryParse(null, out got));
 }