From d3b6311de224c5a2663bc45e15427ee5fcaff88a Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Tue, 4 Jun 2024 09:07:56 -0700 Subject: [PATCH] Test from EAF Server --- Adaptation/.vscode/launch.json | 2 +- .../Development/v2.49.0/BACKLOG-EQPT.cs | 6 +- .../Development/v2.49.0/BACKLOG.cs | 6 +- .../Development/v2.49.0/MESAFIBACKLOG.cs | 6 +- .../Development/v2.49.2/BACKLOG-EQPT.cs | 6 +- .../Development/v2.49.2/BACKLOG.cs | 6 +- .../Development/v2.49.2/MESAFIBACKLOG.cs | 6 +- .../Development/v2.52.0/ALIGNMENT.cs | 6 +- .../Development/v2.52.0/BACKLOG-EQPT.cs | 6 +- .../Development/v2.52.0/BACKLOG.cs | 6 +- .../Development/v2.52.0/MESAFIBACKLOG.cs | 10 +- .../Development/v2.56.0/ALIGNMENT-EQPT.cs | 65 +++++++++++ .../Development/v2.56.0/ALIGNMENT.cs | 65 +++++++++++ .../Development/v2.56.0/BACKLOG-EQPT.cs | 65 +++++++++++ .../Development/v2.56.0/BACKLOG.cs | 65 +++++++++++ .../Development/v2.56.0/MESAFIBACKLOG.cs | 91 +++++++++++++++ .../Development/v2.49.0/BACKLOG-EQPT.cs | 8 +- .../Extract/Development/v2.49.0/BACKLOG.cs | 8 +- .../Development/v2.49.0/MESAFIBACKLOG.cs | 10 +- .../Development/v2.49.2/BACKLOG-EQPT.cs | 8 +- .../Extract/Development/v2.49.2/BACKLOG.cs | 8 +- .../Development/v2.49.2/MESAFIBACKLOG.cs | 10 +- .../Extract/Development/v2.52.0/ALIGNMENT.cs | 8 +- .../Development/v2.52.0/BACKLOG-EQPT.cs | 4 +- .../Extract/Development/v2.52.0/BACKLOG.cs | 8 +- .../Development/v2.52.0/MESAFIBACKLOG.cs | 18 ++- .../Development/v2.56.0/ALIGNMENT-EQPT.cs | 52 +++++++++ .../Extract/Development/v2.56.0/ALIGNMENT.cs | 64 +++++++++++ .../Development/v2.56.0/BACKLOG-EQPT.cs | 52 +++++++++ .../Extract/Development/v2.56.0/BACKLOG.cs | 64 +++++++++++ .../Development/v2.56.0/MESAFIBACKLOG.cs | 104 +++++++++++++++++ Adaptation/_Tests/Shared/AdaptationTesting.cs | 2 +- Adaptation/_Tests/Static/ALIGNMENT.cs | 106 ++++++++++++++++++ Adaptation/_Tests/Static/BACKLOG.cs | 31 +---- Adaptation/_Tests/Static/MESAFIBACKLOG.cs | 27 +---- 35 files changed, 932 insertions(+), 77 deletions(-) create mode 100644 Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/ALIGNMENT-EQPT.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/ALIGNMENT.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/BACKLOG-EQPT.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/BACKLOG.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/MESAFIBACKLOG.cs create mode 100644 Adaptation/_Tests/Extract/Development/v2.56.0/ALIGNMENT-EQPT.cs create mode 100644 Adaptation/_Tests/Extract/Development/v2.56.0/ALIGNMENT.cs create mode 100644 Adaptation/_Tests/Extract/Development/v2.56.0/BACKLOG-EQPT.cs create mode 100644 Adaptation/_Tests/Extract/Development/v2.56.0/BACKLOG.cs create mode 100644 Adaptation/_Tests/Extract/Development/v2.56.0/MESAFIBACKLOG.cs create mode 100644 Adaptation/_Tests/Static/ALIGNMENT.cs diff --git a/Adaptation/.vscode/launch.json b/Adaptation/.vscode/launch.json index ca80d86..643f540 100644 --- a/Adaptation/.vscode/launch.json +++ b/Adaptation/.vscode/launch.json @@ -4,7 +4,7 @@ "name": ".NET Core Attach", "type": "coreclr", "request": "attach", - "processId": 23668 + "processId": 11456 } ] } diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG-EQPT.cs index 6d3cbdd..d1cd503 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG-EQPT.cs @@ -1,3 +1,4 @@ +#if v2_49_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile() { @@ -58,4 +61,5 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG.cs index be3a4d6..f44399f 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/BACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_49_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class BACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__BACKLOG__ConvertExcelToJson() { @@ -58,4 +61,5 @@ public class BACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/MESAFIBACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/MESAFIBACKLOG.cs index de7f4fe..57d779e 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.0/MESAFIBACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_49_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__MESAFIBACKLOG__json() { @@ -58,4 +61,5 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/BACKLOG-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/BACKLOG-EQPT.cs index 03480bf..156202e 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/BACKLOG-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/BACKLOG-EQPT.cs @@ -1,3 +1,4 @@ +#if v2_49_2 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__BACKLOG_EQPT__DownloadExcelFile() { @@ -58,4 +61,5 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/BACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/BACKLOG.cs index 21c9aa8..cf34e32 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/BACKLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/BACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_49_2 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class BACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__BACKLOG__ConvertExcelToJson() { @@ -58,4 +61,5 @@ public class BACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/MESAFIBACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/MESAFIBACKLOG.cs index 3fb488c..e7b30c3 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.49.2/MESAFIBACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_49_2 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__MESAFIBACKLOG__json() { @@ -58,4 +61,5 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/ALIGNMENT.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/ALIGNMENT.cs index e6e0265..d1531cb 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/ALIGNMENT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/ALIGNMENT.cs @@ -1,3 +1,4 @@ +#if v2_52_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class ALIGNMENT : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__ALIGNMENT__ConvertExcelToJson() { @@ -58,4 +61,5 @@ public class ALIGNMENT : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/BACKLOG-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/BACKLOG-EQPT.cs index e0fb3e7..4f1b4d0 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/BACKLOG-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/BACKLOG-EQPT.cs @@ -1,3 +1,4 @@ +#if v2_52_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__BACKLOG_EQPT__DownloadExcelFile() { @@ -58,4 +61,5 @@ public class BACKLOG_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/BACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/BACKLOG.cs index e912f5f..7959621 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/BACKLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/BACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_52_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class BACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__BACKLOG__ConvertExcelToJson() { @@ -58,4 +61,5 @@ public class BACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/MESAFIBACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/MESAFIBACKLOG.cs index 09d9f5f..49b33c1 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.52.0/MESAFIBACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_52_0 using Adaptation._Tests.Shared; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -47,7 +48,9 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__CopyToPaths() { @@ -58,7 +61,9 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__json() { @@ -69,7 +74,9 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__Kanban() { @@ -80,4 +87,5 @@ public class MESAFIBACKLOG : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/ALIGNMENT-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/ALIGNMENT-EQPT.cs new file mode 100644 index 0000000..079fb84 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/ALIGNMENT-EQPT.cs @@ -0,0 +1,65 @@ +#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.Development.v2_56_0; + +[TestClass] +public class ALIGNMENT_EQPT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static ALIGNMENT_EQPT EAFLoggingUnitTesting { get; private set; } + + static ALIGNMENT_EQPT() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy"; + + public ALIGNMENT_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public ALIGNMENT_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new ALIGNMENT_EQPT(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 Development__v2_56_0__ALIGNMENT_EQPT__DownloadExcelFile() + { + string check = ".xlsx"; + 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/ALIGNMENT.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/ALIGNMENT.cs new file mode 100644 index 0000000..f4fb077 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/ALIGNMENT.cs @@ -0,0 +1,65 @@ +#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.Development.v2_56_0; + +[TestClass] +public class ALIGNMENT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static ALIGNMENT EAFLoggingUnitTesting { get; private set; } + + static ALIGNMENT() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy"; + + public ALIGNMENT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public ALIGNMENT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new ALIGNMENT(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 Development__v2_56_0__ALIGNMENT__ConvertExcelToJson() + { + string check = "*.xlsx"; + 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/BACKLOG-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/BACKLOG-EQPT.cs new file mode 100644 index 0000000..d39c7ee --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/BACKLOG-EQPT.cs @@ -0,0 +1,65 @@ +#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.Development.v2_56_0; + +[TestClass] +public class BACKLOG_EQPT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static BACKLOG_EQPT EAFLoggingUnitTesting { get; private set; } + + static BACKLOG_EQPT() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy"; + + public BACKLOG_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public BACKLOG_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new BACKLOG_EQPT(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 Development__v2_56_0__BACKLOG_EQPT__DownloadExcelFile() + { + string check = ".xlsx"; + 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/BACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/BACKLOG.cs new file mode 100644 index 0000000..339dbb8 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/BACKLOG.cs @@ -0,0 +1,65 @@ +#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.Development.v2_56_0; + +[TestClass] +public class BACKLOG : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static BACKLOG EAFLoggingUnitTesting { get; private set; } + + static BACKLOG() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy"; + + public BACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public BACKLOG(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new BACKLOG(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 Development__v2_56_0__BACKLOG__ConvertExcelToJson() + { + string check = "*.xlsx"; + 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/MESAFIBACKLOG.cs b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/MESAFIBACKLOG.cs new file mode 100644 index 0000000..1825474 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Development/v2.56.0/MESAFIBACKLOG.cs @@ -0,0 +1,91 @@ +#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.Development.v2_56_0; + +[TestClass] +public class MESAFIBACKLOG : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MESAFIBACKLOG EAFLoggingUnitTesting { get; private set; } + + static MESAFIBACKLOG() => DummyRoot = @"\\messdv002.na.infineon.com\Candela\EC_Characterization_Si\Dummy"; + + public MESAFIBACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MESAFIBACKLOG(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MESAFIBACKLOG(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 Development__v2_56_0__MESAFIBACKLOG__CopyToPaths() + { + string check = "*.json"; + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__MESAFIBACKLOG__json() + { + string check = "*.json"; + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__MESAFIBACKLOG__Kanban() + { + string check = "*.json"; + 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/Extract/Development/v2.49.0/BACKLOG-EQPT.cs b/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG-EQPT.cs index a471fd5..d43e597 100644 --- a/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG-EQPT.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG-EQPT.cs @@ -1,3 +1,4 @@ +#if v2_49_0 using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Diagnostics; @@ -29,11 +30,15 @@ public class BACKLOG_EQPT catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile() => _BACKLOG_EQPT.Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__BACKLOG_EQPT__DownloadExcelFile637961178824025822__Normal() { @@ -47,4 +52,5 @@ public class BACKLOG_EQPT NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG.cs index 0946601..8c4c6c6 100644 --- a/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.0/BACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_49_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -33,11 +34,15 @@ public class BACKLOG catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__BACKLOG__ConvertExcelToJson() => _BACKLOG.Development__v2_49_0__BACKLOG__ConvertExcelToJson(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__BACKLOG__ConvertExcelToJson637961178824025822__Normal() { @@ -55,4 +60,5 @@ public class BACKLOG NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.49.0/MESAFIBACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.49.0/MESAFIBACKLOG.cs index ec2e6a8..904f4f9 100644 --- a/Adaptation/_Tests/Extract/Development/v2.49.0/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.0/MESAFIBACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_49_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -33,11 +34,15 @@ public class MESAFIBACKLOG catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__MESAFIBACKLOG__json() => _MESAFIBACKLOG.Development__v2_49_0__MESAFIBACKLOG__json(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__MESAFIBACKLOG__json637961251829737445__Normal() { @@ -55,7 +60,9 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_0__MESAFIBACKLOG__json637961251829737449__Normal() { @@ -73,4 +80,5 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.49.2/BACKLOG-EQPT.cs b/Adaptation/_Tests/Extract/Development/v2.49.2/BACKLOG-EQPT.cs index 4970a9f..2a15d01 100644 --- a/Adaptation/_Tests/Extract/Development/v2.49.2/BACKLOG-EQPT.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.2/BACKLOG-EQPT.cs @@ -1,3 +1,4 @@ +#if v2_49_2 using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Diagnostics; @@ -29,11 +30,15 @@ public class BACKLOG_EQPT catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__BACKLOG_EQPT__DownloadExcelFile() => _BACKLOG_EQPT.Development__v2_49_2__BACKLOG_EQPT__DownloadExcelFile(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__BACKLOG_EQPT__DownloadExcelFile637961178824025822__Normal() { @@ -47,4 +52,5 @@ public class BACKLOG_EQPT NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.49.2/BACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.49.2/BACKLOG.cs index 79e1854..2078a43 100644 --- a/Adaptation/_Tests/Extract/Development/v2.49.2/BACKLOG.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.2/BACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_49_2 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -33,11 +34,15 @@ public class BACKLOG catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__BACKLOG__ConvertExcelToJson() => _BACKLOG.Development__v2_49_2__BACKLOG__ConvertExcelToJson(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__BACKLOG__ConvertExcelToJson637961178824025822__Normal() { @@ -55,4 +60,5 @@ public class BACKLOG NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.49.2/MESAFIBACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.49.2/MESAFIBACKLOG.cs index 73fee7f..3dc17b5 100644 --- a/Adaptation/_Tests/Extract/Development/v2.49.2/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/Extract/Development/v2.49.2/MESAFIBACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_49_2 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -33,11 +34,15 @@ public class MESAFIBACKLOG catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__MESAFIBACKLOG__json() => _MESAFIBACKLOG.Development__v2_49_2__MESAFIBACKLOG__json(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__MESAFIBACKLOG__json637961251829737445__Normal() { @@ -55,7 +60,9 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_49_2__MESAFIBACKLOG__json637961251829737449__Normal() { @@ -73,4 +80,5 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.52.0/ALIGNMENT.cs b/Adaptation/_Tests/Extract/Development/v2.52.0/ALIGNMENT.cs index b91978d..6d128e6 100644 --- a/Adaptation/_Tests/Extract/Development/v2.52.0/ALIGNMENT.cs +++ b/Adaptation/_Tests/Extract/Development/v2.52.0/ALIGNMENT.cs @@ -1,3 +1,4 @@ +#if v2_52_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -33,11 +34,15 @@ public class ALIGNMENT catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__ALIGNMENT__ConvertExcelToJson() => _ALIGNMENT.Development__v2_52_0__ALIGNMENT__ConvertExcelToJson(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__ALIGNMENT__ConvertExcelToJson638353030755467303__Normal() { @@ -55,4 +60,5 @@ public class ALIGNMENT NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.52.0/BACKLOG-EQPT.cs b/Adaptation/_Tests/Extract/Development/v2.52.0/BACKLOG-EQPT.cs index 8217ebd..f0b1ecf 100644 --- a/Adaptation/_Tests/Extract/Development/v2.52.0/BACKLOG-EQPT.cs +++ b/Adaptation/_Tests/Extract/Development/v2.52.0/BACKLOG-EQPT.cs @@ -1,3 +1,4 @@ +#if v2_52_0 using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.Diagnostics; @@ -47,4 +48,5 @@ public class BACKLOG_EQPT NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.52.0/BACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.52.0/BACKLOG.cs index 0665d86..2e45e46 100644 --- a/Adaptation/_Tests/Extract/Development/v2.52.0/BACKLOG.cs +++ b/Adaptation/_Tests/Extract/Development/v2.52.0/BACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_52_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -33,11 +34,15 @@ public class BACKLOG catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__BACKLOG__ConvertExcelToJson() => _BACKLOG.Development__v2_52_0__BACKLOG__ConvertExcelToJson(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__BACKLOG__ConvertExcelToJson637961178824025822__Normal() { @@ -55,4 +60,5 @@ public class BACKLOG NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.52.0/MESAFIBACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.52.0/MESAFIBACKLOG.cs index c26d700..d5415df 100644 --- a/Adaptation/_Tests/Extract/Development/v2.52.0/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/Extract/Development/v2.52.0/MESAFIBACKLOG.cs @@ -1,3 +1,4 @@ +#if v2_52_0 using Adaptation.Shared; using Adaptation.Shared.Methods; using Microsoft.VisualStudio.TestTools.UnitTesting; @@ -33,11 +34,15 @@ public class MESAFIBACKLOG catch (Exception) { } } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__json() => _MESAFIBACKLOG.Development__v2_52_0__MESAFIBACKLOG__json(); +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__json637961251829737445__Normal() { @@ -55,7 +60,9 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__json637961251829737449__Normal() { @@ -73,7 +80,9 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__json638321988963117280__Normal() { @@ -91,7 +100,9 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__CopyToPaths638323658386612550__Normal() { @@ -109,7 +120,9 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__json638323658386612551__Normal() { @@ -127,7 +140,9 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Development__v2_52_0__MESAFIBACKLOG__Kanban638323658386612552__Normal() { @@ -145,4 +160,5 @@ public class MESAFIBACKLOG NonThrowTryCatch(); } -} \ No newline at end of file +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.56.0/ALIGNMENT-EQPT.cs b/Adaptation/_Tests/Extract/Development/v2.56.0/ALIGNMENT-EQPT.cs new file mode 100644 index 0000000..e003ca0 --- /dev/null +++ b/Adaptation/_Tests/Extract/Development/v2.56.0/ALIGNMENT-EQPT.cs @@ -0,0 +1,52 @@ +#if true +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; +using System.Threading; + +namespace Adaptation._Tests.Extract.Development.v2_56_0; + +[TestClass] +public class ALIGNMENT_EQPT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Development.v2_56_0.ALIGNMENT_EQPT _ALIGNMENT_EQPT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Development.v2_56_0.ALIGNMENT_EQPT.ClassInitialize(testContext); + _ALIGNMENT_EQPT = CreateSelfDescription.Development.v2_56_0.ALIGNMENT_EQPT.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + + [Ignore] + [TestMethod] + public void Development__v2_56_0__ALIGNMENT_EQPT__DownloadExcelFile() => _ALIGNMENT_EQPT.Development__v2_56_0__ALIGNMENT_EQPT__DownloadExcelFile(); + + [Ignore] + [TestMethod] + public void Development__v2_56_0__ALIGNMENT_EQPT__DownloadExcelFile637961178824025822__Normal() + { + string check = ".xlsx"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _ALIGNMENT_EQPT.Development__v2_56_0__ALIGNMENT_EQPT__DownloadExcelFile(); + _ = _ALIGNMENT_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + for (int i = 0; i < int.MinValue; i++) + Thread.Sleep(500); + NonThrowTryCatch(); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.56.0/ALIGNMENT.cs b/Adaptation/_Tests/Extract/Development/v2.56.0/ALIGNMENT.cs new file mode 100644 index 0000000..24a9a5d --- /dev/null +++ b/Adaptation/_Tests/Extract/Development/v2.56.0/ALIGNMENT.cs @@ -0,0 +1,64 @@ +#if true +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Reflection; +using System.Text.Json; + +namespace Adaptation._Tests.Extract.Development.v2_56_0; + +[TestClass] +public class ALIGNMENT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Development.v2_56_0.ALIGNMENT _ALIGNMENT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Development.v2_56_0.ALIGNMENT.ClassInitialize(testContext); + _ALIGNMENT = CreateSelfDescription.Development.v2_56_0.ALIGNMENT.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__ALIGNMENT__ConvertExcelToJson() => _ALIGNMENT.Development__v2_56_0__ALIGNMENT__ConvertExcelToJson(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__ALIGNMENT__ConvertExcelToJson638353030755467303__Normal() + { + string check = "*.xlsx"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _ALIGNMENT.Development__v2_56_0__ALIGNMENT__ConvertExcelToJson(); + Assert.IsFalse(string.IsNullOrEmpty(_ALIGNMENT.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _ALIGNMENT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _ALIGNMENT.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Tuple> extractResult = fileRead.ReExtract(); + Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); + Assert.IsNotNull(extractResult.Item3); + Assert.IsNotNull(extractResult.Item4); + NonThrowTryCatch(); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.56.0/BACKLOG-EQPT.cs b/Adaptation/_Tests/Extract/Development/v2.56.0/BACKLOG-EQPT.cs new file mode 100644 index 0000000..60d8666 --- /dev/null +++ b/Adaptation/_Tests/Extract/Development/v2.56.0/BACKLOG-EQPT.cs @@ -0,0 +1,52 @@ +#if true +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; +using System.Threading; + +namespace Adaptation._Tests.Extract.Development.v2_56_0; + +[TestClass] +public class BACKLOG_EQPT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Development.v2_56_0.BACKLOG_EQPT _BACKLOG_EQPT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Development.v2_56_0.BACKLOG_EQPT.ClassInitialize(testContext); + _BACKLOG_EQPT = CreateSelfDescription.Development.v2_56_0.BACKLOG_EQPT.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + + [Ignore] + [TestMethod] + public void Development__v2_56_0__BACKLOG_EQPT__DownloadExcelFile() => _BACKLOG_EQPT.Development__v2_56_0__BACKLOG_EQPT__DownloadExcelFile(); + + [Ignore] + [TestMethod] + public void Development__v2_56_0__BACKLOG_EQPT__DownloadExcelFile637961178824025822__Normal() + { + string check = ".xlsx"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _BACKLOG_EQPT.Development__v2_56_0__BACKLOG_EQPT__DownloadExcelFile(); + _ = _BACKLOG_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + for (int i = 0; i < int.MinValue; i++) + Thread.Sleep(500); + NonThrowTryCatch(); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.56.0/BACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.56.0/BACKLOG.cs new file mode 100644 index 0000000..88051ed --- /dev/null +++ b/Adaptation/_Tests/Extract/Development/v2.56.0/BACKLOG.cs @@ -0,0 +1,64 @@ +#if true +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Reflection; +using System.Text.Json; + +namespace Adaptation._Tests.Extract.Development.v2_56_0; + +[TestClass] +public class BACKLOG +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Development.v2_56_0.BACKLOG _BACKLOG; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Development.v2_56_0.BACKLOG.ClassInitialize(testContext); + _BACKLOG = CreateSelfDescription.Development.v2_56_0.BACKLOG.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__BACKLOG__ConvertExcelToJson() => _BACKLOG.Development__v2_56_0__BACKLOG__ConvertExcelToJson(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__BACKLOG__ConvertExcelToJson637961178824025822__Normal() + { + string check = "*.xlsx"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _BACKLOG.Development__v2_56_0__BACKLOG__ConvertExcelToJson(); + Assert.IsFalse(string.IsNullOrEmpty(_BACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _BACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _BACKLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Tuple> extractResult = fileRead.ReExtract(); + Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); + Assert.IsNotNull(extractResult.Item3); + Assert.IsNotNull(extractResult.Item4); + NonThrowTryCatch(); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Development/v2.56.0/MESAFIBACKLOG.cs b/Adaptation/_Tests/Extract/Development/v2.56.0/MESAFIBACKLOG.cs new file mode 100644 index 0000000..073af32 --- /dev/null +++ b/Adaptation/_Tests/Extract/Development/v2.56.0/MESAFIBACKLOG.cs @@ -0,0 +1,104 @@ +#if true +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Reflection; +using System.Text.Json; + +namespace Adaptation._Tests.Extract.Development.v2_56_0; + +[TestClass] +public class MESAFIBACKLOG +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Development.v2_56_0.MESAFIBACKLOG _MESAFIBACKLOG; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Development.v2_56_0.MESAFIBACKLOG.ClassInitialize(testContext); + _MESAFIBACKLOG = CreateSelfDescription.Development.v2_56_0.MESAFIBACKLOG.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__MESAFIBACKLOG__json() => _MESAFIBACKLOG.Development__v2_56_0__MESAFIBACKLOG__json(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__MESAFIBACKLOG__json637961251829737445__Normal() + { + string check = "*.json"; + bool validatePDSF = false; + _MESAFIBACKLOG.Development__v2_56_0__MESAFIBACKLOG__json(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MESAFIBACKLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Tuple> extractResult = fileRead.ReExtract(); + Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); + Assert.IsNotNull(extractResult.Item3); + Assert.IsNotNull(extractResult.Item4); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__MESAFIBACKLOG__CopyToPaths638323658386612550__Normal() + { + string check = "*.json"; + bool validatePDSF = false; + _MESAFIBACKLOG.Development__v2_56_0__MESAFIBACKLOG__CopyToPaths(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MESAFIBACKLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Tuple> extractResult = fileRead.ReExtract(); + Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); + Assert.IsNotNull(extractResult.Item3); + Assert.IsNotNull(extractResult.Item4); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Development__v2_56_0__MESAFIBACKLOG__Kanban638323658386612552__Normal() + { + string check = "*.json"; + bool validatePDSF = false; + _MESAFIBACKLOG.Development__v2_56_0__MESAFIBACKLOG__Kanban(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MESAFIBACKLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Tuple> extractResult = fileRead.ReExtract(); + Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); + Assert.IsNotNull(extractResult.Item3); + Assert.IsNotNull(extractResult.Item4); + NonThrowTryCatch(); + } + +} +#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Shared/AdaptationTesting.cs b/Adaptation/_Tests/Shared/AdaptationTesting.cs index 33ad51e..dad8ffe 100644 --- a/Adaptation/_Tests/Shared/AdaptationTesting.cs +++ b/Adaptation/_Tests/Shared/AdaptationTesting.cs @@ -1244,7 +1244,7 @@ public class AdaptationTesting : ISMTP { string result; Tuple> extractResult = fileRead.ReExtract(); - if(extractResult is null) + if (extractResult is null) throw new Exception($"Using pattern {variables[4]} no file was found <{variables[2]}>"); if (!fileRead.IsDuplicator) { diff --git a/Adaptation/_Tests/Static/ALIGNMENT.cs b/Adaptation/_Tests/Static/ALIGNMENT.cs new file mode 100644 index 0000000..2be6c5c --- /dev/null +++ b/Adaptation/_Tests/Static/ALIGNMENT.cs @@ -0,0 +1,106 @@ +using Adaptation._Tests.Shared; +using Microsoft.Extensions.Logging; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; + +namespace Adaptation._Tests.Static; + +[TestClass] +public class ALIGNMENT : LoggingUnitTesting, IDisposable +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static ALIGNMENT LoggingUnitTesting { get; private set; } + + public ALIGNMENT() : base(testContext: null, declaringType: null) + { + if (LoggingUnitTesting is null) + throw new Exception(); + } + + public ALIGNMENT(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) => LoggingUnitTesting ??= new ALIGNMENT(testContext); + + [ClassCleanup()] + public static void ClassCleanup() + { + LoggingUnitTesting?.Logger?.LogInformation("Cleanup"); + LoggingUnitTesting?.Dispose(); + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + + [TestMethod] + public void TestDateTime() + { + DateTime dateTime = DateTime.Now; + 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("ALIGNMENT", "v2.56.0"), + new("ALIGNMENT-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(); + } + + [TestMethod] + public void CellInstanceVersionEdaConnectionPortNumber() + { + MethodBase methodBase = new StackFrame().GetMethod(); + string sourceDirectory = "D:/Tmp/cellInstanceVersion.EdaConnection.PortNumber"; + if (Directory.Exists(sourceDirectory)) + { + string destinationDirectory = Path.Combine(sourceDirectory, "All"); + if (!Directory.Exists(destinationDirectory)) + _ = Directory.CreateDirectory(destinationDirectory); + List lines = new(); + string[] files = Directory.GetFiles(sourceDirectory, "*.tsv", SearchOption.TopDirectoryOnly); + foreach (string file in files) + lines.AddRange(File.ReadAllLines(file)); + File.WriteAllLines(Path.Combine(destinationDirectory, $"{DateTime.Now.Ticks}.tsv"), lines.Distinct().OrderBy(l => l)); + } + LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + NonThrowTryCatch(); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Static/BACKLOG.cs b/Adaptation/_Tests/Static/BACKLOG.cs index 0252caf..5e1e7ee 100644 --- a/Adaptation/_Tests/Static/BACKLOG.cs +++ b/Adaptation/_Tests/Static/BACKLOG.cs @@ -64,8 +64,8 @@ public class BACKLOG : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("BACKLOG", "v2.52.0"), - new("BACKLOG-EQPT", "v2.52.0"), + new("BACKLOG", "v2.56.0"), + new("BACKLOG-EQPT", "v2.56.0"), }; string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; @@ -83,33 +83,6 @@ public class BACKLOG : LoggingUnitTesting, IDisposable NonThrowTryCatch(); } - [Ignore] - [TestMethod] - public void Staging() - { - MethodBase methodBase = new StackFrame().GetMethod(); - StringBuilder results = new(); - (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] - { - new("BACKLOG", "v2.52.0"), - new("BACKLOG-EQPT", "v2.52.0"), - }; - string staging = "http://mestsa07ec.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($"{staging}/{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(); - } - [TestMethod] public void CellInstanceVersionEdaConnectionPortNumber() { diff --git a/Adaptation/_Tests/Static/MESAFIBACKLOG.cs b/Adaptation/_Tests/Static/MESAFIBACKLOG.cs index f302e42..5de3c50 100644 --- a/Adaptation/_Tests/Static/MESAFIBACKLOG.cs +++ b/Adaptation/_Tests/Static/MESAFIBACKLOG.cs @@ -64,7 +64,7 @@ public class MESAFIBACKLOG : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("MESAFIBACKLOG", "v2.52.0"), + new("MESAFIBACKLOG", "v2.56.0"), }; string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; @@ -81,31 +81,6 @@ public class MESAFIBACKLOG : LoggingUnitTesting, IDisposable LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } - [Ignore] - [TestMethod] - public void Staging() - { - MethodBase methodBase = new StackFrame().GetMethod(); - StringBuilder results = new(); - (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] - { - new("MESAFIBACKLOG", "v2.52.0"), - }; - string staging = "http://mestsa07ec.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($"{staging}/{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")); - } - [TestMethod] public void CellInstanceVersionEdaConnectionPortNumber() {