public ReadBoolean ( int index, string trueValue = "true" ) : bool | ||
index | int | the index of the field to read |
trueValue | string | the literal corresponding to true (default is |
return | bool |
public void TestReadBooleanIndex2() { var fieldSet = new DefaultFieldSet(new[] { "Y" }); var read = fieldSet.ReadBoolean(0, "Y"); Assert.IsTrue(read); }
public void TestReadBooleanName2() { var fieldSet = new DefaultFieldSet(new[] { "name" }, new[] { "Y" }); var read = fieldSet.ReadBoolean("name", "Y"); Assert.IsTrue(read); }