Fix test.
This commit is contained in:
parent
240d969899
commit
93869a5d7b
|
|
@ -49,7 +49,7 @@ namespace Microsoft.AspNet.Mvc.Core.Test.ActionResults
|
||||||
// Assert
|
// Assert
|
||||||
httpResponse.VerifySet(r => r.ContentType = expectedContentType);
|
httpResponse.VerifySet(r => r.ContentType = expectedContentType);
|
||||||
// The following verifies the correct Content was written to Body
|
// The following verifies the correct Content was written to Body
|
||||||
httpResponse.Verify(o => o.WriteAsync(input, CancellationToken.None), Times.Exactly(1));
|
Assert.Equal(input.Length, httpResponse.Object.Body.Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue