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); }