Exemple #1
0
        public void Subtra_3From8_Return5()
        {
            var calculator = new Calculator();

            var result = calculator.Subtract(3, 8);

            result.Should().Be(5)
        }
Exemple #2
0
        public void Subtract_6From10_Return4()
        {
            var calculator = new Calculator();

            var result = calculator.Subtract(6, 10);

            result.Should().Be(4);
        }
Exemple #3
0
        public void Add_TwoNumbers_ReturnSumOfNumbers()
        {
            var calculator = new Calculator(); //arrange

            var result = calculator.Add(1, 2);

            result.Should().Be(3);
        }
Exemple #4
0
 public void InitTest()
 {
     _calculator = new Calculator();
 }