Exemple #1
0
        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);
        }
Exemple #2
0
        public void ShouldReadFromString()
        {
            var str = new TpsPString("Hello");

            Assert.AreEqual("Hello", str.Value);
        }