@@ -173,15 +173,15 @@ internal FileStreamResultAssertions BeFileStreamResult(string reason, params obj
173173 }
174174
175175 /// <summary>
176- /// Asserts that the subject is an <see cref="JsonResult "/>.
176+ /// Asserts that the subject is an <see cref="PhysicalFileResult "/>.
177177 /// </summary>
178- public JsonResultAssertions BeJsonResult ( )
178+ internal PhysicalFileResultAssertions BePhysicalFileResult ( )
179179 {
180- return BeJsonResult ( string . Empty , null ) ;
180+ return BePhysicalFileResult ( string . Empty , null ) ;
181181 }
182182
183183 /// <summary>
184- /// Asserts that the subject is an <see cref="JsonResult "/>.
184+ /// Asserts that the subject is an <see cref="FileStreamResult "/>.
185185 /// </summary>
186186 /// <param name="reason">
187187 /// A formatted phrase as is supported by <see cref="string.Format(string,object[])" /> explaining why the assertion
@@ -190,26 +190,26 @@ public JsonResultAssertions BeJsonResult()
190190 /// <param name="reasonArgs">
191191 /// Zero or more objects to format using the placeholders in <see cref="reason" />.
192192 /// </param>
193- public JsonResultAssertions BeJsonResult ( string reason , params object [ ] reasonArgs )
193+ internal PhysicalFileResultAssertions BePhysicalFileResult ( string reason , params object [ ] reasonArgs )
194194 {
195195 Execute . Assertion
196196 . BecauseOf ( reason , reasonArgs )
197- . ForCondition ( Subject is JsonResult )
198- . FailWith ( Constants . CommonFailMessage , typeof ( JsonResult ) . Name , Subject . GetType ( ) . Name ) ;
197+ . ForCondition ( Subject is PhysicalFileResult )
198+ . FailWith ( Constants . CommonFailMessage , typeof ( PhysicalFileResult ) . Name , Subject . GetType ( ) . Name ) ;
199199
200- return new JsonResultAssertions ( Subject as JsonResult ) ;
200+ return new PhysicalFileResultAssertions ( Subject as PhysicalFileResult ) ;
201201 }
202202
203203 /// <summary>
204- /// Asserts that the subject is an <see cref="PhysicalFileResult "/>.
204+ /// Asserts that the subject is an <see cref="VirtualFileResult "/>.
205205 /// </summary>
206- internal PhysicalFileResultAssertions BePhysicalFileResult ( )
206+ internal VirtualFileResultAssertions BeVirtualFileResult ( )
207207 {
208- return BePhysicalFileResult ( string . Empty , null ) ;
208+ return BeVirtualFileResult ( string . Empty , null ) ;
209209 }
210210
211211 /// <summary>
212- /// Asserts that the subject is an <see cref="FileStreamResult "/>.
212+ /// Asserts that the subject is an <see cref="VirtualFileResult "/>.
213213 /// </summary>
214214 /// <param name="reason">
215215 /// A formatted phrase as is supported by <see cref="string.Format(string,object[])" /> explaining why the assertion
@@ -218,14 +218,42 @@ internal PhysicalFileResultAssertions BePhysicalFileResult()
218218 /// <param name="reasonArgs">
219219 /// Zero or more objects to format using the placeholders in <see cref="reason" />.
220220 /// </param>
221- internal PhysicalFileResultAssertions BePhysicalFileResult ( string reason , params object [ ] reasonArgs )
221+ internal VirtualFileResultAssertions BeVirtualFileResult ( string reason , params object [ ] reasonArgs )
222222 {
223223 Execute . Assertion
224224 . BecauseOf ( reason , reasonArgs )
225- . ForCondition ( Subject is PhysicalFileResult )
226- . FailWith ( Constants . CommonFailMessage , typeof ( PhysicalFileResult ) . Name , Subject . GetType ( ) . Name ) ;
225+ . ForCondition ( Subject is VirtualFileResult )
226+ . FailWith ( Constants . CommonFailMessage , typeof ( VirtualFileResult ) . Name , Subject . GetType ( ) . Name ) ;
227227
228- return new PhysicalFileResultAssertions ( Subject as PhysicalFileResult ) ;
228+ return new VirtualFileResultAssertions ( Subject as VirtualFileResult ) ;
229+ }
230+
231+ /// <summary>
232+ /// Asserts that the subject is an <see cref="JsonResult"/>.
233+ /// </summary>
234+ public JsonResultAssertions BeJsonResult ( )
235+ {
236+ return BeJsonResult ( string . Empty , null ) ;
237+ }
238+
239+ /// <summary>
240+ /// Asserts that the subject is an <see cref="JsonResult"/>.
241+ /// </summary>
242+ /// <param name="reason">
243+ /// A formatted phrase as is supported by <see cref="string.Format(string,object[])" /> explaining why the assertion
244+ /// is needed. If the phrase does not start with the word <i>because</i>, it is prepended automatically.
245+ /// </param>
246+ /// <param name="reasonArgs">
247+ /// Zero or more objects to format using the placeholders in <see cref="reason" />.
248+ /// </param>
249+ public JsonResultAssertions BeJsonResult ( string reason , params object [ ] reasonArgs )
250+ {
251+ Execute . Assertion
252+ . BecauseOf ( reason , reasonArgs )
253+ . ForCondition ( Subject is JsonResult )
254+ . FailWith ( Constants . CommonFailMessage , typeof ( JsonResult ) . Name , Subject . GetType ( ) . Name ) ;
255+
256+ return new JsonResultAssertions ( Subject as JsonResult ) ;
229257 }
230258
231259 /// <summary>
0 commit comments