From c4a358e70cf78d4905fc8bc9188d51fdc499cb6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Fri, 23 Apr 2021 15:34:12 +0200 Subject: [PATCH] SEBWIN-471: Fixed unit test to ensure reconfiguration of secure session is not permitted without reconfiguring URL. --- SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs b/SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs index e33aca8d..fedff3bc 100644 --- a/SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs +++ b/SafeExamBrowser.Client.UnitTests/ClientControllerTests.cs @@ -626,7 +626,7 @@ namespace SafeExamBrowser.Client.UnitTests } [TestMethod] - public void Reconfiguration_MustAllowWithQuitPasswordAndNoUrl() + public void Reconfiguration_MustNotAllowWithQuitPasswordAndNoUrl() { var args = new DownloadEventArgs(); @@ -637,10 +637,9 @@ namespace SafeExamBrowser.Client.UnitTests sut.TryStart(); browser.Raise(b => b.ConfigurationDownloadRequested += null, "filepath.seb", args); - args.Callback(true, string.Empty); - runtimeProxy.Verify(r => r.RequestReconfiguration(It.IsAny(), It.IsAny()), Times.Once); - Assert.IsTrue(args.AllowDownload); + runtimeProxy.Verify(r => r.RequestReconfiguration(It.IsAny(), It.IsAny()), Times.Never); + Assert.IsFalse(args.AllowDownload); } [TestMethod]