From de46e9f6a072ebdb1e7caaa96d417fa64ff2b7dd Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Wed, 31 May 2023 10:31:14 -0700 Subject: [PATCH] v2.49.2 36 Tests Passed SRP and nuget server name --- Adaptation/FileHandlers/pcl/FileRead.cs | 4 +- Adaptation/FileHandlers/pcl/ProcessData.cs | 2 +- Adaptation/MET08DDUPSFS6420-Development.yml | 2 +- Adaptation/Shared/Test.cs | 3 +- .../Staging/v2.49.0/MET08DDUPSFS6420.cs | 20 -- .../Staging/v2.49.0/TENCOR1.cs | 2 - .../Staging/v2.49.0/TENCOR2.cs | 2 - .../Staging/v2.49.0/TENCOR3.cs | 2 - .../Staging/v2.49.2/MET08DDUPSFS6420.cs | 180 ++++++++++++++++++ .../Staging/v2.49.2/TENCOR1.cs | 63 ++++++ .../Staging/v2.49.2/TENCOR2.cs | 63 ++++++ .../Staging/v2.49.2/TENCOR3.cs | 63 ++++++ .../Staging/v2.49.0/MET08DDUPSFS6420.cs | 24 --- .../_Tests/Extract/Staging/v2.49.0/TENCOR1.cs | 4 - .../_Tests/Extract/Staging/v2.49.0/TENCOR2.cs | 4 - .../_Tests/Extract/Staging/v2.49.0/TENCOR3.cs | 4 - .../Staging/v2.49.2/MET08DDUPSFS6420.cs | 116 +++++++++++ .../_Tests/Extract/Staging/v2.49.2/TENCOR1.cs | 49 +++++ .../_Tests/Extract/Staging/v2.49.2/TENCOR2.cs | 49 +++++ .../_Tests/Extract/Staging/v2.49.2/TENCOR3.cs | 49 +++++ Adaptation/_Tests/Static/MET08DDUPSFS6420.cs | 4 +- Adaptation/_Tests/Static/pcl.cs | 27 ++- FileHandlers/FileRead.cs | 2 +- MET08DDUPSFS6420.csproj | 2 +- Properties/AssemblyInfo.cs | 4 +- 25 files changed, 666 insertions(+), 78 deletions(-) create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08DDUPSFS6420.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR1.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR2.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR3.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.2/MET08DDUPSFS6420.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR1.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR2.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR3.cs diff --git a/Adaptation/FileHandlers/pcl/FileRead.cs b/Adaptation/FileHandlers/pcl/FileRead.cs index 9247d11..a742804 100644 --- a/Adaptation/FileHandlers/pcl/FileRead.cs +++ b/Adaptation/FileHandlers/pcl/FileRead.cs @@ -113,7 +113,9 @@ public class FileRead : Shared.FileRead, IFileRead if (iProcessData is not ProcessData processData) throw new Exception(string.Concat("A) No Data - ", dateTime.Ticks)); string mid; - if (!string.IsNullOrEmpty(processData.Employee) && string.IsNullOrEmpty(processData.Reactor) && string.IsNullOrEmpty(processData.RDS) && string.IsNullOrEmpty(processData.PSN)) + if (!string.IsNullOrEmpty(processData.Lot) && string.IsNullOrEmpty(processData.Reactor) && string.IsNullOrEmpty(processData.RDS) && string.IsNullOrEmpty(processData.PSN)) + mid = processData.Lot; + else if (!string.IsNullOrEmpty(processData.Employee) && string.IsNullOrEmpty(processData.Reactor) && string.IsNullOrEmpty(processData.RDS) && string.IsNullOrEmpty(processData.PSN)) mid = processData.Employee; else { diff --git a/Adaptation/FileHandlers/pcl/ProcessData.cs b/Adaptation/FileHandlers/pcl/ProcessData.cs index 79f92e7..6eeb440 100644 --- a/Adaptation/FileHandlers/pcl/ProcessData.cs +++ b/Adaptation/FileHandlers/pcl/ProcessData.cs @@ -329,7 +329,7 @@ public class ProcessData : IProcessData string defaultLayer = string.Empty; string defaultReactor = string.Empty; string defaultEmployee = string.Empty; - if (Regex.IsMatch(text, @"^[a-zA-z][0-9]{4}$")) + if (Regex.IsMatch(text, @"^[a-zA-z][0-9]{2,4}$")) { lot = text.ToUpper(); psn = defaultPSN; diff --git a/Adaptation/MET08DDUPSFS6420-Development.yml b/Adaptation/MET08DDUPSFS6420-Development.yml index a05a3ca..33303d0 100644 --- a/Adaptation/MET08DDUPSFS6420-Development.yml +++ b/Adaptation/MET08DDUPSFS6420-Development.yml @@ -26,7 +26,7 @@ steps: displayName: Configuration - script: | - set nugetSource=https://messa017.infineon.com/v3/index.json + set nugetSource=https://eaf-dev-reporting.mes.infineon.com/v3/index.json echo %nugetSource% echo ##vso[task.setvariable variable=NugetSource;]%nugetSource% echo $(NugetSource) diff --git a/Adaptation/Shared/Test.cs b/Adaptation/Shared/Test.cs index aeb4bea..3aa3552 100644 --- a/Adaptation/Shared/Test.cs +++ b/Adaptation/Shared/Test.cs @@ -21,7 +21,7 @@ public enum Test Denton = 9, DiffusionLength = 45, GRATXTCenter = 51, - GRATXTEdge = 52, //Largest + GRATXTEdge = 52, GrowthRateXML = 50, Hall = 10, HgCV = 23, @@ -38,6 +38,7 @@ public enum Test RPMPLRatio = 17, RPMXY = 15, SP1 = 8, + SRP2100 = 53, //Largest Tencor = 7, UV = 35, VerificationLehighton = 14, diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08DDUPSFS6420.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08DDUPSFS6420.cs index 2c33185..6f78544 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08DDUPSFS6420.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08DDUPSFS6420.cs @@ -47,9 +47,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__MoveMatchingFiles() { @@ -60,9 +58,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__OpenInsightMetrologyViewer() { @@ -73,9 +69,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__IQSSi() { @@ -86,9 +80,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__OpenInsight() { @@ -99,9 +91,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__OpenInsightMetrologyViewerAttachments() { @@ -112,9 +102,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__APC() { @@ -125,9 +113,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__SPaCe() { @@ -138,9 +124,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__Processed() { @@ -151,9 +135,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__Archive() { @@ -164,9 +146,7 @@ public class MET08DDUPSFS6420 : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR1.cs index 212bbd0..2e710fe 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR1.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR1.cs @@ -47,9 +47,7 @@ public class TENCOR1 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__TENCOR1__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR2.cs index 60bf5fc..4e0342b 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR2.cs @@ -47,9 +47,7 @@ public class TENCOR2 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__TENCOR2__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR3.cs index 7889244..c0ebf77 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/TENCOR3.cs @@ -47,9 +47,7 @@ public class TENCOR3 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__TENCOR3__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08DDUPSFS6420.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08DDUPSFS6420.cs new file mode 100644 index 0000000..8c9116f --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08DDUPSFS6420.cs @@ -0,0 +1,180 @@ +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_49_2; + +[TestClass] +public class MET08DDUPSFS6420 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08DDUPSFS6420 EAFLoggingUnitTesting { get; private set; } + + static MET08DDUPSFS6420() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public MET08DDUPSFS6420() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08DDUPSFS6420(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08DDUPSFS6420(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_49_2__MET08DDUPSFS6420__MoveMatchingFiles() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__OpenInsightMetrologyViewer() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__IQSSi() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__OpenInsight() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__OpenInsightMetrologyViewerAttachments() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__APC() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__SPaCe() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__Processed() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__Archive() + { + 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")); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__Dummy() + { + string check = "637400762709163000.zip"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR1.cs new file mode 100644 index 0000000..c153d80 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR1.cs @@ -0,0 +1,63 @@ +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_49_2; + +[TestClass] +public class TENCOR1 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static TENCOR1 EAFLoggingUnitTesting { get; private set; } + + static TENCOR1() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public TENCOR1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public TENCOR1(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new TENCOR1(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_49_2__TENCOR1__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR2.cs new file mode 100644 index 0000000..1f288b8 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR2.cs @@ -0,0 +1,63 @@ +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_49_2; + +[TestClass] +public class TENCOR2 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static TENCOR2 EAFLoggingUnitTesting { get; private set; } + + static TENCOR2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public TENCOR2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public TENCOR2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new TENCOR2(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_49_2__TENCOR2__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR3.cs new file mode 100644 index 0000000..2bcc777 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/TENCOR3.cs @@ -0,0 +1,63 @@ +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_49_2; + +[TestClass] +public class TENCOR3 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static TENCOR3 EAFLoggingUnitTesting { get; private set; } + + static TENCOR3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public TENCOR3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public TENCOR3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new TENCOR3(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_49_2__TENCOR3__pcl() + { + string check = "*.pcl"; + 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")); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08DDUPSFS6420.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08DDUPSFS6420.cs index 4bd8d20..f8e3c54 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08DDUPSFS6420.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08DDUPSFS6420.cs @@ -22,21 +22,15 @@ public class MET08DDUPSFS6420 _MET08DDUPSFS6420 = CreateSelfDescription.Staging.v2_49_0.MET08DDUPSFS6420.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__MoveMatchingFiles() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__OpenInsightMetrologyViewer() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__OpenInsightMetrologyViewer(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__OpenInsightMetrologyViewer637810124350899080__Normal() { @@ -50,21 +44,15 @@ public class MET08DDUPSFS6420 _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__IQSSi() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__OpenInsight() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__OpenInsight(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__OpenInsight638052163299572098__IqsSql() { @@ -77,39 +65,27 @@ public class MET08DDUPSFS6420 _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__OpenInsightMetrologyViewerAttachments() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__OpenInsightMetrologyViewerAttachments(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__APC() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__APC(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__SPaCe() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__SPaCe(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__Processed() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__Archive() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08DDUPSFS6420__Dummy() => _MET08DDUPSFS6420.Staging__v2_49_0__MET08DDUPSFS6420__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR1.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR1.cs index 1224441..f0c44a7 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR1.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR1.cs @@ -23,15 +23,11 @@ public class TENCOR1 _TENCOR1 = CreateSelfDescription.Staging.v2_49_0.TENCOR1.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__TENCOR1__pcl() => _TENCOR1.Staging__v2_49_0__TENCOR1__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] [ExpectedException(typeof(MissingMethodException))] public void Staging__v2_49_0__TENCOR1__pcl637955518212649513__Normal() diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR2.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR2.cs index 28c0f56..13ac6bb 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR2.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR2.cs @@ -23,15 +23,11 @@ public class TENCOR2 _TENCOR2 = CreateSelfDescription.Staging.v2_49_0.TENCOR2.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__TENCOR2__pcl() => _TENCOR2.Staging__v2_49_0__TENCOR2__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] [ExpectedException(typeof(MissingMethodException))] public void Staging__v2_49_0__TENCOR2__pcl637955534973701250__Normal() diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR3.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR3.cs index 0ec800d..c03f2a7 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR3.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/TENCOR3.cs @@ -23,15 +23,11 @@ public class TENCOR3 _TENCOR3 = CreateSelfDescription.Staging.v2_49_0.TENCOR3.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__TENCOR3__pcl() => _TENCOR3.Staging__v2_49_0__TENCOR3__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] [ExpectedException(typeof(MissingMethodException))] public void Staging__v2_49_0__TENCOR3__pcl637955520360305921__Normal() diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08DDUPSFS6420.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08DDUPSFS6420.cs new file mode 100644 index 0000000..7b5bd0d --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08DDUPSFS6420.cs @@ -0,0 +1,116 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_2; + +[TestClass] +public class MET08DDUPSFS6420 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.MET08DDUPSFS6420 _MET08DDUPSFS6420; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.MET08DDUPSFS6420.ClassInitialize(testContext); + _MET08DDUPSFS6420 = CreateSelfDescription.Staging.v2_49_2.MET08DDUPSFS6420.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__MoveMatchingFiles() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__OpenInsightMetrologyViewer() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__OpenInsightMetrologyViewer(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__OpenInsightMetrologyViewer637810124350899080__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__OpenInsightMetrologyViewer(); + string[] variables = _MET08DDUPSFS6420.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08DDUPSFS6420.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__IQSSi() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__OpenInsight() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__OpenInsight(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__OpenInsight638052163299572098__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__OpenInsight(); + string[] variables = _MET08DDUPSFS6420.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08DDUPSFS6420.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__OpenInsightMetrologyViewerAttachments() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__OpenInsightMetrologyViewerAttachments(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__APC() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__APC(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__SPaCe() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__SPaCe(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__Processed() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__Archive() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08DDUPSFS6420__Dummy() => _MET08DDUPSFS6420.Staging__v2_49_2__MET08DDUPSFS6420__Dummy(); + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR1.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR1.cs new file mode 100644 index 0000000..9b354ee --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR1.cs @@ -0,0 +1,49 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_2; + +[TestClass] +public class TENCOR1 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.TENCOR1 _TENCOR1; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.TENCOR1.ClassInitialize(testContext); + _TENCOR1 = CreateSelfDescription.Staging.v2_49_2.TENCOR1.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__TENCOR1__pcl() => _TENCOR1.Staging__v2_49_2__TENCOR1__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + [ExpectedException(typeof(MissingMethodException))] + public void Staging__v2_49_2__TENCOR1__pcl637955518212649513__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _TENCOR1.Staging__v2_49_2__TENCOR1__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _TENCOR1.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _TENCOR1.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR2.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR2.cs new file mode 100644 index 0000000..d2480f1 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR2.cs @@ -0,0 +1,49 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_2; + +[TestClass] +public class TENCOR2 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.TENCOR2 _TENCOR2; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.TENCOR2.ClassInitialize(testContext); + _TENCOR2 = CreateSelfDescription.Staging.v2_49_2.TENCOR2.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__TENCOR2__pcl() => _TENCOR2.Staging__v2_49_2__TENCOR2__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + [ExpectedException(typeof(MissingMethodException))] + public void Staging__v2_49_2__TENCOR2__pcl637955534973701250__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _TENCOR2.Staging__v2_49_2__TENCOR2__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _TENCOR2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _TENCOR2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR3.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR3.cs new file mode 100644 index 0000000..16879a0 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/TENCOR3.cs @@ -0,0 +1,49 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_2; + +[TestClass] +public class TENCOR3 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.TENCOR3 _TENCOR3; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.TENCOR3.ClassInitialize(testContext); + _TENCOR3 = CreateSelfDescription.Staging.v2_49_2.TENCOR3.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__TENCOR3__pcl() => _TENCOR3.Staging__v2_49_2__TENCOR3__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + [ExpectedException(typeof(MissingMethodException))] + public void Staging__v2_49_2__TENCOR3__pcl637955520360305921__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _TENCOR3.Staging__v2_49_2__TENCOR3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _TENCOR3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _TENCOR3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Static/MET08DDUPSFS6420.cs b/Adaptation/_Tests/Static/MET08DDUPSFS6420.cs index 7ab97c3..7322ee6 100644 --- a/Adaptation/_Tests/Static/MET08DDUPSFS6420.cs +++ b/Adaptation/_Tests/Static/MET08DDUPSFS6420.cs @@ -45,7 +45,9 @@ public class MET08DDUPSFS6420 : LoggingUnitTesting, IDisposable Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString()); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Staging() { @@ -53,7 +55,7 @@ public class MET08DDUPSFS6420 : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("MET08DDUPSFS6420", "v2.49.0"), + new("MET08DDUPSFS6420", "v2.49.2"), }; string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/Adaptation/_Tests/Static/pcl.cs b/Adaptation/_Tests/Static/pcl.cs index db5b4be..9b472c4 100644 --- a/Adaptation/_Tests/Static/pcl.cs +++ b/Adaptation/_Tests/Static/pcl.cs @@ -38,6 +38,13 @@ public class PCL : LoggingUnitTesting, IDisposable LoggingUnitTesting?.Dispose(); } + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + [TestMethod] public void TestDateTime() { @@ -177,10 +184,10 @@ public class PCL : LoggingUnitTesting, IDisposable Assert.IsTrue(descriptor.Reactor is "75"); Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone)); Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee)); - descriptor = FileHandlers.pcl.ProcessData.GetDescriptor("p5801"); - Assert.IsTrue(descriptor.Lot == "P5801"); - descriptor = FileHandlers.pcl.ProcessData.GetDescriptor("P5801"); - Assert.IsTrue(descriptor.Lot == "P5801"); + descriptor = FileHandlers.pcl.ProcessData.GetDescriptor("B48"); + Assert.IsTrue(descriptor.Lot == "B48"); + descriptor = FileHandlers.pcl.ProcessData.GetDescriptor("B48"); + Assert.IsTrue(descriptor.Lot == "B48"); Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer)); Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN)); Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN)); @@ -188,9 +195,12 @@ public class PCL : LoggingUnitTesting, IDisposable Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone)); Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee)); LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); + NonThrowTryCatch(); } +#if DEBUG [Ignore] +#endif [TestMethod] public void Staging() { @@ -198,9 +208,12 @@ public class PCL : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("TENCOR1", "v2.49.0"), - new("TENCOR2", "v2.49.0"), - new("TENCOR3", "v2.49.0"), + new("TENCOR1", "v2.49.2"), + new("TENCOR2", "v2.49.2"), + new("TENCOR3", "v2.49.2"), + new("TENCOR1-EQPT", "v2.12.3"), + new("TENCOR2-EQPT", "v2.12.3"), + new("TENCOR3-EQPT", "v2.12.3"), }; string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/FileHandlers/FileRead.cs b/FileHandlers/FileRead.cs index f49826c..e53fd89 100644 --- a/FileHandlers/FileRead.cs +++ b/FileHandlers/FileRead.cs @@ -165,7 +165,7 @@ public partial class FileRead : FileReaderHandler, ISMTP Equipment.SelfDescriptionBuilder.AddParameterTypeDefinition(structuredType); } if (!parameterTypeDefinitions.ContainsKey(jsonProperty.Value.ValueKind)) - throw new Exception(string.Concat('{', jsonProperty.Value.ValueKind, "} is not mapped!")); + throw new Exception(string.Concat('<', jsonProperty.Name, "> {", jsonProperty.Value.ValueKind, "} is not mapped!")); } foreach (JsonProperty jsonProperty in jsonProperties) { diff --git a/MET08DDUPSFS6420.csproj b/MET08DDUPSFS6420.csproj index 7111e5a..6fd72dc 100644 --- a/MET08DDUPSFS6420.csproj +++ b/MET08DDUPSFS6420.csproj @@ -170,7 +170,7 @@ 7.2.4630.5 - 2.49.0 + 2.49.2 1.1.1 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 1a1e9b1..778289d 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.49.0.0")] -[assembly: AssemblyFileVersion("2.49.0.0")] +[assembly: AssemblyVersion("2.49.2.0")] +[assembly: AssemblyFileVersion("2.49.2.0")]