Implement automatic MMF warning.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user