ReadRawString() public method

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

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

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

            var read = fieldSet.ReadRawString(0);

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