public void ValueBackingTest1() { var backing = new MockRegisterValueBacking(); var reg = new Register(RegisterName.Unnamed, backing); reg.RegisterValue = RegisterValue.OfString("foo", OperationKind.CharacterWise); Assert.AreEqual("foo", backing.RegisterValue.StringValue); }
public void ValueBackingTest2() { var backing = new MockRegisterValueBacking(); var reg = new Register(RegisterName.Unnamed, backing); backing.Value = new RegisterValue(StringData.NewSimple("foo"), OperationKind.CharacterWise); Assert.AreEqual("foo", reg.StringValue); }