public void ShouldReadFromRandomAccess() { var rx = new RandomAccess(new byte[] { 0x05, 0x48, 0x65, 0x6C, 0x6C, 0x6F }); var str = new TpsPString(rx, Encoding.ASCII); Assert.AreEqual("Hello", str.Value); }
public void ShouldReadFromString() { var str = new TpsPString("Hello"); Assert.AreEqual("Hello", str.Value); }