public void NextValue() { var source = new DateTimeSource(); for (int i = 0; i < 10; i++) { var nextValue = source.NextValue(null); _output.WriteLine($"Value {i}: {nextValue}"); } }
public void Now_ReturnsCurrentDateAndTime() { // Arrange DateTimeSource target = new DateTimeSource(); // Act DateTime result = target.Now; // Assert DateTime expected = DateTime.Now; result.Minute.Should().Be(expected.Minute); result.Hour.Should().Be(expected.Hour); result.Day.Should().Be(expected.Day); result.Month.Should().Be(expected.Month); }