Files
vigilcare-clinical/VigilCareClinicalAPI.Tests/AlertCreationGuardTests.cs
T
voltsrage bf46e6554a feature: Sepsis Engine Refactor: Remove SIRS, Rewire qSOFA + Bundle
Frontend: GCS Entry, SOFA Display, Sepsis UI Refactor
2026-06-21 03:56:27 +08:00

20 lines
489 B
C#

using FluentAssertions;
public class AlertCreationGuardTests
{
[Fact]
public void CannotCreateNewSepsisWarning()
{
var act = () => AlertCreationGuard.EnsureAllowed(AlertType.SepsisWarning);
act.Should().Throw<InvalidOperationException>()
.WithMessage("*deprecated*");
}
[Fact]
public void AllowsSofaSepsis()
{
var act = () => AlertCreationGuard.EnsureAllowed(AlertType.SofaSepsis);
act.Should().NotThrow();
}
}