ReadBoolean() public method

Reads a field as a boolean.
 if the index does not correspond to a field
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 "true")
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);
        }