예제 #1
0
        public void DecriptJulioCesar_WithValidTexts_Decript()
        {
            //Arrange
            string original = "abcde.fghijk,lmno/pqr-stuvwxyz";
            string expected = "zabcd.efghij,klmn/opq-rstuvwxy";

            //Act
            var criptService = new CriptService();

            var result = criptService.DecriptJulioCesar(original, 1);

            //Assert
            Assert.AreEqual(result, expected);
        }
예제 #2
0
        public void DecriptJulioCesar_WithValidTexts_Cript()
        {
            //Arrange
            string original = "abcde.fghijk,lmno/pqr-stuvwxyz";
            string expected = "bcdef.ghijkl,mnop/qrs-tuvwxyza";

            //Act
            var criptService = new CriptService();

            var result = criptService.DecriptJulioCesar(original, -1);

            //Assert
            Assert.AreEqual(result, expected);
        }