Fix parsing of prescriptions without regular dosing.
This commit is contained in:
@ -102,5 +102,14 @@ namespace Tests.Medication
|
||||
Assert.AreEqual("0", list[1].Night);
|
||||
Assert.AreEqual("neu", list[1].Comment);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void PrescriptionWithoutTypicalDosing()
|
||||
{
|
||||
Prescription p = Prescription.FromLine("Eusaprim forte\t alle zwei Tage");
|
||||
Assert.AreEqual("Eusaprim forte", p.Drug);
|
||||
Assert.AreEqual("alle zwei Tage", p.Comment);
|
||||
Assert.AreEqual("Eusaprim forte\talle zwei Tage", p.ToString(), "ToString");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user