tbf/TestBenchFramework/BenchControl/TestMethods/CombinedWithDetection/TestMethod.cs
2014-07-28 09:56:40 +02:00

30 lines
883 B
C#

using System;
using System.Collections.Generic;
using TBF.BenchControl;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.TestMethods.CombinedWithDetection
{
public class TestMethod : Generic.IComponent, GenericDevices.ITestMethod, ISequence
{
readonly TestMethodCfg testMethodCfg;
public Generic.IComponentCfg Cfg { get { return testMethodCfg; } }
public static void ResetStaticProperties() { }
public string Name { get { return testMethodCfg.Name; } }
public TestMethod(TestMethodCfg cfg)
{
if (cfg == null) throw new ArgumentNullException("cfg");
this.testMethodCfg = cfg;
}
public IList<Event> Execute(Entities.Test test)
{
IParamsProvider testParams = BenchControl.TbfComponents.GetTestParams(this, test);
return (new CombinedWithDetectionSeq()).Execute(test, testParams as CombinedWithDetTestParams);
}
}
}