public void Render_NoViewFound_ThrowsException() { _command.ViewEngines.Add <MustacheViewEngine>(); Action renderFileView = () => _command.RenderNonExistantView(); renderFileView.ShouldThrow <ViewEngineException>(ex => StringAssert.Contains("No view found", ex.Message)); }