Implement automatic MMF warning.
This commit is contained in:
1 parent
865e5bff1e
commit
e71e69d4c4
3 files changed
+55
-2
No files matched your search
@@ -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