Пример #1
0
        public void TestReadChar()
        {   //PASSED
            initPOFWriter();
            writer.Write('a');
            writer.Write(char.MinValue);
            writer.Write(char.MaxValue);
            writer.Write((char)0x0080);
            writer.Write((char)0x0800);

            initPOFReader();
            Assert.AreEqual('a', PofHelper.ReadChar(reader));
            Assert.AreEqual(char.MinValue, PofHelper.ReadChar(reader));
            Assert.AreEqual(char.MaxValue, PofHelper.ReadChar(reader));
            Assert.AreEqual((char)0x0080, PofHelper.ReadChar(reader));
            Assert.AreEqual((char)0x0800, PofHelper.ReadChar(reader));
        }