Exemple #1
0
        public void EncryptTest(string passed, string result)
        {
            passed = directory + passed;
            result = directory + result;
            EncryptingMachine machine = new EncryptingMachine()
            {
                Key = "скорпион"
            };
            TextLoader textLoader = new TextLoader(passed, Encoding.UTF8);

            textLoader.Encrypt(machine);
            string expected = File.ReadAllText(result);

            Assert.Equal(expected, textLoader.Print());
        }