File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -105,16 +105,21 @@ _controller.WithCallTo(c => c.Index())
105105 .ShouldRedirectTo <SomeOtherController >(c => c .SomeAction ());
106106
107107_controller .WithCallTo (c => c .Index ())
108- .ShouldRenderFile (" text/plain" );
108+ .ShouldRenderAnyFile (" content/type" );
109+
110+ _controller .WithCallTo (c => c .Index ())
111+ .ShouldRenderFileContents (" text" );
112+
113+ _controller .WithCallTo (c => c .Index ())
114+ .ShouldReturnContent (" expected content" );
109115
110116_controller .WithCallTo (c => c .Index ())
111117 .ShouldGiveHttpStatus (404 );
112118
113119_controller .WithCallTo (c => c .Index ()).ShouldReturnJson (data =>
114- {
115- Assert .That (data .SomeProperty , Is .EqualTo (" SomeValue" );
116- }
117- );
120+ {
121+ Assert .That (data .SomeProperty , Is .EqualTo (" SomeValue" );
122+ });
118123```
119124
120125Any questions , comments or additions ?
You can’t perform that action at this time.
0 commit comments