Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingSoilProfileTest.cs =================================================================== diff -u -r97c9e382dffcf32dc34d2e05e6a8a475b833ebd4 -rcfba2b11da9ac0bb1daf377b8dcb15f7c84e0cfb --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingSoilProfileTest.cs (.../PipingSoilProfileTest.cs) (revision 97c9e382dffcf32dc34d2e05e6a8a475b833ebd4) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/PipingSoilProfileTest.cs (.../PipingSoilProfileTest.cs) (revision cfba2b11da9ac0bb1daf377b8dcb15f7c84e0cfb) @@ -53,6 +53,21 @@ var message = Assert.Throws(test).Message; Assert.AreEqual(Properties.Resources.Error_Cannot_Construct_PipingSoilProfile_Without_Layers, message); } - + + [Test] + [TestCase(null)] + [TestCase("")] + [TestCase("some name")] + public void ToString_WithName_ReturnsName(string name) + { + // Setup + var profile = new PipingSoilProfile(name, 0.0, new[] + { + new PipingSoilLayer(0.0) + }); + + // Call & Assert + Assert.AreEqual(name, profile.ToString()); + } } } \ No newline at end of file