diff --git a/tests/ScadaLink.Commons.Tests/Entities/NotificationEntityTests.cs b/tests/ScadaLink.Commons.Tests/Entities/NotificationEntityTests.cs index 75bc2c5..a0f593f 100644 --- a/tests/ScadaLink.Commons.Tests/Entities/NotificationEntityTests.cs +++ b/tests/ScadaLink.Commons.Tests/Entities/NotificationEntityTests.cs @@ -22,12 +22,12 @@ public class NotificationEntityTests } [Fact] - public void Constructor_NullListName_Throws() - => Assert.Throws( - () => new Notification("id", NotificationType.Email, null!, "s", "b", "SiteA")); - - [Fact] - public void Constructor_NullNotificationId_Throws() - => Assert.Throws( - () => new Notification(null!, NotificationType.Email, "list", "s", "b", "SiteA")); + public void Constructor_NullArguments_Throw() + { + Assert.Throws(() => new Notification(null!, NotificationType.Email, "list", "s", "b", "SiteA")); + Assert.Throws(() => new Notification("id", NotificationType.Email, null!, "s", "b", "SiteA")); + Assert.Throws(() => new Notification("id", NotificationType.Email, "list", null!, "b", "SiteA")); + Assert.Throws(() => new Notification("id", NotificationType.Email, "list", "s", null!, "SiteA")); + Assert.Throws(() => new Notification("id", NotificationType.Email, "list", "s", "b", null!)); + } }