public void Problem014_The_Karacas_Encryption_Algorithm_Test_1()
        {
            string encryptText = Problem014.TheKaracasEncryptionAlgorithm("apple");
            string expected    = "1lpp0aca";

            Assert.Equal(encryptText, expected);
        }
        public void Problem014_The_Karacas_Encryption_Algorithm_Test_4()
        {
            string encryptText = Problem014.TheKaracasEncryptionAlgorithm("burak");
            string expected    = "k0r3baca";

            Assert.Equal(encryptText, expected);
        }
        public void Problem014_The_Karacas_Encryption_Algorithm_Test_3()
        {
            string encryptText = Problem014.TheKaracasEncryptionAlgorithm("karaca");
            string expected    = "0c0r0kaca";

            Assert.Equal(encryptText, expected);
        }
        public void Problem014_Tests_1()
        {
            string[] strs = new string[] { "flower", "flow", "flight" };
            string   act  = Problem014.LongestCommonPrefix(strs);
            string   exp  = "fl";

            Assert.Equal(exp, act);
        }
        public void Problem014_Tests_3()
        {
            string[] strs = new string[] { "cir", "car" };
            string   act  = Problem014.LongestCommonPrefix(strs);
            string   exp  = "c";

            Assert.Equal(exp, act);
        }
Exemple #6
0
        public void Problem014()
        {
            var problem = new Problem014()
            {
                ConsoleOutput = false, DetailedOutput = false
            };

            Assert.AreEqual(837799L, problem.Answer());
        }
Exemple #7
0
        public void IsCorrectProblem014()
        {
            var problem = new Problem014();

            Assert.Equal(Answers["14"], problem.Solve());
        }