Example #1
0
            public void WhenSearchTextExists_ShouldRemoveSearchText()
            {
                var classUnderTest = new RemoveSearchTextCommand(" original");

                classUnderTest.Execute("my original string");

                Assert.That(classUnderTest.Result, Is.EqualTo("my string"));
            }
Example #2
0
            public void WhenOriginalTextIsEmpty_ShouldRemoveNothing()
            {
                var classUnderTest = new RemoveSearchTextCommand(" original");

                classUnderTest.Execute(string.Empty);

                Assert.That(classUnderTest.Result, Is.EqualTo(string.Empty));
            }