Test method names cleaned up.

This commit is contained in:
Milan Hanajik 2016-09-26 11:08:16 +02:00
parent a1810baffa
commit 2286877fad
8 changed files with 21 additions and 21 deletions

View File

@ -19,7 +19,7 @@ namespace TBF.BenchControl.TestMethods.Adjustment
public IComponentCfg DefaultConfig()
{
return new TestMethodCfg(this.GetType().Namespace.Substring("TBF.BenchControl.TestMethods.".Length) + ".Single", this);
return new TestMethodCfg(this.GetType().Namespace.Substring(29) +".Single", this);
}
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)

View File

@ -28,15 +28,15 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
/// Private parameterless constructor invoked by all other (public) constructors
TestMethodCfg()
{
Name = "CombinedWithDetection";
ParentName = string.Empty;
TestParams = new CombinedWithDetTestParams();
}
public TestMethodCfg(IComponentFactory factory)
public TestMethodCfg(string name, IComponentFactory factory)
: this()
{
this.Factory = factory;
Name = name;
ParentName = string.Empty;
Factory = factory;
}
public string ToString(int i)

View File

@ -8,7 +8,7 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
{
public class TestMethodFactory : IComponentFactory
{
public string ClassName { get { return "CombinedWithDetection"; } }
public string ClassName { get { return this.GetType().Namespace.Substring(17) + ".Compound"; } }
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
@ -16,7 +16,7 @@ namespace TBF.BenchControl.TestMethods.CombinedWithDetection
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this.GetType().Namespace.Substring(29), this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{

View File

@ -28,15 +28,15 @@ namespace TBF.BenchControl.TestMethods.LeakTest
/// Private parameterless constructor invoked by all other (public) constructors
TestMethodCfg()
{
Name = "Leak-Test";
ParentName = string.Empty;
TestParams = new LeakTestParams();
}
public TestMethodCfg(IComponentFactory factory)
public TestMethodCfg(string name, IComponentFactory factory)
: this()
{
this.Factory = factory;
Name = name;
ParentName = string.Empty;
Factory = factory;
}
public string ToString(int i)

View File

@ -8,7 +8,7 @@ namespace TBF.BenchControl.TestMethods.LeakTest
{
public class TestMethodFactory : IComponentFactory
{
public string ClassName { get { return "Leak-Test"; } }
public string ClassName { get { return this.GetType().Namespace.Substring(17); } }
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
@ -16,7 +16,7 @@ namespace TBF.BenchControl.TestMethods.LeakTest
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this.GetType().Namespace.Substring(29), this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{

View File

@ -28,15 +28,15 @@ namespace TBF.BenchControl.TestMethods.PMaxTest
/// Private parameterless constructor invoked by all other (public) constructors
TestMethodCfg()
{
Name = "PMax-Test";
ParentName = string.Empty;
TestParams = new PMaxTestParams();
}
public TestMethodCfg(IComponentFactory factory)
public TestMethodCfg(string name, IComponentFactory factory)
: this()
{
this.Factory = factory;
Name = name;
ParentName = string.Empty;
Factory = factory;
}
public string ToString(int i)

View File

@ -8,7 +8,7 @@ namespace TBF.BenchControl.TestMethods.PMaxTest
{
public class TestMethodFactory : IComponentFactory
{
public string ClassName { get { return "PMax-Test"; } }
public string ClassName { get { return this.GetType().Namespace.Substring(17); } }
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
@ -16,7 +16,7 @@ namespace TBF.BenchControl.TestMethods.PMaxTest
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this.GetType().Namespace.Substring(29), this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{

View File

@ -9,7 +9,7 @@ namespace TBF.BenchControl.TestMethods.ReferenceFlowmeterCalibration
{
public class TestMethodFactory : IComponentFactory
{
public string ClassName { get { return "ReferenceFlowmeterCalibration"; } }
public string ClassName { get { return this.GetType().Namespace.Substring(17); } }
public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); }
@ -17,7 +17,7 @@ namespace TBF.BenchControl.TestMethods.ReferenceFlowmeterCalibration
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new TestMethod(cfg); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg("ReferenceFlowmeterCalibration", this); }
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this.GetType().Namespace.Substring(29), this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{