Evaluate and Publish properties of test methods changed to stateless functions Evaluate(test) and Publish(test), this fixes results, version 1.5.107

This commit is contained in:
Milan Hanajik
2015-09-06 22:21:54 +02:00
parent 264830a36b
commit d041cd1d20
17 changed files with 92 additions and 36 deletions
@@ -16,8 +16,34 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
readonly TestMethodCfg testMethodCfg;
public bool Evaluate { get { return testMethodCfg.TestParams.Evaluate; } }
public bool Publish { get { return testMethodCfg.TestParams.Publish; } }
public bool Evaluate(Entities.Test test)
{
TestParams tp = new TestParams();
foreach (var tstPrms in test.MoreParams)
{
if (tstPrms.CmpntName.Equals(Name))
{
tp.UpdateTestParams(tstPrms);
return tp.Evaluate;
}
}
return true;
}
public bool Publish(Entities.Test test)
{
TestParams tp = new TestParams();
foreach (var tstPrms in test.MoreParams)
{
if (tstPrms.CmpntName.Equals(Name))
{
tp.UpdateTestParams(tstPrms);
return tp.Publish;
}
}
return true;
}
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Single; }
public TestMethod()