From a7cd53819b0684bfeda34bdf0bc0cb9976946c29 Mon Sep 17 00:00:00 2001 From: HuskyTeufel Date: Thu, 7 Jun 2018 21:30:30 +0200 Subject: [PATCH] tests erweitert --- KlassenBIBTests/InspektionsobjektTests.cs | 26 ++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/KlassenBIBTests/InspektionsobjektTests.cs b/KlassenBIBTests/InspektionsobjektTests.cs index 57fbb3f..6c9b9d9 100644 --- a/KlassenBIBTests/InspektionsobjektTests.cs +++ b/KlassenBIBTests/InspektionsobjektTests.cs @@ -70,7 +70,31 @@ namespace KlassenBIB.Tests [TestMethod()] public void InspektionsobjektTest() { - + Projekt projekt = new Projekt(); + projekt.Ort = "Oldenburg"; + + Strasse strasse = new Strasse() + { + Strassename = "Schlachthofstrase", + Ort = "Oldenburg" + }; + + Inspektionsobjekt inspektionsobjekt = new Inspektionsobjekt(); + inspektionsobjekt.Objektbezeichnung = "SW01"; + inspektionsobjekt.VonPunkt = "SW01"; + inspektionsobjekt.BisPunkt = "SW02"; + inspektionsobjekt.Haltungslaenge = 10m; + inspektionsobjekt.RohrMaterial = "Steinzeug"; + inspektionsobjekt.Kanalrohrweite = 150; + + InlinerSanierung sanierung = new InlinerSanierung(); + sanierung.InspektionsObjekt = inspektionsobjekt; + sanierung.Guid = Guid.NewGuid(); + sanierung.WasserhaltungEingerichtet = true; + + + Assert.AreEqual(sanierung.GesamtHarzBedarf, 18m); + } } } \ No newline at end of file