From de9d12019a0f35fcde3dde24e4c975b2d13361e7 Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Wed, 31 May 2023 08:52:43 -0700 Subject: [PATCH] v2.49.2 40 Tests Passed SRP and nuget server name Date consistency --- Adaptation/FileHandlers/pcl/FileRead.cs | 4 +- Adaptation/FileHandlers/pcl/ProcessData.cs | 8 +- Adaptation/MET08RESIHGCV-Development.yml | 2 +- Adaptation/Shared/Test.cs | 3 +- .../Staging/v2.49.0/HGCV1.cs | 2 - .../Staging/v2.49.0/HGCV2.cs | 2 - .../Staging/v2.49.0/HGCV3.cs | 2 - .../Staging/v2.49.0/MET08RESIHGCV.cs | 20 -- .../Staging/v2.49.2/HGCV1.cs | 63 ++++++ .../Staging/v2.49.2/HGCV2.cs | 63 ++++++ .../Staging/v2.49.2/HGCV3.cs | 63 ++++++ .../Staging/v2.49.2/MET08RESIHGCV.cs | 180 ++++++++++++++++++ .../_Tests/Extract/Staging/v2.49.0/HGCV1.cs | 4 - .../_Tests/Extract/Staging/v2.49.0/HGCV2.cs | 4 - .../_Tests/Extract/Staging/v2.49.0/HGCV3.cs | 8 - .../Extract/Staging/v2.49.0/MET08RESIHGCV.cs | 28 --- .../_Tests/Extract/Staging/v2.49.2/HGCV1.cs | 47 +++++ .../_Tests/Extract/Staging/v2.49.2/HGCV2.cs | 47 +++++ .../_Tests/Extract/Staging/v2.49.2/HGCV3.cs | 80 ++++++++ .../Extract/Staging/v2.49.2/MET08RESIHGCV.cs | 147 ++++++++++++++ Adaptation/_Tests/Static/MET08RESIHGCV.cs | 2 +- Adaptation/_Tests/Static/pcl.cs | 25 ++- FileHandlers/FileRead.cs | 2 +- MET08RESIHGCV.csproj | 2 +- Properties/AssemblyInfo.cs | 4 +- 25 files changed, 724 insertions(+), 88 deletions(-) create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV1.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV2.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV3.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIHGCV.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV1.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV2.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV3.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIHGCV.cs diff --git a/Adaptation/FileHandlers/pcl/FileRead.cs b/Adaptation/FileHandlers/pcl/FileRead.cs index 6c5d9da..8ae6286 100644 --- a/Adaptation/FileHandlers/pcl/FileRead.cs +++ b/Adaptation/FileHandlers/pcl/FileRead.cs @@ -117,7 +117,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 0785558..683314d 100644 --- a/Adaptation/FileHandlers/pcl/ProcessData.cs +++ b/Adaptation/FileHandlers/pcl/ProcessData.cs @@ -85,12 +85,15 @@ public class ProcessData : IProcessData _I = 0; _Data = string.Empty; JobID = logistics.JobID; + Date = GetDateTime(logistics); MesEntity = logistics.MesEntity; _Log = LogManager.GetLogger(typeof(ProcessData)); - Date = DateTime.Now; Parse(fileRead, logistics, fileInfoCollection, ghostPCLFileName, pdfTextStripperFileName); } + private static DateTime GetDateTime(Logistics logistics) => + logistics.DateTimeFromSequence; + string IProcessData.GetCurrentReactor(IFileRead fileRead, Logistics logistics, Dictionary reactors) => throw new Exception(string.Concat("See ", nameof(Parse))); Tuple> IProcessData.GetResults(IFileRead fileRead, Logistics logistics, List fileInfoCollection) @@ -293,7 +296,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; @@ -456,7 +459,6 @@ public class ProcessData : IProcessData Plan = GetBefore("G limit :"); //GLimit = GetBefore("S "); GLimit = GetBefore("S"); - Date = DateTime.Now; ScanPast("Setup File:"); //SetupFile = GetBefore("O O"); SetupFile = GetBefore("O O"); diff --git a/Adaptation/MET08RESIHGCV-Development.yml b/Adaptation/MET08RESIHGCV-Development.yml index 0c8f913..dac855b 100644 --- a/Adaptation/MET08RESIHGCV-Development.yml +++ b/Adaptation/MET08RESIHGCV-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/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV1.cs index a5b59c5..7d93d3f 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV1.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV1.cs @@ -47,9 +47,7 @@ public class HGCV1 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV1__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV2.cs index a3cdd3a..c4488e1 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV2.cs @@ -47,9 +47,7 @@ public class HGCV2 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV2__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV3.cs index 068ee1f..21cab69 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/HGCV3.cs @@ -47,9 +47,7 @@ public class HGCV3 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV3__pcl() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIHGCV.cs index 04526d8..32cf2d0 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIHGCV.cs @@ -47,9 +47,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__MoveMatchingFiles() { @@ -60,9 +58,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsightMetrologyViewer() { @@ -73,9 +69,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__IQSSi() { @@ -86,9 +80,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsight() { @@ -99,9 +91,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments() { @@ -112,9 +102,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__APC() { @@ -125,9 +113,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__SPaCe() { @@ -138,9 +124,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__Processed() { @@ -151,9 +135,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__Archive() { @@ -164,9 +146,7 @@ public class MET08RESIHGCV : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV1.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV1.cs new file mode 100644 index 0000000..3644c9f --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV1.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 HGCV1 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV1 EAFLoggingUnitTesting { get; private set; } + + static HGCV1() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public HGCV1() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV1(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV1(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__HGCV1__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/HGCV2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV2.cs new file mode 100644 index 0000000..3ecef91 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV2.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 HGCV2 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV2 EAFLoggingUnitTesting { get; private set; } + + static HGCV2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public HGCV2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV2(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__HGCV2__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/HGCV3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV3.cs new file mode 100644 index 0000000..8c2cb5e --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/HGCV3.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 HGCV3 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static HGCV3 EAFLoggingUnitTesting { get; private set; } + + static HGCV3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public HGCV3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public HGCV3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new HGCV3(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__HGCV3__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/MET08RESIHGCV.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIHGCV.cs new file mode 100644 index 0000000..078f6d8 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIHGCV.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 MET08RESIHGCV : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; } + + static MET08RESIHGCV() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08RESIHGCV(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08RESIHGCV(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__MET08RESIHGCV__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__MET08RESIHGCV__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__MET08RESIHGCV__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__MET08RESIHGCV__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__MET08RESIHGCV__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__MET08RESIHGCV__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__MET08RESIHGCV__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__MET08RESIHGCV__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__MET08RESIHGCV__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__MET08RESIHGCV__Dummy() + { + string check = "637400768625170000.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/Extract/Staging/v2.49.0/HGCV1.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV1.cs index 8fac79a..f93d9c8 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV1.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV1.cs @@ -22,15 +22,11 @@ public class HGCV1 _HGCV1 = CreateSelfDescription.Staging.v2_49_0.HGCV1.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV1__pcl() => _HGCV1.Staging__v2_49_0__HGCV1__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV1__pcl637955429602879992__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV2.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV2.cs index 00db9bd..c225dcf 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV2.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV2.cs @@ -22,15 +22,11 @@ public class HGCV2 _HGCV2 = CreateSelfDescription.Staging.v2_49_0.HGCV2.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV2__pcl() => _HGCV2.Staging__v2_49_0__HGCV2__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV2__pcl637955471606299897__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV3.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV3.cs index 12df547..e775cd7 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV3.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/HGCV3.cs @@ -22,15 +22,11 @@ public class HGCV3 _HGCV3 = CreateSelfDescription.Staging.v2_49_0.HGCV3.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV3__pcl() => _HGCV3.Staging__v2_49_0__HGCV3__pcl(); -#if DEBUG [Ignore] -#endif [TestMethod] [ExpectedException(typeof(AssertFailedException))] public void Staging__v2_49_0__HGCV3__pcl637812984345592512__MinFileLength() @@ -45,9 +41,7 @@ public class HGCV3 _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV3__pcl637816384579205568__Normal() { @@ -61,9 +55,7 @@ public class HGCV3 _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__HGCV3__pcl637955459372840332__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08RESIHGCV.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08RESIHGCV.cs index d3858c3..dd2d7e4 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08RESIHGCV.cs @@ -22,15 +22,11 @@ public class MET08RESIHGCV _MET08RESIHGCV = CreateSelfDescription.Staging.v2_49_0.MET08RESIHGCV.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__MoveMatchingFiles() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__MoveMatchingFiles637955459372840332__Normal() { @@ -44,15 +40,11 @@ public class MET08RESIHGCV _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsightMetrologyViewer() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__OpenInsightMetrologyViewer(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsightMetrologyViewer637961644453719245__Normal() { @@ -66,21 +58,15 @@ public class MET08RESIHGCV _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__IQSSi() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsight() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__OpenInsight(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsight638054470203066399__IqsSql() { @@ -93,9 +79,7 @@ public class MET08RESIHGCV _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsight638116020180910181__IqsSql() { @@ -108,39 +92,27 @@ public class MET08RESIHGCV _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__APC() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__APC(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__SPaCe() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__SPaCe(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__Processed() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__Archive() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIHGCV__Dummy() => _MET08RESIHGCV.Staging__v2_49_0__MET08RESIHGCV__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV1.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV1.cs new file mode 100644 index 0000000..0b9ad16 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV1.cs @@ -0,0 +1,47 @@ +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 HGCV1 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.HGCV1 _HGCV1; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.HGCV1.ClassInitialize(testContext); + _HGCV1 = CreateSelfDescription.Staging.v2_49_2.HGCV1.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__HGCV1__pcl() => _HGCV1.Staging__v2_49_2__HGCV1__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__HGCV1__pcl637955429602879992__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV1.Staging__v2_49_2__HGCV1__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV1.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV1.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/HGCV2.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV2.cs new file mode 100644 index 0000000..4d9c27d --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV2.cs @@ -0,0 +1,47 @@ +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 HGCV2 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.HGCV2 _HGCV2; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.HGCV2.ClassInitialize(testContext); + _HGCV2 = CreateSelfDescription.Staging.v2_49_2.HGCV2.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__HGCV2__pcl() => _HGCV2.Staging__v2_49_2__HGCV2__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__HGCV2__pcl637955471606299897__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV2.Staging__v2_49_2__HGCV2__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV2.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/HGCV3.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV3.cs new file mode 100644 index 0000000..1821bfa --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/HGCV3.cs @@ -0,0 +1,80 @@ +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 HGCV3 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.HGCV3 _HGCV3; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.HGCV3.ClassInitialize(testContext); + _HGCV3 = CreateSelfDescription.Staging.v2_49_2.HGCV3.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__HGCV3__pcl() => _HGCV3.Staging__v2_49_2__HGCV3__pcl(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + [ExpectedException(typeof(AssertFailedException))] + public void Staging__v2_49_2__HGCV3__pcl637812984345592512__MinFileLength() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_49_2__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.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__HGCV3__pcl637816384579205568__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_49_2__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.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__HGCV3__pcl637955459372840332__Normal() + { + string check = "*.pcl"; + bool validatePDSF = false; + _HGCV3.Staging__v2_49_2__HGCV3__pcl(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _HGCV3.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _HGCV3.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/MET08RESIHGCV.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIHGCV.cs new file mode 100644 index 0000000..f4bc79a --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIHGCV.cs @@ -0,0 +1,147 @@ +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 MET08RESIHGCV +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.MET08RESIHGCV _MET08RESIHGCV; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.MET08RESIHGCV.ClassInitialize(testContext); + _MET08RESIHGCV = CreateSelfDescription.Staging.v2_49_2.MET08RESIHGCV.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__MoveMatchingFiles() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__MoveMatchingFiles637955459372840332__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__MoveMatchingFiles(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08RESIHGCV.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__MET08RESIHGCV__OpenInsightMetrologyViewer() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewer(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewer637961644453719245__Normal() + { + string check = "*.pdsf"; + bool validatePDSF = false; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewer(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08RESIHGCV.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__MET08RESIHGCV__IQSSi() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__OpenInsight() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsight(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__OpenInsight638054470203066399__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsight(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIHGCV.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__MET08RESIHGCV__OpenInsight638116020180910181__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsight(); + string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIHGCV.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__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__APC() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__APC(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__SPaCe() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__SPaCe(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__Processed() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__Archive() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIHGCV__Dummy() => _MET08RESIHGCV.Staging__v2_49_2__MET08RESIHGCV__Dummy(); + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Static/MET08RESIHGCV.cs b/Adaptation/_Tests/Static/MET08RESIHGCV.cs index c994e9c..0fb0870 100644 --- a/Adaptation/_Tests/Static/MET08RESIHGCV.cs +++ b/Adaptation/_Tests/Static/MET08RESIHGCV.cs @@ -55,7 +55,7 @@ public class MET08RESIHGCV : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("MET08RESIHGCV", "v2.47.5"), + new("MET08RESIHGCV", "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 22d4a0a..876fc66 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() { @@ -171,10 +178,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)); @@ -182,6 +189,7 @@ 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 @@ -194,9 +202,12 @@ public class PCL : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("HGCV1", "v2.47.5"), - new("HGCV2", "v2.47.5"), - new("HGCV3", "v2.47.5"), + new("HGCV1", "v2.49.2"), + new("HGCV2", "v2.49.2"), + new("HGCV3", "v2.49.2"), + new("HGCV1-EQPT", "v2.12.3"), + new("HGCV2-EQPT", "v2.12.3"), + new("HGCV3-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 7aa49ce..ea9c019 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/MET08RESIHGCV.csproj b/MET08RESIHGCV.csproj index c8089cb..073c5bb 100644 --- a/MET08RESIHGCV.csproj +++ b/MET08RESIHGCV.csproj @@ -165,7 +165,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 fc400bb..1d8e4d4 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")]