- all components, componentCfg-s and parameter providers use base classes - less boilerplate code, simpler access to test/procedure parameters from code - CreateTestParams(test), CreateProcedureParams(procedure) methods added - TestBenchSim class is made static, it is not inheritted by any device anymore
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.TestMethods.CombinedWithDetection
|
|
{
|
|
public class TestMethodCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
{
|
|
/// <summary> Test parameters </summary>
|
|
[XmlIgnore]
|
|
public CombinedWithDetTestParams TestParams;
|
|
public override IParamsProvider GetTestParams() { return TestParams; }
|
|
public override IParamsProvider CreateTestParams(Entities.Test test)
|
|
{
|
|
CombinedWithDetTestParams testParams = new CombinedWithDetTestParams();
|
|
testParams.UpdateTestParams(Name, test);
|
|
return testParams;
|
|
}
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
TestMethodCfg()
|
|
{
|
|
Name = "CombinedWithDetection";
|
|
ParentName = string.Empty;
|
|
TestParams = new CombinedWithDetTestParams();
|
|
}
|
|
|
|
public TestMethodCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}", Name);
|
|
}
|
|
}
|
|
}
|