Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/PipingSoilProfileTestFactoryTest.cs =================================================================== diff -u --- Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/PipingSoilProfileTestFactoryTest.cs (revision 0) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/PipingSoilProfileTestFactoryTest.cs (revision 6a52cac961e58ff9ff5cfda5d2519d34974770fb) @@ -0,0 +1,60 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System.Linq; +using NUnit.Framework; +using Ringtoets.Piping.Primitives; + +namespace Ringtoets.Piping.Data.TestUtil.Test +{ + [TestFixture] + public class PipingSoilProfileTestFactoryTest + { + [Test] + public void CreatePipingSoilProfile_ReturnsPipingSoilProfile() + { + // Call + PipingSoilProfile soilProfile = PipingSoilProfileTestFactory.CreatePipingSoilProfile(); + + // Assert + Assert.AreEqual("name", soilProfile.Name); + Assert.AreEqual(0, soilProfile.Bottom); + Assert.AreEqual(SoilProfileType.SoilProfile1D, soilProfile.SoilProfileType); + + var expectedLayer = new PipingSoilLayer(1.0); + Assert.AreEqual(1, soilProfile.Layers.Count()); + AssertAreEqual(expectedLayer, soilProfile.Layers.Single()); + } + + private static void AssertAreEqual(PipingSoilLayer expected, PipingSoilLayer actual) + { + Assert.AreEqual(expected.Top, actual.Top); + Assert.AreEqual(expected.MaterialName, actual.MaterialName); + Assert.AreEqual(expected.BelowPhreaticLevelMean, actual.BelowPhreaticLevelMean); + Assert.AreEqual(expected.BelowPhreaticLevelDeviation, actual.BelowPhreaticLevelDeviation); + Assert.AreEqual(expected.BelowPhreaticLevelShift, actual.BelowPhreaticLevelShift); + Assert.AreEqual(expected.DiameterD70Mean, actual.DiameterD70Mean); + Assert.AreEqual(expected.DiameterD70CoefficientOfVariation, actual.DiameterD70CoefficientOfVariation); + Assert.AreEqual(expected.PermeabilityMean, actual.PermeabilityMean); + Assert.AreEqual(expected.PermeabilityCoefficientOfVariation, actual.PermeabilityCoefficientOfVariation); + } + } +} \ No newline at end of file Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/Ringtoets.Piping.Data.TestUtil.Test.csproj =================================================================== diff -u -r6456699cf3b6e52dad3a92aaa3c6714fad072a96 -r6a52cac961e58ff9ff5cfda5d2519d34974770fb --- Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/Ringtoets.Piping.Data.TestUtil.Test.csproj (.../Ringtoets.Piping.Data.TestUtil.Test.csproj) (revision 6456699cf3b6e52dad3a92aaa3c6714fad072a96) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil.Test/Ringtoets.Piping.Data.TestUtil.Test.csproj (.../Ringtoets.Piping.Data.TestUtil.Test.csproj) (revision 6a52cac961e58ff9ff5cfda5d2519d34974770fb) @@ -51,6 +51,7 @@ +