tbf/TestBenchFramework/BenchControl/TestMethods/PMaxTest/TestMethodCfg.cs
Milan Hanajik b07c7c5c9d PMaxTest and LeakTest methods implemented, added to the project
Order of two new test wizard dialog exchanged
Pressure Selection wizard dialog added
2015-02-19 15:54:55 +01:00

45 lines
1.2 KiB
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.TestMethods.PMaxTest
{
public class TestMethodCfg : ComponentCfgBase, Generic.IComponentCfg
{
public IComponent GetComponent(IList<IComponent> components) { return new TestMethod(this); }
public IComponentCfgCtrl GetControl() { return new TestMethodCfgCtrl(); }
/// <summary> Test parameters </summary>
[XmlIgnore]
public PMaxTestParams TestParams;
public override IParamsProvider GetTestParams() { return TestParams; }
public override IParamsProvider CreateTestParams(Entities.Test test)
{
PMaxTestParams testParams = new PMaxTestParams();
testParams.UpdateTestParams(Name, test);
return testParams;
}
/// Private parameterless constructor invoked by all other (public) constructors
TestMethodCfg()
{
Name = "PMax-Test";
ParentName = string.Empty;
TestParams = new PMaxTestParams();
}
public TestMethodCfg(IComponentFactory factory)
: this()
{
this.Factory = factory;
}
public string ToString(int i)
{
return string.Format("Name={0}", Name);
}
}
}