From 8543c818675eb5bb389f2cc173689cdab9a51994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Wed, 5 Jul 2023 09:42:34 +0200 Subject: [PATCH] SEBWIN-679: Extended unit tests for core library. --- .../Operations/CommunicationHostOperationTests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/SafeExamBrowser.Core.UnitTests/Operations/CommunicationHostOperationTests.cs b/SafeExamBrowser.Core.UnitTests/Operations/CommunicationHostOperationTests.cs index 3f636b19..8cb93ab8 100644 --- a/SafeExamBrowser.Core.UnitTests/Operations/CommunicationHostOperationTests.cs +++ b/SafeExamBrowser.Core.UnitTests/Operations/CommunicationHostOperationTests.cs @@ -97,5 +97,15 @@ namespace SafeExamBrowser.Core.UnitTests.Operations Assert.AreEqual(3, fired); } + + [TestMethod] + public void MustNotFireActionRequiredEvent() + { + sut.ActionRequired += (_) => Assert.Fail(); + + sut.Perform(); + sut.Repeat(); + sut.Revert(); + } } }