diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE2.cs index 496ff0b..3d2619e 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE2.cs @@ -47,9 +47,7 @@ public class CDE2 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE2__txt() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE3.cs index a3a9851..01e54ff 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE3.cs @@ -47,9 +47,7 @@ public class CDE3 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if true [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE3__RsM() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE5.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE5.cs index d6dbd1f..6b9f2fb 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE5.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE5.cs @@ -47,9 +47,7 @@ public class CDE5 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE5__RsM() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE6-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE6-EQPT.cs index e72a775..ad4a8e5 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE6-EQPT.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE6-EQPT.cs @@ -47,9 +47,7 @@ public class CDE6_EQPT : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if true [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE6_EQPT__DownloadRsMFile() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE6.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE6.cs index 97c4e21..a285314 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE6.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/CDE6.cs @@ -47,9 +47,7 @@ public class CDE6 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if true [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE6__RsM() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIMAPCDE.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIMAPCDE.cs index 80512df..aaff735 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIMAPCDE.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.0/MET08RESIMAPCDE.cs @@ -47,9 +47,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__MoveMatchingFiles() { @@ -60,9 +58,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer() { @@ -73,9 +69,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__IQSSi() { @@ -86,9 +80,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsight() { @@ -99,9 +91,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments() { @@ -112,9 +102,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__APC() { @@ -125,9 +113,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__SPaCe() { @@ -138,9 +124,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__Processed() { @@ -151,9 +135,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__Archive() { @@ -164,9 +146,7 @@ public class MET08RESIMAPCDE : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE2.cs new file mode 100644 index 0000000..1e51a8d --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE2.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 CDE2 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE2 EAFLoggingUnitTesting { get; private set; } + + static CDE2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public CDE2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE2(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__CDE2__txt() + { + string check = "*.txt"; + 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/CDE3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE3.cs new file mode 100644 index 0000000..8db424b --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE3.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 CDE3 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE3 EAFLoggingUnitTesting { get; private set; } + + static CDE3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public CDE3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE3(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 true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE3__RsM() + { + string check = "*.RsM"; + 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/CDE5.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE5.cs new file mode 100644 index 0000000..0e47400 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE5.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 CDE5 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE5 EAFLoggingUnitTesting { get; private set; } + + static CDE5() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public CDE5() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE5(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE5(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__CDE5__RsM() + { + string check = "*.RsM"; + 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/CDE6-EQPT.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE6-EQPT.cs new file mode 100644 index 0000000..8e520dc --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE6-EQPT.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 CDE6_EQPT : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE6_EQPT EAFLoggingUnitTesting { get; private set; } + + static CDE6_EQPT() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public CDE6_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE6_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE6_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 true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE6_EQPT__DownloadRsMFile() + { + string check = "CDE_Logs|WaferMeasurementData.log|.RsM"; + 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/CDE6.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE6.cs new file mode 100644 index 0000000..e28c14d --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/CDE6.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 CDE6 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static CDE6 EAFLoggingUnitTesting { get; private set; } + + static CDE6() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public CDE6() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public CDE6(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new CDE6(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 true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE6__RsM() + { + string check = "*.RsM"; + 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/MET08RESIMAPCDE.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIMAPCDE.cs new file mode 100644 index 0000000..9f83925 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.49.2/MET08RESIMAPCDE.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 MET08RESIMAPCDE : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08RESIMAPCDE EAFLoggingUnitTesting { get; private set; } + + static MET08RESIMAPCDE() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public MET08RESIMAPCDE() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08RESIMAPCDE(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08RESIMAPCDE(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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__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__MET08RESIMAPCDE__Dummy() + { + string check = "637400762024374000.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/CDE2.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/CDE2.cs index 5f7a80d..dc286a7 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/CDE2.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/CDE2.cs @@ -23,15 +23,11 @@ public class CDE2 _CDE2 = CreateSelfDescription.Staging.v2_49_0.CDE2.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE2__txt() => _CDE2.Staging__v2_49_0__CDE2__txt(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE2__txt637953079123289252__Normal() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/CDE5.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/CDE5.cs index 7899dc4..af0660b 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/CDE5.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/CDE5.cs @@ -30,15 +30,11 @@ public class CDE5 catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE5__RsM() => _CDE5.Staging__v2_49_0__CDE5__RsM(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE5__RsM637952212190000000__Normal() { @@ -59,9 +55,7 @@ public class CDE5 NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__CDE5__RsM638181148290431160__WMO() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08RESIMAPCDE.cs b/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08RESIMAPCDE.cs index 6a13163..f815271 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08RESIMAPCDE.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.49.0/MET08RESIMAPCDE.cs @@ -31,15 +31,11 @@ public class MET08RESIMAPCDE catch (Exception) { } } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__MoveMatchingFiles() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__MoveMatchingFiles637953064190000000__Normal() { @@ -59,15 +55,11 @@ public class MET08RESIMAPCDE Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsightMetrologyViewer638127615724700306__NewColumn() { @@ -80,21 +72,15 @@ public class MET08RESIMAPCDE _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__IQSSi() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsight() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__OpenInsight(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsight638054501710000000__IqsSql() { @@ -107,9 +93,7 @@ public class MET08RESIMAPCDE _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsight638116271690000000__IqsSql() { @@ -122,9 +106,7 @@ public class MET08RESIMAPCDE _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsight638159693274771954__IqsSqlButSplit() { @@ -138,39 +120,27 @@ public class MET08RESIMAPCDE NonThrowTryCatch(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__APC() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__APC(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__SPaCe() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__SPaCe(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__Processed() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__Archive() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_49_0__MET08RESIMAPCDE__Dummy() => _MET08RESIMAPCDE.Staging__v2_49_0__MET08RESIMAPCDE__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE2.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE2.cs new file mode 100644 index 0000000..e742dab --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE2.cs @@ -0,0 +1,54 @@ +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 CDE2 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.CDE2 _CDE2; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.CDE2.ClassInitialize(testContext); + _CDE2 = CreateSelfDescription.Staging.v2_49_2.CDE2.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE2__txt() => _CDE2.Staging__v2_49_2__CDE2__txt(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE2__txt637953079123289252__Normal() + { + DateTime dateTime; + string check = "*.txt"; + bool validatePDSF = false; + _CDE2.Staging__v2_49_2__CDE2__txt(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_CDE2.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _CDE2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _CDE2.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE3.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE3.cs new file mode 100644 index 0000000..b17f485 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE3.cs @@ -0,0 +1,78 @@ +using Adaptation.Shared; +using Adaptation.Shared.Methods; +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System; +using System.Diagnostics; +using System.IO; +using System.Reflection; + +namespace Adaptation._Tests.Extract.Staging.v2_49_2; + +[TestClass] +public class CDE3 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.CDE3 _CDE3; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.CDE3.ClassInitialize(testContext); + _CDE3 = CreateSelfDescription.Staging.v2_49_2.CDE3.EAFLoggingUnitTesting; + } + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE3__RsM() => _CDE3.Staging__v2_49_2__CDE3__RsM(); + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE3__RsM643047560320000000__Normal() + { + DateTime dateTime; + string check = "*.RsM"; + _CDE3.Staging__v2_49_2__CDE3__RsM(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _CDE3.AdaptationTesting.GetVariables(methodBase, check); + IFileRead fileRead = _CDE3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + string extractResultItem1 = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF: false); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + string logBody = @" +RUN [59-478796-3978.1] +Recipe LSL_6in \ WACKER2 RESISTIVITY #### +EQUIP# CDE3 Engineer Engineer +LotID LotID D.L.RATIO #.#### +OPERATOR Operator TEMP 19.4 00:13 09/27/38 +AutoOptimizeGain = ### AutoProbeHeightSet = ## +DataReject > #.#Sigma +0 ..\LSL_6in.prj\WACKER2.rcp\8927A117.RsM 00:13 09/27/38 +pt# R Th Rs[Ohm/sq@T] Merit +1 65.0 -44.5 577.7672 77.80 +2 32.5 -44.5 572.4527 103.00 +3 0.0 0.5 581.8071 108.00 +4 -32.5 -44.5 576.9838 93.00 +5 -65.0 -44.5 577.0866 69.80 +Avg = 577.219 0.58% SEMI Radial= #.##% + "; + bool logBodyCheck = logBody.Trim() == extractResultItem1.Trim(); + if (!logBodyCheck) + { + _ = Process.Start("explorer.exe", variables[5]); + File.WriteAllText(Path.Combine(variables[5], "0.log"), logBody.Trim()); + File.WriteAllText(Path.Combine(variables[5], "1.log"), extractResultItem1.Trim()); + } + Assert.IsTrue(logBodyCheck, "Log Body doesn't match!"); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE5.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE5.cs new file mode 100644 index 0000000..f321f4f --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE5.cs @@ -0,0 +1,80 @@ +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 CDE5 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.CDE5 _CDE5; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.CDE5.ClassInitialize(testContext); + _CDE5 = CreateSelfDescription.Staging.v2_49_2.CDE5.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE5__RsM() => _CDE5.Staging__v2_49_2__CDE5__RsM(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE5__RsM637952212190000000__Normal() + { + DateTime dateTime; + string check = "*.RsM"; + bool validatePDSF = false; + _CDE5.Staging__v2_49_2__CDE5__RsM(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_CDE5.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _CDE5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _CDE5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE5__RsM638181148290431160__WMO() + { + string check = "*.RsM"; + bool validatePDSF = false; + _CDE5.Staging__v2_49_2__CDE5__RsM(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_CDE5.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _CDE5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _CDE5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + NonThrowTryCatch(); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE6-EQPT.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE6-EQPT.cs new file mode 100644 index 0000000..f7243b8 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE6-EQPT.cs @@ -0,0 +1,45 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using System.Diagnostics; +using System.Reflection; +using System.Threading; + +namespace Adaptation._Tests.Extract.Staging.v2_49_2; + +[TestClass] +public class CDE6_EQPT +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.CDE6_EQPT _CDE6_EQPT; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.CDE6_EQPT.ClassInitialize(testContext); + _CDE6_EQPT = CreateSelfDescription.Staging.v2_49_2.CDE6_EQPT.EAFLoggingUnitTesting; + } + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE6_EQPT__DownloadRsMFile() => _CDE6_EQPT.Staging__v2_49_2__CDE6_EQPT__DownloadRsMFile(); + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE6_EQPT__DownloadRsMFile638065099250000000__Normal() + { + bool validatePDSF = false; + string check = "CDE_Logs|WaferMeasurementData.log|.RsM"; + MethodBase methodBase = new StackFrame().GetMethod(); + _CDE6_EQPT.Staging__v2_49_2__CDE6_EQPT__DownloadRsMFile(); + _ = _CDE6_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + for (int i = 0; i < int.MinValue; i++) + Thread.Sleep(500); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE6.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE6.cs new file mode 100644 index 0000000..4bc8483 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/CDE6.cs @@ -0,0 +1,54 @@ +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 CDE6 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.CDE6 _CDE6; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.CDE6.ClassInitialize(testContext); + _CDE6 = CreateSelfDescription.Staging.v2_49_2.CDE6.EAFLoggingUnitTesting; + } + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE6__RsM() => _CDE6.Staging__v2_49_2__CDE6__RsM(); + +#if true + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__CDE6__RsM638065099250000000__Normal() + { + DateTime dateTime; + string check = "*.RsM"; + bool validatePDSF = false; + _CDE6.Staging__v2_49_2__CDE6__RsM(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_CDE6.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _CDE6.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _CDE6.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIMAPCDE.cs b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIMAPCDE.cs new file mode 100644 index 0000000..34701d8 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.49.2/MET08RESIMAPCDE.cs @@ -0,0 +1,177 @@ +using Adaptation._Tests.Shared; +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 MET08RESIMAPCDE +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_49_2.MET08RESIMAPCDE _MET08RESIMAPCDE; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_49_2.MET08RESIMAPCDE.ClassInitialize(testContext); + _MET08RESIMAPCDE = CreateSelfDescription.Staging.v2_49_2.MET08RESIMAPCDE.EAFLoggingUnitTesting; + } + + private static void NonThrowTryCatch() + { + try + { throw new Exception(); } + catch (Exception) { } + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__MoveMatchingFiles() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__MoveMatchingFiles637953064190000000__Normal() + { + DateTime dateTime; + string check = "*"; + bool validatePDSF = false; + _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__MoveMatchingFiles(); + MethodBase methodBase = new StackFrame().GetMethod(); + Assert.IsFalse(string.IsNullOrEmpty(_MET08RESIMAPCDE.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__OpenInsightMetrologyViewer() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__OpenInsightMetrologyViewer(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__OpenInsightMetrologyViewer638127615724700306__NewColumn() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__OpenInsightMetrologyViewer(); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__IQSSi() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__OpenInsight() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__OpenInsight(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__OpenInsight638054501710000000__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__OpenInsight(); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__OpenInsight638116271690000000__IqsSql() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__OpenInsight(); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__OpenInsight638159693274771954__IqsSqlButSplit() + { + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__OpenInsight(); + string[] variables = _MET08RESIMAPCDE.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08RESIMAPCDE.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + NonThrowTryCatch(); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__OpenInsightMetrologyViewerAttachments(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__APC() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__APC(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__SPaCe() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__SPaCe(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__Processed() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__Archive() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_49_2__MET08RESIMAPCDE__Dummy() => _MET08RESIMAPCDE.Staging__v2_49_2__MET08RESIMAPCDE__Dummy(); + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Static/MET08RESIMAPCDE.cs b/Adaptation/_Tests/Static/MET08RESIMAPCDE.cs index b2d0def..fe656d4 100644 --- a/Adaptation/_Tests/Static/MET08RESIMAPCDE.cs +++ b/Adaptation/_Tests/Static/MET08RESIMAPCDE.cs @@ -55,7 +55,7 @@ public class MET08RESIMAPCDE : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("MET08RESIMAPCDE", "v2.49.0"), + new("MET08RESIMAPCDE", "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/RsM.cs b/Adaptation/_Tests/Static/RsM.cs index 341374f..c11e377 100644 --- a/Adaptation/_Tests/Static/RsM.cs +++ b/Adaptation/_Tests/Static/RsM.cs @@ -181,14 +181,14 @@ public class RsM : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("CDE3", "v2.49.0"), - new("CDE4", "v2.49.0"), - new("CDE5", "v2.49.0"), - new("CDE6", "v2.49.0"), - new("CDE3-EQPT", "v2.49.0"), - new("CDE4-EQPT", "v2.49.0"), - new("CDE5-EQPT", "v2.49.0"), - new("CDE6-EQPT", "v2.49.0"), + new("CDE3", "v2.49.2"), + new("CDE4", "v2.49.2"), + new("CDE5", "v2.49.2"), + new("CDE6", "v2.49.2"), + new("CDE3-EQPT", "v2.49.2"), + new("CDE4-EQPT", "v2.49.2"), + new("CDE5-EQPT", "v2.49.2"), + new("CDE6-EQPT", "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/txt.cs b/Adaptation/_Tests/Static/txt.cs index b9b8eda..82cecfe 100644 --- a/Adaptation/_Tests/Static/txt.cs +++ b/Adaptation/_Tests/Static/txt.cs @@ -202,7 +202,7 @@ public class TXT : LoggingUnitTesting, IDisposable StringBuilder results = new(); (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] { - new("CDE2", "v2.49.0"), + new("CDE2", "v2.49.2"), }; string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2"; Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; diff --git a/MET08RESIMAPCDE.csproj b/MET08RESIMAPCDE.csproj index 520ba4e..6b9105c 100644 --- a/MET08RESIMAPCDE.csproj +++ b/MET08RESIMAPCDE.csproj @@ -169,7 +169,7 @@ - 2.49.0 + 2.49.2 6.0.3 diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 4510b9d..4334dce 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")]