예제 #1
0
        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);
        }
예제 #2
0
        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);
        }