예제 #1
0
        public void regenerate_should_regenerate_right_number()
        {
            // Given
            var nbr = new Mock<Number>();
            SUT = new Subtraction(new RealNumber(1), nbr.Object);

            // When
            SUT.Regenerate();

            // Then
            nbr.Verify(x => x.Regenerate());
        }