Beispiel #1
0
        public void TestModuloNonZeroRemainder()
        {
            int                 inputA   = 13;
            int                 inputB   = 5;
            const int           EXPECTED = 3;
            ArithmeticLogicUnit alu      = new ArithmeticLogicUnit()
            {
                InputA = inputA,
                InputB = inputB
            };

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