ReadByte() public method

Reads a field as a byte.
 if the index does not correspond to a field
public ReadByte ( int index ) : byte
index int the index of the field to read
return byte
        public void TestReadByteName()
        {
            var fieldSet = new DefaultFieldSet(new[] { "name" }, new[] { "255" });

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

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

            var read = fieldSet.ReadByte(0);

            Assert.AreEqual(255, read);
        }