예제 #1
0
        public void EncodingUtility_ChangeEncoding_3()
        {
            string expected = "";
            string actual   = EncodingUtility.ChangeEncoding
                              (
                "",
                EncodingUtility.Cp866,
                EncodingUtility.Windows1251
                              );

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void EncodingUtility_ChangeEncoding_1()
        {
            string expected = "Привет";
            string actual   = EncodingUtility.ChangeEncoding
                              (
                "╧ЁштхЄ",
                EncodingUtility.Windows1251,
                EncodingUtility.Cp866
                              );

            Assert.AreEqual(expected, actual);
        }