[fix]修正部署版本新增时Node.Area.Parent深层次递归验证的问题。在魔方层面,忽略所有实现了IEntity的实体类参数的模型验证
智能大石头 authored at 2025-04-03 09:36:46
446.00 B
Stardust
using Stardust.Data.Monitors;
using Xunit;

namespace Stardust.ServerTests;

public class TraceRuleTests
{
    [Fact]
    public void GetOrAddItem()
    {
        var name = "/Admin/Menu/Index";
        var rule = TraceRule.Match(name);
        Assert.NotNull(rule);

        var app = AppTracer.FindByName("StarWeb");
        var ti = app.GetOrAddItem(name, rule?.IsWhite);
        Assert.NotNull(ti);
        Assert.True(ti.Enable);
    }
}