Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/Factories/ExportableFailureMechanismSectionCollectionFactoryTest.cs =================================================================== diff -u -r08cc37ec1d27835d4ccefd628f47a72d5e8d1d1e -rb05ce5d95ae55fbb0fa4d89c871f18c6be626b75 --- Riskeer/Integration/test/Riskeer.Integration.IO.Test/Factories/ExportableFailureMechanismSectionCollectionFactoryTest.cs (.../ExportableFailureMechanismSectionCollectionFactoryTest.cs) (revision 08cc37ec1d27835d4ccefd628f47a72d5e8d1d1e) +++ Riskeer/Integration/test/Riskeer.Integration.IO.Test/Factories/ExportableFailureMechanismSectionCollectionFactoryTest.cs (.../ExportableFailureMechanismSectionCollectionFactoryTest.cs) (revision b05ce5d95ae55fbb0fa4d89c871f18c6be626b75) @@ -48,6 +48,18 @@ } [Test] + public void CreateExportableFailureMechanismCollection_RegistryNull_ThrowsArgumentNullException() + { + // Call + void Call() => ExportableFailureMechanismSectionCollectionFactory.CreateExportableFailureMechanismSectionCollection( + new IdentifierGenerator(), null, Enumerable.Empty()); + + // Assert + var exception = Assert.Throws(Call); + Assert.AreEqual("registry", exception.ParamName); + } + + [Test] public void CreateExportableFailureMechanismSectionCollection_SectionsNull_ThrowsArgumentNullException() { // Call @@ -113,7 +125,7 @@ } [Test] - public void CreateExportableFailureMechanismSectionCollection_SectionsAlreadyRegistered_ReturnsRegisteredExportableMode() + public void CreateExportableFailureMechanismSectionCollection_SectionsAlreadyRegistered_ReturnsRegisteredExportableModel() { // Setup var sections = new List();