public void CacheTime_AsTimeSpan_AllZero_ReturnsZero() { CacheTime time = new CacheTime { Days = 0, Hours = 0, Minutes = 0, Seconds = 0 }; Assert.AreEqual(TimeSpan.Zero, time.AsTimeSpan()); }
public void CacheTime_AsTimeSpan_MaxValue_ReturnsZero() { CacheTime time = new CacheTime { Days = int.MaxValue, Hours = 2, Minutes = 3, Seconds = 1 }; Assert.AreEqual(TimeSpan.Zero, time.AsTimeSpan()); }
public void CacheTime_AsTimeSpan_ValidTime_ReturnsTimeSpan() { CacheTime time = new CacheTime { Minutes = 1 }; Assert.AreEqual(TimeSpan.FromMinutes(1), time.AsTimeSpan()); }