public ReadByte ( int index ) : byte | ||
index | int | the index of the field to read |
Результат | 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); }