Fix additional tests.

This commit is contained in:
daniel 2016-10-03 16:09:43 +02:00
parent ba07293385
commit e190e85b89
2 changed files with 8 additions and 7 deletions

View File

@ -153,7 +153,7 @@ namespace Tests.Importer.ZaaImporter
[TestCase("Albumin (SU)/die: 149.9 [<= 30] mg/d; ", Material.SU)]
[TestCase("Gesamt-Eiweiss/Creatinin (PU): 281 [<= 70] mg/g Crea;", Material.U)]
[TestCase("Cystatin C (N Latex): 2.37 [0.57 - 0.96] mg/l; ", Material.B)]
[TestCase("Cystatin C (N Latex): 2.37 [0.57 - 0.96] mg/l; ", Material.S)]
public void ParseLaurisMaterial(string laurisString, Material expectedMaterial)
{
LaurisItem i = new LaurisItem(laurisString);

View File

@ -206,13 +206,14 @@ namespace zaaReloaded2.LabModel
{
get
{
if (Material == LabModel.Material.B)
switch (Material)
{
return Name;
}
else
{
return String.Format("{0}-{1}", Material.ToString(), Name);
case Material.S:
case Material.E:
case Material.B:
return Name;
default:
return String.Format("{0}-{1}", Material.ToString(), Name);
}
}
}