Example #1
0
        public void some_men_backward_test()
        {
            // Arrange - set up context for what will come in our test
            var word           = "Some men interpret nine memos";
            var expectedResult = true;
            var backwardsTests = new Backwards();

            // Act
            bool actualResult = backwardsTests.BackwardsTests(word);

            // Assert - typically use an assertion library. x-unit comes built in with one
            Assert.Equal(expectedResult, actualResult);
        }
Example #2
0
        public void stars_backward()
        {
            // Arrange - set up context for what will come in our test
            var word           = "Stars";
            var expectedResult = false;
            var backwardsTests = new Backwards();

            // Act
            bool actualResult = backwardsTests.BackwardsTests(word);

            // Assert - typically use an assertion library. x-unit comes built in with one
            Assert.Equal(expectedResult, actualResult);
        }
Example #3
0
        public void second_backward_test()
        {
            // Arrange - set up context for what will come in our test
            var word           = "O, a kak Uwakov lil vo kawu kakao!";
            var expectedResult = true;
            var backwardsTests = new Backwards();

            // Act
            bool actualResult = backwardsTests.BackwardsTests(word);

            // Assert - typically use an assertion library. x-unit comes built in with one
            Assert.Equal(expectedResult, actualResult);
        }