Ejemplo n.º 1
0
        public void TestDivisionNegative()
        {
            int                 inputA   = -10;
            int                 inputB   = -5;
            const int           EXPECTED = 2;
            ArithmeticLogicUnit alu      = new ArithmeticLogicUnit()
            {
                InputA = inputA,
                InputB = inputB
            };

            alu.Divide();
            Assert.AreEqual(EXPECTED, alu.Output);
        }