public void DecryptLine_EmptyText_ReturnNotEnrypted()
        {
            CezarLib.CezarEncryptor toTest = new CezarEncryptor();
            toTest.SetKeyWord("1", KeywordType.Number);

            var res = toTest.DecryptLine("!     ");

            Assert.AreEqual("!     ", res);
        }
        public void DecryptLine_WordKey_ReturnPredefined()
        {
            CezarLib.CezarEncryptor toTest = new CezarEncryptor();
            toTest.SetKeyWord("A", KeywordType.Word);

            var res = toTest.DecryptLine("BCÇEA");

            Assert.AreEqual("ABCDZ", res);
        }
        public void DecryptLine_NumberKey_SkipWhitespace()
        {
            CezarLib.CezarEncryptor toTest = new CezarEncryptor();
            toTest.SetKeyWord("42", KeywordType.Number);

            var res = toTest.DecryptLine("OVÖG ÜCOKRNHŞM");

            Assert.AreEqual("KULE SAKİNLERİ", res);
        }
        public void EncryptLine_NumberKey_SkipWhiteSpace()
        {
            CezarLib.CezarEncryptor toTest = new CezarEncryptor();
            toTest.SetKeyWord("42", KeywordType.Number);

            var res = toTest.EncryptLine("Kule S");

            Assert.AreEqual("OVÖG Ü", res);
        }
        public void EncryptLine_NumberKey_ReturnPredefined()
        {
            CezarLib.CezarEncryptor toTest = new CezarEncryptor();
            toTest.SetKeyWord("1", KeywordType.Number);

            var res = toTest.EncryptLine("ABCDZ");

            Assert.AreEqual("BCÇEA", res);
        }
        public void EncryptLineTest_UpperLowerText_EncryptionShouldMatch()
        {
            CezarLib.CezarEncryptor toTest = new CezarEncryptor();
            toTest.SetKeyWord("1", KeywordType.Number);

            var resUpper = toTest.EncryptLine("SELAM DURDU KİMİ ZAMAN YILDIZLARA");

            var resLower = toTest.EncryptLine("selam durdu kimi zaman yıldızlara");

            Console.WriteLine(resUpper);

            Console.WriteLine(resLower);

            Assert.AreEqual(resLower, resUpper);
        }