Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsFailureMechanismSectionResultCreateExtensionsTest.cs =================================================================== diff -u -r71fe781084e574382025cf04c2fbcb879c21c51d -r08ef678e503f67de771f08aa7ec42706fc484fc7 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision 71fe781084e574382025cf04c2fbcb879c21c51d) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionInwards/GrassCoverErosionInwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision 08ef678e503f67de771f08aa7ec42706fc484fc7) @@ -46,7 +46,7 @@ } [Test] - public void Create_WithoutPersistenceRegistry_ThrowsArgumentNullException() + public void Create_PersistencyRegistryNull_ThrowsArgumentNullException() { // Setup var sectionResult = new GrassCoverErosionInwardsFailureMechanismSectionResult(new TestFailureMechanismSection()); @@ -55,7 +55,8 @@ TestDelegate test = () => sectionResult.Create(null); // Assert - Assert.Throws(test); + var exception = Assert.Throws(test); + Assert.AreEqual("registry", exception.ParamName); } [Test] @@ -80,10 +81,8 @@ ManualAssemblyProbability = manualAssemblyProbability }; - var registry = new PersistenceRegistry(); - // Call - GrassCoverErosionInwardsSectionResultEntity entity = sectionResult.Create(registry); + GrassCoverErosionInwardsSectionResultEntity entity = sectionResult.Create(new PersistenceRegistry()); // Assert Assert.AreEqual(Convert.ToByte(simpleAssessmentResult), entity.SimpleAssessmentResult); @@ -106,10 +105,8 @@ ManualAssemblyProbability = double.NaN }; - var registry = new PersistenceRegistry(); - // Call - GrassCoverErosionInwardsSectionResultEntity entity = sectionResult.Create(registry); + GrassCoverErosionInwardsSectionResultEntity entity = sectionResult.Create(new PersistenceRegistry()); // Assert Assert.IsNull(entity.TailorMadeAssessmentProbability);