Check for result.Body.Length = 0 instead of checking that the body is the empty string
This commit is contained in:
parent
2523d5d9ea
commit
c98bc503e8
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue