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

28 lines
718 B
C#

using System;
using System.Collections.Generic;
using TBF.BenchControl;
namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
{
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)
{
return (new FlyingStartCollectionMethodSeq()).Execute(test);
}
}
}