Implement automatic MMF warning.

This commit is contained in:
Daniel Kraus
2015-12-02 17:08:25 +01:00
parent 865e5bff1e
commit e71e69d4c4
3 changed files with 55 additions and 2 deletions

View File

@ -111,5 +111,18 @@ namespace Tests.Medication
Assert.AreEqual("alle zwei Tage", p.Comment);
Assert.AreEqual("Eusaprim forte\talle zwei Tage", p.ToString(), "ToString");
}
[Test]
[TestCase("CellCept 500 mg", true)]
[TestCase("Cell CEpt 500 mg", true)]
[TestCase("Myfortic", true)]
[TestCase("Mycophenolatmofetil 500 mg", true)]
[TestCase("Cellophan 5 g", false)]
[TestCase("MMF 500 mg", true)]
public void MmfProperty(string drug, bool isMmf)
{
Prescription p = new Prescription(drug);
Assert.AreEqual(isMmf, p.IsMmf);
}
}
}