diff --git a/tests/System.Web.Compatibility.Tests/System.Web.Compatibility.Tests.cs b/tests/System.Web.Compatibility.Tests/System.Web.Compatibility.Tests.cs index 6887132e2..9cfd94bd5 100644 --- a/tests/System.Web.Compatibility.Tests/System.Web.Compatibility.Tests.cs +++ b/tests/System.Web.Compatibility.Tests/System.Web.Compatibility.Tests.cs @@ -2,8 +2,6 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System.IO; -using System.Web; using System.Web.Hosting; using Xunit; @@ -20,7 +18,7 @@ namespace System.Web.Compatibility.Tests [Fact] public void HttpContextItemsGetDoesNotThrow() { - var context = new HttpContext(new HttpRequest(string.Empty, string.Empty, string.Empty), new HttpResponse(null)); + var context = new HttpContext(new HttpRequest(null, null, null), new HttpResponse(null)); Assert.Null(context.Items); } @@ -28,7 +26,7 @@ namespace System.Web.Compatibility.Tests [Fact] public void HttpContextUserGetDoesNotThrow() { - var context = new HttpContext(new HttpRequest(string.Empty, string.Empty, string.Empty), new HttpResponse(null)); + var context = new HttpContext(new HttpRequest(null, null, null), new HttpResponse(null)); Assert.Null(context.User); }