cleanup
This commit is contained in:
Родитель
5e2c2fca6b
Коммит
2a21df1d00
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче