Ejemplo n.º 1
0
        public void TestStrEncodings()
        {
            StrEncodings r = StrEncodings.FromFile(SourceFile("str_encodings.bin"));

            Assert.AreEqual(r.Str1, "Some ASCII");
            Assert.AreEqual(r.Str2, "こんにちは");
            Assert.AreEqual(r.Str3, "こんにちは");
            Assert.AreEqual(r.Str4, "░▒▓");
        }
        public void TestStrEncodings()
        {
            var r = StrEncodings.FromFile(SourceFile("str_encodings.bin"));

            Assert.AreEqual(r.Str1, "Some ASCII");
            Assert.AreEqual(r.Str2, "\u3053\u3093\u306b\u3061\u306f");
            Assert.AreEqual(r.Str3, "\u3053\u3093\u306b\u3061\u306f");
            Assert.AreEqual(r.Str4, "\u2591\u2592\u2593");
        }