Example #1
0
        public void SaveToFileTest()
        {
            string tempFileName = Path.GetTempFileName();

            try
            {
                Charset charset1 = new Charset("0Az", 1, 2);
                charset1.SaveToFile(tempFileName);
                Charset charset2 = Charset.FromFile(tempFileName);

                Assert.AreEqual(charset1, charset2);
            }
            finally
            {
                File.Delete(tempFileName);
            }
        }