Index: Ringtoets/Migration/test/Ringtoets.Migration.Integration.Test/MigrationTo181IntegrationTest.cs =================================================================== diff -u -rad66b6e2df465acc900aa792c99dfdacee3f3a32 -rf900d040576ffe6607e028aafc2912ba21c29b8c --- Ringtoets/Migration/test/Ringtoets.Migration.Integration.Test/MigrationTo181IntegrationTest.cs (.../MigrationTo181IntegrationTest.cs) (revision ad66b6e2df465acc900aa792c99dfdacee3f3a32) +++ Ringtoets/Migration/test/Ringtoets.Migration.Integration.Test/MigrationTo181IntegrationTest.cs (.../MigrationTo181IntegrationTest.cs) (revision f900d040576ffe6607e028aafc2912ba21c29b8c) @@ -124,6 +124,8 @@ AssertWaterPressureAsphaltCoverSectionResultEntity(reader, sourceFilePath); AssertWaveConditionsCalculations(reader, sourceFilePath); + + MigratedSerializedDataTestHelper.AssertSerializedMacroStabilityInwardsOutput(reader); } AssertLogDatabase(logFilePath); @@ -766,6 +768,48 @@ reader.AssertReturnedDataIsValid(validateMetaEntity); } + #region Serializers + + /// + /// Testhelper to assert the migrated values of serialized data. + /// + private static class MigratedSerializedDataTestHelper + { + private const string oldNamespace = "Application.Ringtoets.Storage.Serializers"; + + /// + /// Asserts the migrated serialized data related to macro stability inwards output. + /// + /// The reader to read the migrated database. + /// Thrown when: + /// + /// The namespace is still present. + /// The class name of the serialized data is still present. + /// + public static void AssertSerializedMacroStabilityInwardsOutput(MigratedDatabaseReader reader) + { + string validateSlidingCurves = + "SELECT " + + "COUNT() = 0 " + + "FROM MacroStabilityInwardsCalculationOutputEntity " + + "WHERE LIKE('%MacroStabilityInwardsSliceXmlSerializer%', SlidingCurveSliceXml) " + + $"OR LIKE('%{oldNamespace}%', SlidingCurveSliceXml)"; + + reader.AssertReturnedDataIsValid(validateSlidingCurves); + + string validateTangentLines = + "SELECT " + + "COUNT() = 0 " + + "FROM MacroStabilityInwardsCalculationOutputEntity " + + "WHERE LIKE('%TangentLinesXmlSerializer%', SlipPlaneTangentLinesXml) " + + $"OR LIKE('%{oldNamespace}%', SlipPlaneTangentLinesXml)"; + + reader.AssertReturnedDataIsValid(validateTangentLines); + } + } + + #endregion + #region Dune Locations ///