Ejemplo n.º 1
0
        public void UTF16String()
        {
            //Arrange
            string s0 = "Hello World גךעחךגכ ■N╜ !@#$!@#$% ÜÑ├µΦ";

            PayLoad pl = new PayLoad("UTF16String");

            pl.AddStringUTF16(s0);
            pl.ClosePackage();

            // Act
            byte[] b = pl.GetPackage();

            PayLoad pl2 = new PayLoad(b);
            string  s1  = pl2.GetStringUTF16();

            //Assert
            Assert.AreEqual(s0, s1);
        }