public void TestHasInterruptionAfterAcknowledgeWhenMultiple() { InterruptionController controller = new InterruptionController(); byte irq = 3; byte irq2 = 4; controller.MakeInterruption(irq); controller.MakeInterruption(irq2); controller.AcknowledgeInterruption(); Assert.IsTrue(controller.HasInterruptionRequests()); }
public void TestAcknolegdeInterruptionAfterMakeInterruption() { InterruptionController controller = new InterruptionController(); byte irq = 3; controller.MakeInterruption(irq); Assert.AreEqual(irq, controller.AcknowledgeInterruption()); }
public void TestHasInterruptionAfterMakeInterruption() { InterruptionController controller = new InterruptionController(); byte irq = 3; controller.MakeInterruption(irq); Assert.IsTrue(controller.HasInterruptionRequests()); }
public void TestHasNoInterruptionAfterClear() { InterruptionController controller = new InterruptionController(); byte irq = 3; controller.MakeInterruption(irq); controller.Clear(); Assert.IsFalse(controller.HasInterruptionRequests()); }
public void TestClearInterruptionsClearOnlyCurrent() { InterruptionController controller = new InterruptionController(); byte irq = 3; controller.MakeInterruption(irq); controller.ClearInterruptions(); Assert.IsTrue(controller.HasInterruptionRequests()); }
public void TestHasNoInterruptionAfterAcknowledgeWhenSingle() { InterruptionController controller = new InterruptionController(); byte irq = 3; controller.MakeInterruption(irq); controller.AcknowledgeInterruption(); Assert.IsFalse(controller.HasInterruptionRequests()); }