Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/PipingStructure/PipingStructureSectionResultEntityReadExtensionsTest.cs =================================================================== diff -u -r54a4372151869517f914727339477256a52090f6 -r80e09f002643af4dbacc7e99574ce0c784c7e873 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/PipingStructure/PipingStructureSectionResultEntityReadExtensionsTest.cs (.../PipingStructureSectionResultEntityReadExtensionsTest.cs) (revision 54a4372151869517f914727339477256a52090f6) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/PipingStructure/PipingStructureSectionResultEntityReadExtensionsTest.cs (.../PipingStructureSectionResultEntityReadExtensionsTest.cs) (revision 80e09f002643af4dbacc7e99574ce0c784c7e873) @@ -76,39 +76,6 @@ // Assert Assert.IsNotNull(sectionResult); Assert.AreEqual(layerOne, sectionResult.AssessmentLayerOne); - Assert.AreEqual(layerTwoA, sectionResult.AssessmentLayerTwoA); - Assert.AreEqual(layerThree, sectionResult.AssessmentLayerThree, 1e-6); } - - [Test] - public void Read_EntityWithNullValues_SectionResultWithNaNValues() - { - // Setup - var random = new Random(21); - var layerOne = random.NextEnumValue(); - var layerTwoA = random.NextEnumValue(); - - var collector = new ReadConversionCollector(); - - var failureMechanismSectionEntity = new FailureMechanismSectionEntity(); - collector.Read(failureMechanismSectionEntity, new TestFailureMechanismSection()); - var entity = new PipingStructureSectionResultEntity - { - LayerThree = null, - LayerTwoA = Convert.ToByte(layerTwoA), - LayerOne = Convert.ToByte(layerOne), - FailureMechanismSectionEntity = failureMechanismSectionEntity - }; - var sectionResult = new PipingStructureFailureMechanismSectionResult(new TestFailureMechanismSection()); - - // Call - entity.Read(sectionResult); - - // Assert - Assert.IsNotNull(sectionResult); - Assert.AreEqual(layerOne, sectionResult.AssessmentLayerOne); - Assert.AreEqual(layerTwoA, sectionResult.AssessmentLayerTwoA); - Assert.IsNaN(sectionResult.AssessmentLayerThree); - } } } \ No newline at end of file