tbf/TestBenchFramework/BenchControl/TestMethods/FixedStartMassCollection/TestMethod.cs

28 lines
712 B
C#

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