Exemple #1
0
 public void GetCharTest()
 {
     fieldmap.SetField(new CharField(20, 'a'));
     Assert.That(fieldmap.GetChar(20), Is.EqualTo('a'));
     fieldmap.SetField(new StringField(21, "b"));
     Assert.That(fieldmap.GetChar(21), Is.EqualTo('b'));
     Assert.Throws(typeof(FieldNotFoundException),
                   delegate { fieldmap.GetString(99900); });
 }