Fix test.

This commit is contained in:
Chris Ross 2014-07-08 10:40:06 -07:00
parent 240d969899
commit 93869a5d7b
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ namespace Microsoft.AspNet.Mvc.Core.Test.ActionResults
// Assert
httpResponse.VerifySet(r => r.ContentType = expectedContentType);
// 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]