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())
105
105
.ShouldRedirectTo <SomeOtherController >(c => c .SomeAction ());
106
106
107
107
_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" );
109
115
110
116
_controller .WithCallTo (c => c .Index ())
111
117
.ShouldGiveHttpStatus (404 );
112
118
113
119
_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
+ });
118
123
```
119
124
120
125
Any questions , comments or additions ?
You can’t perform that action at this time.
0 commit comments