Fix LaurisTimePoint test.

This commit is contained in:
Daniel Kraus 2015-07-14 15:58:18 +02:00
parent 29ffd7caab
commit c43b0af1e3

View File

@ -32,7 +32,7 @@ namespace Tests.Importer.ZaaImporter
public void ParseValidLaurisTimePoint() public void ParseValidLaurisTimePoint()
{ {
LaurisTimePoint tp = new LaurisTimePoint( LaurisTimePoint tp = new LaurisTimePoint(
"[22.10.2013 12:30:00]" + Environment.NewLine + "(22.10.2013 12:30:00)" + Environment.NewLine +
"Klinische Chemie: Natrium: 139 [135 - 145] mmol/l;  Kalium: 5.2 [3.5 - 5] mmol/l;"); "Klinische Chemie: Natrium: 139 [135 - 145] mmol/l;  Kalium: 5.2 [3.5 - 5] mmol/l;");
Assert.IsTrue(tp.IsValidTimePoint); Assert.IsTrue(tp.IsValidTimePoint);
} }
@ -44,7 +44,7 @@ namespace Tests.Importer.ZaaImporter
Assert.IsFalse(tp.IsValidTimePoint, Assert.IsFalse(tp.IsValidTimePoint,
"Bogus paragraph should be invalid LaurisTimePoint"); "Bogus paragraph should be invalid LaurisTimePoint");
tp.LaurisText = "[22.10.2013 12:30:00]"; tp.LaurisText = "(22.10.2013 12:30:00)";
Assert.IsFalse(tp.IsValidTimePoint, Assert.IsFalse(tp.IsValidTimePoint,
"LaurisTimePoint should be invalid if it consists of time stamp only."); "LaurisTimePoint should be invalid if it consists of time stamp only.");
@ -54,7 +54,7 @@ namespace Tests.Importer.ZaaImporter
public void ParseLaurisTimePointWithDuplicateItems() public void ParseLaurisTimePointWithDuplicateItems()
{ {
LaurisTimePoint tp = new LaurisTimePoint( LaurisTimePoint tp = new LaurisTimePoint(
"[22.10.2013 12:30:00]" + Environment.NewLine + "(22.10.2013 12:30:00)" + Environment.NewLine +
"Klinische Chemie: Natrium: 139 [135 - 145] mmol/l;  Kalium: 5.2 [3.5 - 5] mmol/l;" + Environment.NewLine + "Klinische Chemie: Natrium: 139 [135 - 145] mmol/l;  Kalium: 5.2 [3.5 - 5] mmol/l;" + Environment.NewLine +
"Klinische Chemie: Natrium: 142 [135 - 145] mmol/l;  Kalium: 3.7 [3.5 - 5] mmol/l;" "Klinische Chemie: Natrium: 142 [135 - 145] mmol/l;  Kalium: 3.7 [3.5 - 5] mmol/l;"
); );