Beispiel #1
0
        public void TestSubtractMethod()
        {
            CalculatorClass obj2   = new CalculatorClass();
            int             result = obj2.Subtract(4, 5);

            Assert.That(result, Is.EqualTo(-1));
        }
Beispiel #2
0
        public void VerifySubtractMethodReturnsCorrectDifferenceOfTwoNumbers()
        {
            CalculatorClass obj2   = new CalculatorClass();
            int             result = obj2.Subtract(4, 5);

            Assert.That(result, Is.EqualTo(-1));
        }
Beispiel #3
0
        public void VerifySubtractMethodReturnsCorrectDifferenceOfTwoNumbers(double num1, double num2)
        {
            CalculatorClass obj2   = new CalculatorClass();
            double          result = obj2.Subtract(num1, num2);

            Assert.That(result, Is.EqualTo(result));
        }
        public void SubtractTest(double a, double b, double expected)
        {
            //Act
            double res = uut.Subtract(a, b);

            //Assert
            Assert.That(res, Is.EqualTo(expected));
        }
Beispiel #5
0
        public void SubtractionTest()
        {
            //Act
            double result = uut.Subtract(10, 5);

            //Assert
            Assert.That(result, Is.EqualTo(5));
        }
        public void SubtractTEST(int a, int b, int expected)
        {  //Arrange
            CalculatorClass calcInstance = new CalculatorClass();

            //Act
            int actual = calcInstance.Subtract(a, b);

            //Assert
            Assert.Equal(expected, actual);
        }
Beispiel #7
0
 public void Subtract_8minus3_isEqualTo5()
 {
     Assert.That(uut.Subtract(8, 3), Is.EqualTo(5));
 }
 public void Subtract_SubtractTwoNumbers(double a, double b, double result)
 {
     Assert.That(uut.Subtract(a, b), Is.EqualTo(result));
 }
 public void SubtractThree_Minus_Two_ReturnOne()
 {
     Assert.That(uut.Subtract(3, 2), Is.EqualTo(1));
 }
Beispiel #10
0
 public void Subtract_AminusB_isEqualToC(double A, double B, double C)
 {
     Assert.That(uut.Subtract(A, B), Is.EqualTo(C));
 }
 public void TestSubtract()
 {
     Assert.AreEqual(1, calc.Subtract(5, 4));
 }