public void PdRgPutsValueFromGeneralRegisters1ToSBus() { sequencer.GeneralRegisters[1].Data.Value = 10; sequencer.SelectedRegister = 1; SBusOperationsMethods.PdRg(sequencer); Assert.AreEqual(sequencer.GeneralRegisters[1].Data.Value, sequencer.SBus.Data.Value); }
public void PdRgThrowsArgumentExceptionForSelectedRegisterTooBig() { sequencer.SelectedRegister = GeneralRegisters.Constants.MaximumRegisterNumber + 1; SBusOperationsMethods.PdRg(sequencer); }