コード例 #1
0
        public void TestStrEncodingsDefault()
        {
            var r = StrEncodingsDefault.FromFile(SourceFile("str_encodings.bin"));

            Assert.AreEqual(r.Str1, "Some ASCII");
            Assert.AreEqual(r.Rest.Str2, "\u3053\u3093\u306b\u3061\u306f");
            Assert.AreEqual(r.Rest.Str3, "\u3053\u3093\u306b\u3061\u306f");
            Assert.AreEqual(r.Rest.Str4, "\u2591\u2592\u2593");
        }
コード例 #2
0
        public void TestStrEncodingsDefault()
        {
            var r = StrEncodingsDefault.FromFile(SourceFile("str_encodings.bin"));

            Assert.AreEqual(r.Str1, "Some ASCII");
            Assert.AreEqual(r.Rest.Str2, "こんにちは");
            Assert.AreEqual(r.Rest.Str3, "こんにちは");
            Assert.AreEqual(r.Rest.Str4, "░▒▓");
        }