chore: initial project import
This commit is contained in:
commit
3fc4e5ca53
347 files changed
+56172
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using System.Text.Json;
|
||||
using Monitor.Backend.Application;
|
||||
using Monitor.Protocol;
|
||||
|
||||
namespace Monitor.Backend.Tests;
|
||||
|
||||
public sealed class PlanTests
|
||||
{
|
||||
[Fact]
|
||||
public void Plans_ComposeKnownCollectionPrimitives_AndTheirOverridesAreValid()
|
||||
{
|
||||
foreach (PlanSpec plan in Plans.All)
|
||||
{
|
||||
foreach (PhaseSpec phase in plan.Phases)
|
||||
{
|
||||
KindSpec kind = Kinds.Find(phase.Kind)!;
|
||||
Assert.NotNull(kind);
|
||||
Assert.True(ParamResolver.Resolve(kind.Params, phase.Overrides).IsValid, $"{plan.Id}/{phase.Kind}");
|
||||
}
|
||||
}
|
||||
|
||||
Assert.Null(Plans.Find("nope"));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user