public void ShouldChangeSwitchInput() { TestContext.WriteLine("should change switch input"); cpuBoard.start(); cpuBoard.setSwitchInput(11); cpuBoard.setSwitchInput(13); var state = cpuBoard.getState(); var result = state.asic?.wpc.inputState; Assert.That(result[1], Is.EqualTo(5)); }
public void setSwitchInput(byte switchNr, bool?optionalValue = null) { cpuBoard.setSwitchInput(switchNr, optionalValue); }