public void PreviousOrSame(LocalDateTime dateTime, LocalTime time, LocalDateTime expected) { // Arrange var adjuster = DateTimeAdjusters.PreviousOrSame(time); // Act var previousOrSame = adjuster(dateTime); // Assert previousOrSame.Should().Be(expected); }
public void Next(LocalDateTime dateTime, LocalTime time, LocalDateTime expected) { // Arrange var adjuster = DateTimeAdjusters.Next(time); // Act var next = adjuster(dateTime); // Assert next.Should().Be(expected); }