ReadChar() public method

Reads a field as a character.
 if the index does not correspond to a field
public ReadChar ( int index ) : char
index int the index of the field to read
return char
        public void TestReadBooleanName()
        {
            var fieldSet = new DefaultFieldSet(new[] { "name" }, new[] { "c" });

            var read = fieldSet.ReadChar("name");

            Assert.AreEqual('c', read);
        }
        public void TestReadBooleanIndex()
        {
            var fieldSet = new DefaultFieldSet(new[] { "c" });

            var read = fieldSet.ReadChar(0);

            Assert.AreEqual('c', read);
        }