public void ToString_EmptyName_ReturnsDefaultName() { // Setup var layer = new PipingSoilLayer(-2.9) { MaterialName = string.Empty }; var properties = new PipingSoilLayerProperties(layer); // Call string name = properties.ToString(); // Assert Assert.AreEqual("Onbekend", name); }
public void ToString_ValidName_ReturnsMaterialName() { // Setup var layer = new PipingSoilLayer(-2.9) { MaterialName = "Layer A" }; var properties = new PipingSoilLayerProperties(layer); // Call string name = properties.ToString(); // Assert Assert.AreEqual(layer.MaterialName, name); }