Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresInputTest.cs =================================================================== diff -u -rf88343c0590cb04c7135ce141872940e59325927 -r3074213fb452f625d9c0156d9a927175cedca3dd --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresInputTest.cs (.../ClosingStructuresInputTest.cs) (revision f88343c0590cb04c7135ce141872940e59325927) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.Test/ClosingStructuresInputTest.cs (.../ClosingStructuresInputTest.cs) (revision 3074213fb452f625d9c0156d9a927175cedca3dd) @@ -188,6 +188,62 @@ AssertClosingStructure(structure, input); } + [Test] + public void StructureParametersSynchronized_StructureNotSet_ReturnFalse() + { + // Setup + var input = new ClosingStructuresInput(); + + // Call + bool structureParametersSynchronized = input.StructureParametersSynchronized; + + // Assert + Assert.IsFalse(structureParametersSynchronized); + } + + [Test] + public void StructureParametersSynchronized_StructureAndInputInSync_ReturnTrue() + { + // Setup + var structure = new TestClosingStructure(); + var input = new ClosingStructuresInput + { + Structure = structure + }; + + // Call + bool structureParametersSynchronized = input.StructureParametersSynchronized; + + // Assert + Assert.IsTrue(structureParametersSynchronized); + } + + [Test] + [TestCaseSource(typeof(ClosingStructurePermutationHelper), + nameof(ClosingStructurePermutationHelper.DifferentClosingStructuresWithSameIdNameAndLocation), + new object[] + { + "StructureParametersSynchronized", + "ReturnFalse" + })] + public void StructureParametersSynchronized_StructureAndInputNotInSync_ReturnFalse(ClosingStructure modifiedStructure) + { + // Setup + var structure = new TestClosingStructure(); + var input = new ClosingStructuresInput + { + Structure = structure + }; + + structure.CopyProperties(modifiedStructure); + + // Call + bool structureParametersSynchronized = input.StructureParametersSynchronized; + + // Assert + Assert.IsFalse(structureParametersSynchronized); + } + #region Hydraulic data [Test]