Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/EngineToMacroStabilityKernelOutputTests.cs =================================================================== diff -u -r6366 -r6371 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/EngineToMacroStabilityKernelOutputTests.cs (.../EngineToMacroStabilityKernelOutputTests.cs) (revision 6366) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/EngineToMacroStabilityKernelOutputTests.cs (.../EngineToMacroStabilityKernelOutputTests.cs) (revision 6371) @@ -19,9 +19,34 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System.Collections.Generic; +using Deltares.DamEngine.Calculators.KernelWrappers.MacroStabilityCommon.MacroStabilityIo; +using Deltares.DamEngine.Calculators.KernelWrappers.MacroStabilityInwards; +using Deltares.DamEngine.Data.Standard.Logging; +using Deltares.MacroStability.Io.XmlOutput; +using NUnit.Framework; + namespace Deltares.DamEngine.Calculators.Tests.KernelWrappers.MacroStabilityCommon.MacroStabilityIo; +[TestFixture] public class EngineToMacroStabilityKernelOutputTests { - + [Test] + public void GivenKernelOutputWhenTransferToDamEngineThenDataIsEqual() + { + // Given + FullOutputModelType kernelOutput = CreateFullOutputModel(); + var damEngineOutput = new MacroStabilityOutput(); + + // When + FillEngineFromMacroStabilityKernelOutput.FillDamProjectDataFromKernelModel(kernelOutput, damEngineOutput, out List logMessages); + + // Then + Assert.That(logMessages, Is.Not.Null); + } + + private FullOutputModelType CreateFullOutputModel() + { + return new FullOutputModelType(); + } } \ No newline at end of file Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/FillEngineFromMacroStabilityKernelOutput.cs =================================================================== diff -u -r6366 -r6371 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/FillEngineFromMacroStabilityKernelOutput.cs (.../FillEngineFromMacroStabilityKernelOutput.cs) (revision 6366) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators/KernelWrappers/MacroStabilityCommon/MacroStabilityIo/FillEngineFromMacroStabilityKernelOutput.cs (.../FillEngineFromMacroStabilityKernelOutput.cs) (revision 6371) @@ -19,15 +19,18 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System; +using System.Collections.Generic; +using Deltares.DamEngine.Calculators.KernelWrappers.MacroStabilityInwards; +using Deltares.DamEngine.Data.Standard.Logging; using Deltares.MacroStability.Io.XmlOutput; namespace Deltares.DamEngine.Calculators.KernelWrappers.MacroStabilityCommon.MacroStabilityIo; -public class FillEngineFromMacroStabilityKernelOutput +public static class FillEngineFromMacroStabilityKernelOutput { - public void FillDamProjectDataFromKernelModel(FullOutputModelType macroStabilityOutput) + public static void FillDamProjectDataFromKernelModel(FullOutputModelType fullOutputModel, + MacroStabilityOutput macroStabilityOutput, out List logMessages) { - throw new NotImplementedException("This method is not implemented yet."); + logMessages = new List(); } } \ No newline at end of file