Fix parsing again.

This commit is contained in:
Daniel Kraus 2015-12-01 17:02:31 +01:00
parent 84e298e9ad
commit 4479efc196
3 changed files with 6 additions and 1 deletions

View File

@ -80,6 +80,7 @@ namespace Tests.Medication
Assert.AreEqual("0", p.Noon); Assert.AreEqual("0", p.Noon);
Assert.AreEqual("2", p.Evening); Assert.AreEqual("2", p.Evening);
Assert.AreEqual("(gesteigert)", p.Comment); Assert.AreEqual("(gesteigert)", p.Comment);
Assert.AreEqual("Ramipril 5 mg\t1-0-2 (gesteigert)", p.ToString());
} }
[Test] [Test]

View File

@ -3,7 +3,7 @@
; Apache License Version 2.0 ; Apache License Version 2.0
[Setup] [Setup]
; #define DEBUG #define DEBUG
; Read the semantic and the installer file version from the VERSION file ; Read the semantic and the installer file version from the VERSION file
#define FILE_HANDLE FileOpen("..\zaaReloaded2\VERSION") #define FILE_HANDLE FileOpen("..\zaaReloaded2\VERSION")

View File

@ -155,6 +155,10 @@ namespace zaaReloaded2.Medication
{ {
s += "-" + Night; s += "-" + Night;
} }
if (!String.IsNullOrEmpty(Comment))
{
s += " " + Comment.Trim();
}
return s; return s;
} }