Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Importers/HydraulicLocationConfigurationDatabaseImporterTest.cs =================================================================== diff -u -rdac3c2c6cf43f13de09202b5f5ebd3073f00b1cf -r14b2f67208bf83430309cc17a9b2830960d07c32 --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Importers/HydraulicLocationConfigurationDatabaseImporterTest.cs (.../HydraulicLocationConfigurationDatabaseImporterTest.cs) (revision dac3c2c6cf43f13de09202b5f5ebd3073f00b1cf) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Importers/HydraulicLocationConfigurationDatabaseImporterTest.cs (.../HydraulicLocationConfigurationDatabaseImporterTest.cs) (revision 14b2f67208bf83430309cc17a9b2830960d07c32) @@ -19,9 +19,12 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Core.Common.Base.IO; using NUnit.Framework; +using Rhino.Mocks; using Ringtoets.Common.Data.Hydraulics; +using Ringtoets.Integration.IO.Handlers; using Ringtoets.Integration.IO.Importers; namespace Ringtoets.Integration.IO.Test.Importers @@ -30,13 +33,30 @@ public class HydraulicLocationConfigurationDatabaseImporterTest { [Test] + public void Constructor_UpdateHandlerNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new HydraulicLocationConfigurationDatabaseImporter(new HydraulicLocationConfigurationSettings(), null, ""); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("updateHandler", exception.ParamName); + } + + [Test] public void Constructor_ExpectedValues() { + // Setup + var mocks = new MockRepository(); + var handler = mocks.Stub(); + mocks.ReplayAll(); + // Call - var importer = new HydraulicLocationConfigurationDatabaseImporter(new HydraulicLocationConfigurationSettings(), ""); + var importer = new HydraulicLocationConfigurationDatabaseImporter(new HydraulicLocationConfigurationSettings(), handler, ""); // Assert Assert.IsInstanceOf>(importer); + mocks.VerifyAll(); } } } \ No newline at end of file