@@ -173,15 +173,15 @@ internal FileStreamResultAssertions BeFileStreamResult(string reason, params obj
173
173
}
174
174
175
175
/// <summary>
176
- /// Asserts that the subject is an <see cref="JsonResult "/>.
176
+ /// Asserts that the subject is an <see cref="PhysicalFileResult "/>.
177
177
/// </summary>
178
- public JsonResultAssertions BeJsonResult ( )
178
+ internal PhysicalFileResultAssertions BePhysicalFileResult ( )
179
179
{
180
- return BeJsonResult ( string . Empty , null ) ;
180
+ return BePhysicalFileResult ( string . Empty , null ) ;
181
181
}
182
182
183
183
/// <summary>
184
- /// Asserts that the subject is an <see cref="JsonResult "/>.
184
+ /// Asserts that the subject is an <see cref="FileStreamResult "/>.
185
185
/// </summary>
186
186
/// <param name="reason">
187
187
/// A formatted phrase as is supported by <see cref="string.Format(string,object[])" /> explaining why the assertion
@@ -190,26 +190,26 @@ public JsonResultAssertions BeJsonResult()
190
190
/// <param name="reasonArgs">
191
191
/// Zero or more objects to format using the placeholders in <see cref="reason" />.
192
192
/// </param>
193
- public JsonResultAssertions BeJsonResult ( string reason , params object [ ] reasonArgs )
193
+ internal PhysicalFileResultAssertions BePhysicalFileResult ( string reason , params object [ ] reasonArgs )
194
194
{
195
195
Execute . Assertion
196
196
. 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 ) ;
199
199
200
- return new JsonResultAssertions ( Subject as JsonResult ) ;
200
+ return new PhysicalFileResultAssertions ( Subject as PhysicalFileResult ) ;
201
201
}
202
202
203
203
/// <summary>
204
- /// Asserts that the subject is an <see cref="PhysicalFileResult "/>.
204
+ /// Asserts that the subject is an <see cref="VirtualFileResult "/>.
205
205
/// </summary>
206
- internal PhysicalFileResultAssertions BePhysicalFileResult ( )
206
+ internal VirtualFileResultAssertions BeVirtualFileResult ( )
207
207
{
208
- return BePhysicalFileResult ( string . Empty , null ) ;
208
+ return BeVirtualFileResult ( string . Empty , null ) ;
209
209
}
210
210
211
211
/// <summary>
212
- /// Asserts that the subject is an <see cref="FileStreamResult "/>.
212
+ /// Asserts that the subject is an <see cref="VirtualFileResult "/>.
213
213
/// </summary>
214
214
/// <param name="reason">
215
215
/// A formatted phrase as is supported by <see cref="string.Format(string,object[])" /> explaining why the assertion
@@ -218,14 +218,42 @@ internal PhysicalFileResultAssertions BePhysicalFileResult()
218
218
/// <param name="reasonArgs">
219
219
/// Zero or more objects to format using the placeholders in <see cref="reason" />.
220
220
/// </param>
221
- internal PhysicalFileResultAssertions BePhysicalFileResult ( string reason , params object [ ] reasonArgs )
221
+ internal VirtualFileResultAssertions BeVirtualFileResult ( string reason , params object [ ] reasonArgs )
222
222
{
223
223
Execute . Assertion
224
224
. 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 ) ;
227
227
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 ) ;
229
257
}
230
258
231
259
/// <summary>
0 commit comments