6566676869707172737475
acia.write(1, 'a'); verify(mockBus, never()).assertIrq(); // Transmission should cause IRQ acia.txRead(); verify(mockBus, atLeastOnce()).assertIrq(); } @Test
8485868788899091929394
// Write data acia.write(DATA_REG, 'a'); // Transmission should cause IRQ acia.txRead(); verify(mockBus, never()).assertIrq(); } @Test
5354555657585960616263
acia.write(0, 'a'); verify(mockBus, never()).assertIrq(); // Transmission should cause IRQ acia.txRead(); verify(mockBus, atLeastOnce()).assertIrq(); } @Test
7273747576777879808182
// Write data acia.write(0, 'a'); // Transmission should cause IRQ acia.txRead(); verify(mockBus, never()).assertIrq(); } @Test
142143144145146147148149150151
assertEquals(0x08, acia.read(0x0001)); assertEquals('a', acia.rxRead()); assertEquals('b', acia.txRead()); assertEquals(0x10, acia.read(0x0001)); } }