예제 #1
0
        public void Test_Kill_InputStarInTheEnd_ExpectedLeftCharFromStarRemoved()
        {
            var star     = new StarKill();
            var expected = "ad*";
            var actual   = star.Kill("ad*");

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
        public void Test_Kill_InputNoStarInTheMiddle_ExpectedTheSameAsInput()
        {
            var star     = new StarKill();
            var expected = "ad";
            var actual   = star.Kill("ad");

            Assert.AreEqual(expected, actual);
        }
예제 #3
0
        public void Test_Kill_InputStarInTheBeginning_ExpectedRightCharFromStarRemoved()
        {
            var star     = new StarKill();
            var expected = "*ad";
            var actual   = star.Kill("*ad");

            Assert.AreEqual(expected, actual);
        }
예제 #4
0
        public void Test_Kill_InputThreeStarsInTheMiddle_ExpectedLeftAndRightEliminated()
        {
            var star     = new StarKill();
            var expected = "a***d";
            var actual   = star.Kill("ab***cd");

            Assert.AreEqual(expected, actual);
        }