public void ShouldCreateTimeWithTimeSpan() { var time = new TimeSpan(0, 13, 59, 59, 255); var cypherTime = new CypherTime(time); cypherTime.ToTimeSpan().Should().Be(time); }
public void ShouldCreateTimeWithRawValues() { var time = new TimeSpan(0, 13, 59, 59, 25); var cypherTime = new CypherTime(time.Ticks * 100); cypherTime.ToTimeSpan().Should().Be(time); }
public void ShouldCreateTimeWithTimeComponents() { var cypherTime = new CypherTime(13, 15, 59); cypherTime.ToTimeSpan().Should().Be(new TimeSpan(13, 15, 59)); }