コード例 #1
0
ファイル: FieldMapTests.cs プロジェクト: unzhin/quickfixn
 public void GetBooleanTest()
 {
     fieldmap.SetField(new BooleanField(200, true));
     Assert.That(fieldmap.GetBoolean(200), Is.EqualTo(true));
     fieldmap.SetField(new StringField(201, "N"));
     Assert.That(fieldmap.GetBoolean(201), Is.EqualTo(false));
     Assert.Throws(typeof(FieldNotFoundException),
                   delegate { fieldmap.GetString(99900); });
 }