예제 #1
0
        public void AddShouldReturnSumOfTwoNumbers()
        {
            // Arrange
            var sut = new Calculator();

            // Act
            var returnValue = sut.Add(3, 7);

            // Assert
            Assert.That(returnValue, Is.EqualTo(10));
        }
예제 #2
0
        public void AddShouldReturnSumOfTwoNumbers()
        {
            // Given that we have a calculator
            var sut = new Calculator();

            // When I add 3 and 7 together
            var returnValue = sut.Add(3, 7);

            // Then the result should be 10
            Assert.That(returnValue, Is.EqualTo(10));
        }