Example #1
0
        public void Padding_WithSurround_AddsWhereDoNotHave()
        {
            var origin = new List <string> {
                "[! not padded !]", "[! P-a-d-d-e-d !]", "[! also not padded !]"
            };

            var sut = PaddingCommand.CreateForTesting();

            var actual = sut.TestActingOnMultipleStrings(origin);

            var expected = new List <string> {
                "[! n-o-t p-a-d-d-e-d !]", "[! P-a-d-d-e-d !]", "[! a-l-s-o n-o-t p-a-d-d-e-d !]"
            };

            Assert.That.StringListsAreEqual(expected, actual);
        }
Example #2
0
        public void Padding_RemovesWhereHave()
        {
            var origin = new List <string> {
                "P-a-d-d-e-d", "not padded", "A-l-s-o p-a-d-d-e-d"
            };

            var sut = PaddingCommand.CreateForTesting();

            var actual = sut.TestActingOnMultipleStrings(origin);

            var expected = new List <string> {
                "Padded", "not padded", "Also padded"
            };

            Assert.That.StringListsAreEqual(expected, actual);
        }