ReadString() public method

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

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

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

            var read = fieldSet.ReadString(0);

            Assert.AreEqual("string", read);
        }