示例#1
0
        public void Removes_Words_Equal_To_Two_Characters()
        {
            var text = "XY";

            var filter = new LengthFilter(2);

            var result = filter.Execute(text).Trim();

            Assert.Equal(string.Empty, result);
        }
示例#2
0
        public void Ignores_Words_Greater_Than_Two_Characters()
        {
            var text = "XYZ";

            var filter = new LengthFilter(2);

            var result = filter.Execute(text).Trim();

            Assert.Equal(text, result);
        }