diff --git a/TestBenchFramework/BenchControl/TbfComponents.cs b/TestBenchFramework/BenchControl/TbfComponents.cs index 1e218d96a..a6a2e6ff6 100644 --- a/TestBenchFramework/BenchControl/TbfComponents.cs +++ b/TestBenchFramework/BenchControl/TbfComponents.cs @@ -15,7 +15,7 @@ namespace TBF.BenchControl { Factories = new List(); - Factories.Add(new TestMethods.Adjustment.TestMethodFactory()); + Factories.Add(new TestMethods.Adjustment.Factory()); Factories.Add(new ResultsPrinters.Basic.PrinterFactory()); Factories.Add(new BenchInfo.Munich.ComponentFactory()); Factories.Add(new BenchInfo.Polska.ComponentFactory()); diff --git a/TestBenchFramework/BenchControl/TestMethods/Adjustment/TestMethodFactory.cs b/TestBenchFramework/BenchControl/TestMethods/Adjustment/Factory.cs similarity index 66% rename from TestBenchFramework/BenchControl/TestMethods/Adjustment/TestMethodFactory.cs rename to TestBenchFramework/BenchControl/TestMethods/Adjustment/Factory.cs index 9d96b4fbd..01a3e4e40 100644 --- a/TestBenchFramework/BenchControl/TestMethods/Adjustment/TestMethodFactory.cs +++ b/TestBenchFramework/BenchControl/TestMethods/Adjustment/Factory.cs @@ -7,9 +7,9 @@ using TBF.BenchControl.Configs.NameOnly; namespace TBF.BenchControl.TestMethods.Adjustment { - public class TestMethodFactory : IComponentFactory + public class Factory : IComponentFactory { - public string ClassName { get { return "Adjustment"; } } + public string ClassName { get { return this.GetType().Namespace.Substring(17) + ".Single"; } } public void ResetStaticProperties() { TestMethod.ResetStaticProperties(); } @@ -17,7 +17,10 @@ namespace TBF.BenchControl.TestMethods.Adjustment public IComponent GetComponent(IComponentCfg cfg, IList components) { return new TestMethod(cfg); } - public IComponentCfg DefaultConfig() { return new TestMethodCfg("Adjustment", this); } + public IComponentCfg DefaultConfig() + { + return new TestMethodCfg(this.GetType().Namespace.Substring("TBF.BenchControl.TestMethods.".Length) + ".Single", this); + } public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component) { diff --git a/TestBenchFramework/TBF.csproj b/TestBenchFramework/TBF.csproj index d1afd3cb2..a143b2e37 100644 --- a/TestBenchFramework/TBF.csproj +++ b/TestBenchFramework/TBF.csproj @@ -1017,7 +1017,7 @@ - + Form