Пример #1
0
        public void ReverseTestEmptyString()
        {
            //arrange
            var input    = "";
            var expected = "dc-ba";

            RevStr su = new RevStr();

            //act
            var actual = su.Reverse(input);

            //assert
            Assert.Throws <InvalidOperationException>(() => su.Reverse(input));
        }
Пример #2
0
        public void ReverseTest()
        {
            //arrange
            var input    = "ab-cd";
            var expected = "dc-ba"; // Output1 poarta numele de expected in teste

            RevStr su = new RevStr();

            //act
            var actual = su.Reverse(input); // Output2 poarta numele de actual in teste

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