示例#1
0
 public void ParseInvalidTimeSpan()
 {
     Assert.AreEqual(TimeSpan.Zero, ActivitySerializer.ParseTimeSpan("invalid"));
 }
示例#2
0
 public void ParseOldFormatTimeSpan()
 {
     Assert.AreEqual(TimeSpan.Parse("1:23:45"), ActivitySerializer.ParseTimeSpan("PT1H23M45S"));
 }