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:
+28
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user