using Microsoft.AspNetCore.Http; using Shouldly; using Xunit; namespace NPin.Test.Demo; public class HttpUser_Test : NPinTestWebBase { [Fact] public void Http_Test() { var httpContext = GetRequiredService(); httpContext.HttpContext.Request.Path.ToString().ShouldBe("/test"); } }