public void Mix() { var time = new KustoTimeSpan(TimeSpan.FromDays(32) + TimeSpan.FromHours(5)); Assert.StartsWith("time(32:05", time.ToString()); }
public void Null() { var time = new KustoTimeSpan(null); Assert.Equal("time(null)", time.ToString()); }
public void MilliSeconds() { var time = new KustoTimeSpan(TimeSpan.FromMilliseconds(45)); Assert.Equal("45ms", time.ToString()); }
public void Seconds() { var time = new KustoTimeSpan(TimeSpan.FromSeconds(3)); Assert.Equal("3s", time.ToString()); }
public void Minutes() { var time = new KustoTimeSpan(TimeSpan.FromMinutes(7)); Assert.Equal("7m", time.ToString()); }
public void Hours() { var time = new KustoTimeSpan(TimeSpan.FromHours(2)); Assert.Equal("2h", time.ToString()); }
public void Days() { var time = new KustoTimeSpan(TimeSpan.FromDays(5)); Assert.Equal("5d", time.ToString()); }