コード例 #1
0
        public void WhenAddSecondsCalled_ExpectSameValueReturned()
        {
            // Arrange
            var now = DateTime.Now;
            const int added = 15;
            var expected = now.AddSeconds(added);

            // Act
            var target = new DateTimeWrap(now);
            var actual = target.AddSeconds(added);

            // Assert
            actual.DateTimeInstance.Should().Equal(expected);
        }