コード例 #1
0
        public void Execute_ValidArgument_ReturnsGrepedText()
        {
            var command = new GrepCommand();

            var result = (string)command.Execute(new GrepArgs
            {
                FileName = "doc.txt",
                Regex    = "foo"
            });

            StringAssert.Contains("foo bar baz", result);
        }