Publish Ludarium source
Public source validation / source (push) Successful in 2m16s

This commit is contained in:
Ludarium release export
2026-09-03 02:08:58 +02:00
commit df869819ce
339 changed files with 46455 additions and 0 deletions
@@ -0,0 +1,18 @@
using Ludarium.Application;
using Ludarium.Domain;
namespace Ludarium.UnitTests;
public sealed class HealthRuleTests
{
[Fact]
public void ChangedContentIsCriticalAndUnknownContentIsNotice()
{
var unknown = new Artifact(Guid.NewGuid(), Guid.NewGuid(), "mystery.bin", 1, DateTimeOffset.UtcNow, ArtifactState.Present, MediaType.Unknown, Confidence.None, null, DateTimeOffset.UtcNow, DateTimeOffset.UtcNow, null, null);
Assert.Equal(Severity.Notice, HealthRules.EvaluateArtifact(unknown)?.Severity);
var root = LibraryRoot.Create("Unsafe", Path.GetTempPath(), LibraryKind.Mixed) with { IsAvailable = true, IsReadOnly = false };
Assert.Equal(Severity.Warning, HealthRules.EvaluateRoot(root)?.Severity);
var bundle = new Bundle(Guid.NewGuid(), BundleKind.CueBin, "Disc", BundleState.Incomplete, [], ["missing"]);
Assert.Equal(Severity.Warning, HealthRules.EvaluateBundle(bundle)?.Severity);
}
}