public void TestCanAddTwoIntegers() { int input1 = 1; int input2 = 2; int expected = 3; Addition operation_class = new Addition(); Assert.AreEqual(expected, operation_class.Add(input1, input2)); // "Add" must be defined. }
public void CanAddTwoNegativeNumbers() { int input1 = -1; int input2 = -4; int expected = -5; Addition operation_class = new Addition(); Assert.AreEqual(expected, operation_class.Add(input1, input2)); }