Add test for invalid Lauris paragraph.
This commit is contained in:
parent
443f3ac4e1
commit
5ec85c2237
@ -29,8 +29,17 @@ namespace Tests
|
|||||||
string demo = "Klinische Chemie: Natrium: 139 [135 - 145] mmol/l; " +
|
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;";
|
"Kalium: 5.2 [3.5 - 5] mmol/l; Calcium: 2.4 [2.0 - 2.7] mmol/l;";
|
||||||
LaurisParagraph lp = new LaurisParagraph(demo);
|
LaurisParagraph lp = new LaurisParagraph(demo);
|
||||||
|
Assert.IsTrue(lp.IsLaurisParagraph);
|
||||||
Assert.AreEqual(139, lp.Items["Natrium"].NumericalValue);
|
Assert.AreEqual(139, lp.Items["Natrium"].NumericalValue);
|
||||||
Assert.AreEqual(2.4, lp.Items["Calcium"].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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user