feat: 完成单元测试搭建

This commit is contained in:
橙子
2025-02-23 01:41:31 +08:00
parent f6b19ec2a5
commit f9341fd2ac
11 changed files with 86 additions and 175 deletions

View File

@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Http;
using Shouldly;
using Xunit;
namespace Yi.Abp.Test.example
{
public class HttpUser_Test : YiAbpTestWebBase
{
[Fact]
public void Http_Test()
{
var httpContext = GetRequiredService<IHttpContextAccessor>();
httpContext.HttpContext.Request.Path.ToString().ShouldBe("/test");
}
}
}