public void IntFieldTest() { IntField field = new IntField(200, 101); IntField refield = new IntField(200); fieldmap.SetField(field); fieldmap.GetField(refield); Assert.That(101, Is.EqualTo(refield.Obj)); field.setValue(102); fieldmap.SetField(field); fieldmap.GetField(refield); Assert.That(102, Is.EqualTo(refield.Obj)); }
public void SetFieldOverwriteTest() { IntField field = new IntField(21901, 1011); IntField refield = new IntField(21901); fieldmap.SetField(field, false); fieldmap.GetField(refield); Assert.That(1011, Is.EqualTo(refield.Obj)); field.setValue(1021); IntField refield2 = new IntField(21901); fieldmap.SetField(field, false); fieldmap.GetField(refield2); Assert.That(refield.Obj, Is.EqualTo(1011)); fieldmap.SetField(field, true); IntField refield3 = new IntField(21901); fieldmap.GetField(refield3); Assert.That(1021, Is.EqualTo(refield3.Obj)); }
public void SetFieldOverwriteTest() { IntField field = new IntField(21901, 1011); IntField refield = new IntField(21901); fieldmap.SetField(field, false); fieldmap.GetField(refield); Assert.That(1011, Is.EqualTo(refield.Obj)); field.setValue(1021); IntField refield2 = new IntField(21901); fieldmap.SetField(field, false); fieldmap.GetField(refield2); Assert.That(refield.Obj, Is.EqualTo(1011)); fieldmap.SetField(field, true); IntField refield3 = new IntField(21901); fieldmap.GetField(refield3); Assert.That(1021, Is.EqualTo(refield3.Obj)); }
public void IntFieldTest() { IntField field = new IntField(200, 101); IntField refield = new IntField(200); fieldmap.SetField(field); fieldmap.GetField(refield); Assert.That(101, Is.EqualTo(refield.Obj)); field.setValue(102); fieldmap.SetField(field); fieldmap.GetField(refield); Assert.That(102, Is.EqualTo(refield.Obj)); }