示例#1
0
            public void It_should_add_numbers()
            {
                var calc = new Calculator();

                var sum = calc.Add(1, 1);

                sum.Should().Be(2);
            }
示例#2
0
            public void It_should_add_and_subtract_numbers()
            {
                var calc = new Calculator();

                int sum = calc.Add(1, 1);
                int answer = calc.Subtract(sum, 1);

                answer.Should().Be(1);
            }