public void AnalyseConstructionYear_Baujahr1_Baujahr2_Renovation1_Renovation2() { // Arrange string value = "1938 1919-1945 1990 1986-1990 "; // Act Housing housing = new Housing(); AnalysePdfData apd = new AnalysePdfData(); apd.ConstructionYear(housing, value); // Assert Assert.AreEqual("1938", housing.Baujahr1); Assert.AreEqual("1919-1945", housing.Baujahr2); Assert.AreEqual("1990", housing.Renovation1); Assert.AreEqual("1986-1990", housing.Renovation2); Assert.IsNull(housing.Abbruch); }
public void AnalyseConstructionYear_Baujahr1_Baujahr2() { // Arrange string value = "2017 Nach 2015 - "; // Act Housing housing = new Housing(); AnalysePdfData apd = new AnalysePdfData(); apd.ConstructionYear(housing, value); // Assert Assert.AreEqual("2017", housing.Baujahr1); Assert.AreEqual("Nach 2015", housing.Baujahr2); Assert.IsNull(housing.Renovation1); Assert.AreEqual("-", housing.Renovation2); Assert.IsNull(housing.Abbruch); }