public void TestSubtractNegative() { int inputA = -3; int inputB = -2; const int EXPECTED = -1; ArithmeticLogicUnit alu = new ArithmeticLogicUnit() { InputA = inputA, InputB = inputB }; alu.Subtract(); Assert.AreEqual(EXPECTED, alu.Output); }
public void TestSubtractPositive() { int inputA = 10; int inputB = 5; const int EXPECTED = 5; ArithmeticLogicUnit alu = new ArithmeticLogicUnit() { InputA = inputA, InputB = inputB }; alu.Subtract(); Assert.AreEqual(EXPECTED, alu.Output); }