tbf/TestBenchFramework/BenchControl/TestMethods/FlyingStart/TestMethod.cs
Milan Hanajik b8faca784e - ReferenceFlowmeterCalibration method and sequence (ready for tests)
- FlyingStart method and sequence files prepared for implementation (copies of FlyingStartMassCollection)
2014-09-06 17:34:26 +02:00

28 lines
686 B
C#

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