Add test for invalid Lauris paragraph.

This commit is contained in:
Daniel Kraus 2015-06-30 21:47:30 +02:00
parent 443f3ac4e1
commit 5ec85c2237

View File

@ -29,8 +29,17 @@ namespace Tests
string demo = "Klinische Chemie: Natrium: 139 [135 - 145] mmol/l;  " +
"Kalium: 5.2 [3.5 - 5] mmol/l;  Calcium: 2.4 [2.0 - 2.7] mmol/l;";
LaurisParagraph lp = new LaurisParagraph(demo);
Assert.IsTrue(lp.IsLaurisParagraph);
Assert.AreEqual(139, lp.Items["Natrium"].NumericalValue);
Assert.AreEqual(2.4, lp.Items["Calcium"].NumericalValue);
}
[Test]
public void ParseInvalidParagraph()
{
string demo = "Aktuelle Diagnosen:";
LaurisParagraph lp = new LaurisParagraph(demo);
Assert.IsFalse(lp.IsLaurisParagraph);
}
}
}