Fixed bug: Wrong test selection when parts of the name match each other (e.g.Q1 and Q10)

This commit is contained in:
Milan Hanajik 2014-12-11 09:04:06 +01:00
parent 1afd6870c3
commit 89ae1bb52f

View File

@ -352,7 +352,10 @@ namespace TBF.BenchControl
}
else if (selection == Sequences.MainSeq.Selection.Test)
{
foreach (var test in Tests) if (test.Name.Contains(TBF.UiBridge.Bridge.SelectedTestName)) return test;
foreach (var test in Tests)
{
if (test.Name.Equals(TBF.UiBridge.Bridge.SelectedTestName)) return test;
}
}
return null;
}