Check for result.Body.Length = 0 instead of checking that the body is the empty string

This commit is contained in:
Javier Calvarro Nelson 2014-06-02 19:04:21 -07:00
parent 2523d5d9ea
commit c98bc503e8
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
Assert.Equal(204, result.StatusCode);
Assert.Null(result.ContentType);
Assert.Null(result.ContentLength);
Assert.Equal("", await result.ReadBodyAsStringAsync());
Assert.NotNull(result.Body);
Assert.Equal(0, result.Body.Length);
}
[Fact]