From d3ce3ee9e134c0fddcd6c88de6cd769203ba4e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Fri, 3 Apr 2020 15:22:47 +0200 Subject: [PATCH] SEBWIN-380: Started implementing unit tests for browser component handlers. --- .../Handlers/ContextMenuHandlerTests.cs | 6 +- .../Handlers/DialogHandlerTests.cs | 106 ++++++ .../Handlers/DisplayHandlerTests.cs | 73 +++++ .../Handlers/DownloadHandlerTests.cs | 308 ++++++++++++++++++ .../Handlers/KeyboardHandlerTests.cs | 128 ++++++++ .../Handlers/LifeSpanHandlerTests.cs | 49 +++ .../Handlers/RequestHandlerTests.cs | 48 +++ .../SafeExamBrowser.Browser.UnitTests.csproj | 23 ++ 8 files changed, 738 insertions(+), 3 deletions(-) create mode 100644 SafeExamBrowser.Browser.UnitTests/Handlers/DialogHandlerTests.cs create mode 100644 SafeExamBrowser.Browser.UnitTests/Handlers/DisplayHandlerTests.cs create mode 100644 SafeExamBrowser.Browser.UnitTests/Handlers/DownloadHandlerTests.cs create mode 100644 SafeExamBrowser.Browser.UnitTests/Handlers/KeyboardHandlerTests.cs create mode 100644 SafeExamBrowser.Browser.UnitTests/Handlers/LifeSpanHandlerTests.cs create mode 100644 SafeExamBrowser.Browser.UnitTests/Handlers/RequestHandlerTests.cs diff --git a/SafeExamBrowser.Browser.UnitTests/Handlers/ContextMenuHandlerTests.cs b/SafeExamBrowser.Browser.UnitTests/Handlers/ContextMenuHandlerTests.cs index e43d67e0..0768c2ba 100644 --- a/SafeExamBrowser.Browser.UnitTests/Handlers/ContextMenuHandlerTests.cs +++ b/SafeExamBrowser.Browser.UnitTests/Handlers/ContextMenuHandlerTests.cs @@ -29,15 +29,15 @@ namespace SafeExamBrowser.Browser.UnitTests.Handlers { var menu = new Mock(); - sut.OnBeforeContextMenu(Mock.Of(), Mock.Of(), Mock.Of