This commit is contained in:
Ian Kemp 2020-08-04 14:19:12 +01:00
Родитель 5e2c2fca6b
Коммит 2a21df1d00
1 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -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);
}