Пример #1
0
        public void TestMethod4()
        {
            string expected = "aaa";
            string msg = "zzz";
            EncryptionHelper th = new EncryptionHelper();

            string actual = th.encryptMessage(msg);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void TestMethod5()
        {
            string msg = "abc 123def";
            string expectedResult = "bcd 123efg";
            EncryptionHelper th = new EncryptionHelper();

            string actualResult = th.encryptMessage(msg);

            Assert.AreNotEqual(expectedResult, actualResult);
        }
Пример #3
0
        public void TestMethod1()
        {
            //arrange
            char expected = 'b';
            char msg = 'a';
            EncryptionHelper th = new EncryptionHelper();

            //act
            char actual = th.encryptAlphabet(msg);

            //assert
            Assert.AreEqual(expected, actual);
        }