From c98bc503e8b0093bdaaf3e04804358dd3536fb0f Mon Sep 17 00:00:00 2001 From: Javier Calvarro Nelson Date: Mon, 2 Jun 2014 19:04:21 -0700 Subject: [PATCH] Check for result.Body.Length = 0 instead of checking that the body is the empty string --- test/Microsoft.AspNet.Mvc.FunctionalTests/BasicTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.AspNet.Mvc.FunctionalTests/BasicTests.cs b/test/Microsoft.AspNet.Mvc.FunctionalTests/BasicTests.cs index 94b73adfcc..c5af73cfe3 100644 --- a/test/Microsoft.AspNet.Mvc.FunctionalTests/BasicTests.cs +++ b/test/Microsoft.AspNet.Mvc.FunctionalTests/BasicTests.cs @@ -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]