20 lines
489 B
C#
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();
|
|
}
|
|
}
|