diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/WC6INCH1-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/WC6INCH1-EQPT.cs similarity index 96% rename from Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/WC6INCH1-EQPT.cs rename to Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/WC6INCH1-EQPT.cs index 362a067..c51b70c 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/WC6INCH1-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.52.0/WC6INCH1-EQPT.cs @@ -7,7 +7,7 @@ using System.Diagnostics; using System.IO; using System.Reflection; -namespace Adaptation._Tests.CreateSelfDescription.Development.v2_52_0; +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_52_0; [TestClass] public class WC6INCH1_EQPT : EAFLoggingUnitTesting diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08AWCT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08AWCT.cs new file mode 100644 index 0000000..aedbfa5 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08AWCT.cs @@ -0,0 +1,63 @@ +#if true +using Adaptation._Tests.Shared; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Reflection; + +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_56_0; + +[TestClass] +public class MET08AWCT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08AWCT EAFLoggingUnitTesting { get; private set; } + + public MET08AWCT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08AWCT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08AWCT(testContext); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize")); + string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName); + File.WriteAllText(fileNameAndText[0], fileNameAndText[1]); + File.WriteAllText(fileNameAndText[2], fileNameAndText[3]); + } + + [ClassCleanup()] + public static void ClassCleanup() + { + EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup"); + EAFLoggingUnitTesting?.Dispose(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_56_0__MET08AWCT__ZipFilesByDate() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); + _ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting); + EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/WC6INCH1-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/WC6INCH1-EQPT.cs similarity index 96% rename from Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/WC6INCH1-EQPT.cs rename to Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/WC6INCH1-EQPT.cs index 780a756..c126fca 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/WC6INCH1-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/WC6INCH1-EQPT.cs @@ -7,7 +7,7 @@ using System.Diagnostics; using System.IO; using System.Reflection; -namespace Adaptation._Tests.CreateSelfDescription.Development.v2_56_0; +namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_56_0; [TestClass] public class WC6INCH1_EQPT : EAFLoggingUnitTesting diff --git a/Adaptation/_Tests/Extract/Development/v2.52.0/WC6INCH1-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.52.0/WC6INCH1-EQPT.cs similarity index 84% rename from Adaptation/_Tests/Extract/Development/v2.52.0/WC6INCH1-EQPT.cs rename to Adaptation/_Tests/Extract/Staging/v2.52.0/WC6INCH1-EQPT.cs index 1d96138..0067bbb 100644 --- a/Adaptation/_Tests/Extract/Development/v2.52.0/WC6INCH1-EQPT.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.52.0/WC6INCH1-EQPT.cs @@ -9,7 +9,7 @@ using System.IO; using System.Reflection; using System.Text.Json; -namespace Adaptation._Tests.Extract.Development.v2_52_0; +namespace Adaptation._Tests.Extract.Staging.v2_52_0; [TestClass] public class WC6INCH1_EQPT @@ -18,13 +18,13 @@ public class WC6INCH1_EQPT #pragma warning disable CA2254 #pragma warning disable IDE0060 - private static CreateSelfDescription.Development.v2_52_0.WC6INCH1_EQPT _WC6INCH1_EQPT; + private static CreateSelfDescription.Staging.v2_52_0.WC6INCH1_EQPT _WC6INCH1_EQPT; [ClassInitialize] public static void ClassInitialize(TestContext testContext) { - CreateSelfDescription.Development.v2_52_0.WC6INCH1_EQPT.ClassInitialize(testContext); - _WC6INCH1_EQPT = CreateSelfDescription.Development.v2_52_0.WC6INCH1_EQPT.EAFLoggingUnitTesting; + CreateSelfDescription.Staging.v2_52_0.WC6INCH1_EQPT.ClassInitialize(testContext); + _WC6INCH1_EQPT = CreateSelfDescription.Staging.v2_52_0.WC6INCH1_EQPT.EAFLoggingUnitTesting; } private static void NonThrowTryCatch() diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08AWCT.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08AWCT.cs new file mode 100644 index 0000000..6c32866 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08AWCT.cs @@ -0,0 +1,29 @@ +#if true +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace Adaptation._Tests.Extract.Staging.v2_56_0; + +[TestClass] +public class MET08AWCT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_56_0.MET08AWCT _MET08AWCT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_56_0.MET08AWCT.ClassInitialize(testContext); + _MET08AWCT = CreateSelfDescription.Staging.v2_56_0.MET08AWCT.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_56_0__MET08AWCT__ZipFilesByDate() => _MET08AWCT.Staging__v2_56_0__MET08AWCT__ZipFilesByDate(); + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.56.0/WC6INCH1-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/WC6INCH1-EQPT.cs similarity index 83% rename from Adaptation/_Tests/Extract/Development/v2.56.0/WC6INCH1-EQPT.cs rename to Adaptation/_Tests/Extract/Staging/v2.56.0/WC6INCH1-EQPT.cs index 0f5a156..9fcdc3e 100644 --- a/Adaptation/_Tests/Extract/Development/v2.56.0/WC6INCH1-EQPT.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.56.0/WC6INCH1-EQPT.cs @@ -9,7 +9,7 @@ using System.IO; using System.Reflection; using System.Text.Json; -namespace Adaptation._Tests.Extract.Development.v2_56_0; +namespace Adaptation._Tests.Extract.Staging.v2_56_0; [TestClass] public class WC6INCH1_EQPT @@ -18,13 +18,13 @@ public class WC6INCH1_EQPT #pragma warning disable CA2254 #pragma warning disable IDE0060 - private static CreateSelfDescription.Development.v2_56_0.WC6INCH1_EQPT _WC6INCH1_EQPT; + private static CreateSelfDescription.Staging.v2_56_0.WC6INCH1_EQPT _WC6INCH1_EQPT; [ClassInitialize] public static void ClassInitialize(TestContext testContext) { - CreateSelfDescription.Development.v2_56_0.WC6INCH1_EQPT.ClassInitialize(testContext); - _WC6INCH1_EQPT = CreateSelfDescription.Development.v2_56_0.WC6INCH1_EQPT.EAFLoggingUnitTesting; + CreateSelfDescription.Staging.v2_56_0.WC6INCH1_EQPT.ClassInitialize(testContext); + _WC6INCH1_EQPT = CreateSelfDescription.Staging.v2_56_0.WC6INCH1_EQPT.EAFLoggingUnitTesting; } private static void NonThrowTryCatch() @@ -40,9 +40,7 @@ public class WC6INCH1_EQPT [TestMethod] public void Staging__v2_56_0__WC6INCH1_EQPT__ConvertExcelToJson() => _WC6INCH1_EQPT.Staging__v2_56_0__WC6INCH1_EQPT__ConvertExcelToJson(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_56_0__WC6INCH1_EQPT__ConvertExcelToJson637961178824025822__Normal() { diff --git a/Adaptation/_Tests/Static/MET08AWCT.cs b/Adaptation/_Tests/Static/MET08AWCT.cs index 1f7cc16..0014d94 100644 --- a/Adaptation/_Tests/Static/MET08AWCT.cs +++ b/Adaptation/_Tests/Static/MET08AWCT.cs @@ -54,34 +54,6 @@ public class MET08AWCT : LoggingUnitTesting, IDisposable Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString()); } -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Development() - { - MethodBase methodBase = new StackFrame().GetMethod(); - StringBuilder results = new(); - (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] - { - new("MET08AWCT", "v2.56.0"), - }; - string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2"; - Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; - LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); - foreach ((string cellInstanceName, string cellInstanceVersionName) in collection) - { - cellInstanceVersion = AdaptationTesting.GetCellInstanceVersion($"{development}/{cellInstanceName}/{cellInstanceVersionName}/configuration"); - _ = results.AppendLine($"{cellInstanceName}\t{cellInstanceVersionName}\t{cellInstanceVersion.EdaConnection.PortNumber}"); - } - string sourceDirectory = "D:/Tmp/cellInstanceVersion.EdaConnection.PortNumber"; - if (!Directory.Exists(sourceDirectory)) - _ = Directory.CreateDirectory(sourceDirectory); - File.WriteAllText(Path.Combine(sourceDirectory, $"{methodBase.Module.Name}-{methodBase.ReflectedType.Name}-{methodBase.Name}.tsv"), results.ToString()); - LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); - NonThrowTryCatch(); - } - #if DEBUG [Ignore] #endif diff --git a/Adaptation/_Tests/Static/WC.cs b/Adaptation/_Tests/Static/WC.cs index d401a62..59f7a6d 100644 --- a/Adaptation/_Tests/Static/WC.cs +++ b/Adaptation/_Tests/Static/WC.cs @@ -54,40 +54,6 @@ public class WC : LoggingUnitTesting, IDisposable Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString()); } -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Development() - { - MethodBase methodBase = new StackFrame().GetMethod(); - StringBuilder results = new(); - (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] - { - new("WC6INCH1-EQPT", "v2.56.0"), - new("WC6INCH2-EQPT", "v2.56.0"), - new("WC6INCH3-EQPT", "v2.56.0"), - new("WC6INCH4-EQPT", "v2.56.0"), - new("WC8INCH1-EQPT", "v2.56.0"), - new("WC8INCH2-EQPT", "v2.56.0"), - new("WC8INCH3-EQPT", "v2.56.0"), - }; - string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2"; - Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; - LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); - foreach ((string cellInstanceName, string cellInstanceVersionName) in collection) - { - cellInstanceVersion = AdaptationTesting.GetCellInstanceVersion($"{development}/{cellInstanceName}/{cellInstanceVersionName}/configuration"); - _ = results.AppendLine($"{cellInstanceName}\t{cellInstanceVersionName}\t{cellInstanceVersion.EdaConnection.PortNumber}"); - } - string sourceDirectory = "D:/Tmp/cellInstanceVersion.EdaConnection.PortNumber"; - if (!Directory.Exists(sourceDirectory)) - _ = Directory.CreateDirectory(sourceDirectory); - File.WriteAllText(Path.Combine(sourceDirectory, $"{methodBase.Module.Name}-{methodBase.ReflectedType.Name}-{methodBase.Name}.tsv"), results.ToString()); - LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); - NonThrowTryCatch(); - } - #if DEBUG [Ignore] #endif