Index: Riskeer/Integration/test/Riskeer.Integration.Forms.Test/Dialogs/HydraulicBoundaryDatabaseImporterSettingsDialogTest.cs
===================================================================
diff -u
--- Riskeer/Integration/test/Riskeer.Integration.Forms.Test/Dialogs/HydraulicBoundaryDatabaseImporterSettingsDialogTest.cs (revision 0)
+++ Riskeer/Integration/test/Riskeer.Integration.Forms.Test/Dialogs/HydraulicBoundaryDatabaseImporterSettingsDialogTest.cs (revision 713c009ebbb35760f8ab746ecf9da5cf7d83027c)
@@ -0,0 +1,69 @@
+// Copyright (C) Stichting Deltares 2019. All rights reserved.
+//
+// This file is part of Riskeer.
+//
+// Riskeer is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Windows.Forms;
+using Core.Common.Controls.Dialogs;
+using Core.Common.Gui.Helpers;
+using NUnit.Framework;
+using Rhino.Mocks;
+using Riskeer.Integration.Forms.Dialogs;
+
+namespace Riskeer.Integration.Forms.Test.Dialogs
+{
+ [TestFixture]
+ public class HydraulicBoundaryDatabaseImporterSettingsDialogTest
+ {
+ [Test]
+ public void Constructor_InquiryHelperNull_ThrowsArgumentNullException()
+ {
+ // Setup
+ var mockRepository = new MockRepository();
+ var dialogParent = mockRepository.Stub();
+ mockRepository.ReplayAll();
+
+ // Call
+ void Call() => new HydraulicBoundaryDatabaseImporterSettingsDialog(dialogParent, null);
+
+ // Assert
+ string parameter = Assert.Throws(Call).ParamName;
+ Assert.AreEqual("inquiryHelper", parameter);
+ mockRepository.VerifyAll();
+ }
+
+ [Test]
+ public void Constructor_ValidParameters_ExpectedValues()
+ {
+ // Setup
+ var mockRepository = new MockRepository();
+ var dialogParent = mockRepository.Stub();
+ var inquiryHelper = mockRepository.Stub();
+ mockRepository.ReplayAll();
+
+ // Call
+ var dialog = new HydraulicBoundaryDatabaseImporterSettingsDialog(dialogParent, inquiryHelper);
+
+ // Assert
+ Assert.IsInstanceOf(dialog);
+ mockRepository.VerifyAll();
+ }
+ }
+}