public void GetInputRegisterTest() { UInt16 index = 10; MemoryMap map = new MemoryMap(); map.AddInputRegister(new Register(index) { Value = 100 }); map.SetInputRegister(index, 100); UInt16 result = map.GetInputRegister(index); Assert.AreEqual(result, 100); }