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

            NewPayLoad pl = new NewPayLoad("UTF16String");

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

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

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

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