public void UtcNow_ReturnsProperUtcNow() { var generator = new ConstantTimeGenerator(new DateTimeOffset(1000, 1, 1, 1, 1, 1, TimeSpan.FromHours(1))); Assert.That(generator.UtcNow(), Is.EqualTo(new DateTimeOffset(1000, 1, 1, 0, 1, 1, TimeSpan.Zero))); }
public void Today_ReturnsProperToday() { var generator = new ConstantTimeGenerator(new DateTimeOffset(1000, 1, 1, 1, 1, 1, TimeSpan.FromHours(1))); Assert.That(generator.Today(), Is.EqualTo(new DateTime(1000, 1, 1))); }