Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Importers/HydraulicBoundaryDatabaseImporterTest.cs =================================================================== diff -u -r80a01a82824ea399497b134beea899ac175122b5 -raf0e6f596d42879533b372801ab6620959e9708f --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Importers/HydraulicBoundaryDatabaseImporterTest.cs (.../HydraulicBoundaryDatabaseImporterTest.cs) (revision 80a01a82824ea399497b134beea899ac175122b5) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Importers/HydraulicBoundaryDatabaseImporterTest.cs (.../HydraulicBoundaryDatabaseImporterTest.cs) (revision af0e6f596d42879533b372801ab6620959e9708f) @@ -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,16 +33,29 @@ public class HydraulicBoundaryDatabaseImporterTest { [Test] + public void Constructor_UpdateHandlerNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new HydraulicBoundaryDatabaseImporter(new HydraulicBoundaryDatabase(), null, ""); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("updateHandler", exception.ParamName); + } + [Test] public void Constructor_ExpectedValues() { // Setup - var filePath = ""; + var mocks = new MockRepository(); + var updateHandler = mocks.Stub(); + mocks.ReplayAll(); // Call - var importer = new HydraulicBoundaryDatabaseImporter(new HydraulicBoundaryDatabase(), filePath); + var importer = new HydraulicBoundaryDatabaseImporter(new HydraulicBoundaryDatabase(), updateHandler, ""); // Assert Assert.IsInstanceOf>(importer); + mocks.VerifyAll(); } } } \ No newline at end of file