diff --git a/Adaptation/.vscode/launch.json b/Adaptation/.vscode/launch.json index 33587e0..8c53239 100644 --- a/Adaptation/.vscode/launch.json +++ b/Adaptation/.vscode/launch.json @@ -4,7 +4,7 @@ "name": ".NET Core Attach", "type": "coreclr", "request": "attach", - "processId": 24640 + "processId": 24012 } ] } diff --git a/Adaptation/.vscode/tasks.json b/Adaptation/.vscode/tasks.json index abe5c6d..fb93796 100644 --- a/Adaptation/.vscode/tasks.json +++ b/Adaptation/.vscode/tasks.json @@ -86,6 +86,18 @@ ], "problemMatcher": "$msCompile" }, + { + "label": "Project", + "type": "shell", + "command": "code ../MET08THFTIRSTRATUS.csproj", + "problemMatcher": [] + }, + { + "label": "Git Config", + "type": "shell", + "command": "code ../.git/config", + "problemMatcher": [] + }, { "label": "Kanbn Console", "type": "npm", diff --git a/Adaptation/FileHandlers/Stratus/Complete.cs b/Adaptation/FileHandlers/Stratus/Complete.cs deleted file mode 100644 index 92bbd2c..0000000 --- a/Adaptation/FileHandlers/Stratus/Complete.cs +++ /dev/null @@ -1,72 +0,0 @@ -using Adaptation.Shared; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO; -using System.Linq; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Adaptation.FileHandlers.Stratus; - -#nullable enable - -internal class Complete -{ - - public Complete(Header header, Wafer[] wafers, Footer footer) - { - Header = header; - Wafers = wafers; - Footer = footer; - } - - public Header Header { get; } - public Wafer[] Wafers { get; } - public Footer Footer { get; } - - internal static Complete? Get(Logistics logistics, List fileInfoCollection) - { - Complete? result; - Constant constant = new(); - int[] i = new int[] { 0 }; - string text = File.ReadAllText(logistics.ReportFullPath); - Header? header = Header.Get(text, constant, i); - if (header is null) - result = null; - else - { - ReadOnlyCollection groups = Wafer.GetGroups(text, constant, i); - if (groups.Count == 0) - result = null; - else - { - ReadOnlyCollection wafers = Wafer.Get(constant, groups); - if (wafers.Count == 0) - result = null; - else - { - Footer? footer = Footer.Get(constant, groups); - if (footer is null) - result = null; - else - { - result = new(header, wafers.ToArray(), footer); - FileInfo fileInfo = new($"{logistics.ReportFullPath}.json"); - string json = JsonSerializer.Serialize(result, CompleteSourceGenerationContext.Default.Complete); - File.WriteAllText(fileInfo.FullName, json); - File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence); - fileInfoCollection.Add(fileInfo); - } - } - } - } - return result; - } - -} - -[JsonSourceGenerationOptions(WriteIndented = true)] -[JsonSerializable(typeof(Complete))] -internal partial class CompleteSourceGenerationContext : JsonSerializerContext -{ -} \ No newline at end of file diff --git a/Adaptation/FileHandlers/Stratus/FileRead.cs b/Adaptation/FileHandlers/Stratus/FileRead.cs index 0581b86..8d3ed6d 100644 --- a/Adaptation/FileHandlers/Stratus/FileRead.cs +++ b/Adaptation/FileHandlers/Stratus/FileRead.cs @@ -110,10 +110,10 @@ public class FileRead : Shared.FileRead, IFileRead results.Item4.Add(_Logistics.FileInfo); else { - Complete? complete = Complete.Get(_Logistics, results.Item4); - if (complete is null) + Run? run = Run.Get(_Logistics, results.Item4); + if (run is null) throw new Exception(string.Concat("A) No Data - ", dateTime.Ticks)); - IProcessData iProcessData = new ProcessData(this, _Logistics, results.Item4, _OriginalDataBioRad, complete, dataText: string.Empty); + IProcessData iProcessData = new ProcessData(this, _Logistics, results.Item4, _OriginalDataBioRad, run, dataText: string.Empty); if (iProcessData is not ProcessData processData) throw new Exception(string.Concat("B) No Data - ", dateTime.Ticks)); string mid; diff --git a/Adaptation/FileHandlers/Stratus/ProcessData.cs b/Adaptation/FileHandlers/Stratus/ProcessData.cs index 980a322..6ef6f1a 100644 --- a/Adaptation/FileHandlers/Stratus/ProcessData.cs +++ b/Adaptation/FileHandlers/Stratus/ProcessData.cs @@ -44,14 +44,15 @@ public partial class ProcessData : IProcessData #nullable enable - internal ProcessData(IFileRead fileRead, Logistics logistics, List fileInfoCollection, string originalDataBioRad, Complete? complete, string dataText) + internal ProcessData(IFileRead fileRead, Logistics logistics, List fileInfoCollection, string originalDataBioRad, Run? run, string dataText) { JobID = logistics.JobID; - fileInfoCollection.Clear(); + if (!string.IsNullOrEmpty(dataText)) + fileInfoCollection.Clear(); _Details = new List(); MesEntity = logistics.MesEntity; _Log = LogManager.GetLogger(typeof(ProcessData)); - Parse(fileRead, logistics, fileInfoCollection, originalDataBioRad, complete, dataText); + Parse(fileRead, logistics, fileInfoCollection, originalDataBioRad, run, dataText); } string IProcessData.GetCurrentReactor(IFileRead fileRead, Logistics logistics, Dictionary reactors) => throw new Exception(string.Concat("See ", nameof(Parse))); @@ -385,7 +386,7 @@ public partial class ProcessData : IProcessData return result; } - private void Set(Logistics logistics, Complete? complete) + private void Set(Logistics logistics, Run? run) { string psn; string rds; @@ -415,7 +416,7 @@ public partial class ProcessData : IProcessData batch = GetToText(startedKey); ScanPast(startedAtKey); } - if (complete is not null) + if (run is not null) { } ScanPast(cassetteKey); if (!_Data.Substring(_I).Contains(startedKey)) @@ -449,15 +450,17 @@ public partial class ProcessData : IProcessData UniqueId = string.Concat("StratusBioRad_", reactor, "_", rds, "_", psn, "_", logistics.DateTimeFromSequence.ToString("yyyyMMddHHmmssffff")); } - private void Parse(IFileRead fileRead, Logistics logistics, List fileInfoCollection, string originalDataBioRad, Complete? complete, string receivedData) + private void Parse(IFileRead fileRead, Logistics logistics, List fileInfoCollection, string originalDataBioRad, Run? run, string dataText) { if (fileRead is null) throw new ArgumentNullException(nameof(fileRead)); _I = 0; _Data = string.Empty; List details = new(); + if (string.IsNullOrEmpty(dataText)) + dataText = File.ReadAllText(logistics.ReportFullPath); _Log.Debug($"****ParseData - Source file contents:"); - _Log.Debug(receivedData); + _Log.Debug(dataText); List moveFiles = new(); string fileNameWithoutExtension = Path.GetFileNameWithoutExtension(logistics.ReportFullPath); string directoryName = Path.GetDirectoryName(logistics.ReportFullPath) ?? throw new Exception(); @@ -465,7 +468,7 @@ public partial class ProcessData : IProcessData moveFiles.AddRange(Directory.GetFiles(directoryName, string.Concat(originalDataBioRad, "*", fileNameWithoutExtension.Split('_').Last(), "*"), SearchOption.TopDirectoryOnly)); foreach (string moveFile in moveFiles.Distinct()) fileInfoCollection.Add(new FileInfo(moveFile)); - if (!string.IsNullOrEmpty(receivedData)) + if (!string.IsNullOrEmpty(dataText)) { int i; int num; @@ -476,8 +479,8 @@ public partial class ProcessData : IProcessData string recipe; string nextLine; _I = 0; - _Data = receivedData; - Set(logistics, complete); + _Data = dataText; + Set(logistics, run); nextLine = PeekNextLine(); string cassette = "Cassette"; if (nextLine.Contains("Wafer")) @@ -597,7 +600,7 @@ public partial class ProcessData : IProcessData StdDev = StdDev.Remove(StdDev.Length - 1, 1); } } - if (receivedData.Contains("------------- Process failed -------------")) + if (dataText.Contains("------------- Process failed -------------")) details.Add(new()); } StringBuilder stringBuilder = new(); diff --git a/Adaptation/FileHandlers/Stratus/Row.cs b/Adaptation/FileHandlers/Stratus/Row.cs new file mode 100644 index 0000000..b4565de --- /dev/null +++ b/Adaptation/FileHandlers/Stratus/Row.cs @@ -0,0 +1,55 @@ +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.Stratus; + +#nullable enable + +internal class Row +{ + + public Row(Run run, int i, int j) + { + Batch = run.Header.Batch; + Cassette = run.Header.Cassette; + DateTime = run.Header.DateTime; + // + Destination = run.Wafers[i].Destination; + Mean = run.Wafers[i].Mean; + PassFail = run.Wafers[i].PassFail; + Recipe = run.Wafers[i].Recipe; + Reference = run.Wafers[i].Reference; + Site = run.Wafers[i].Sites[j]; + Slot = run.Wafers[i].Slot; + Source = run.Wafers[i].Source; + WaferStdDev = run.Wafers[i].StdDev; + Text = run.Wafers[i].Text; + // + MeanThickness = run.Footer.MeanThickness; + StdDev = run.Footer.StdDev; + } + + public string Batch { get; } + public string Cassette { get; } + public string DateTime { get; } + // + public string Destination { get; } + public string Mean { get; } + public string PassFail { get; } + public string Recipe { get; } + public string Reference { get; } + public string Site { get; } + public string Slot { get; } + public string Source { get; } + public string WaferStdDev { get; } + public string Text { get; } + // + public string MeanThickness { get; } + public string StdDev { get; } + +} + +[JsonSourceGenerationOptions(WriteIndented = true)] +[JsonSerializable(typeof(Row))] +internal partial class RowSourceGenerationContext : JsonSerializerContext +{ +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/Stratus/Run.cs b/Adaptation/FileHandlers/Stratus/Run.cs new file mode 100644 index 0000000..133eecc --- /dev/null +++ b/Adaptation/FileHandlers/Stratus/Run.cs @@ -0,0 +1,151 @@ +using Adaptation.Shared; +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.IO; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Adaptation.FileHandlers.Stratus; + +#nullable enable + +internal class Run +{ + + public Run(Header header, ReadOnlyCollection wafers, Footer footer) + { + Header = header; + Wafers = wafers; + Footer = footer; + } + + public Header Header { get; } + public ReadOnlyCollection Wafers { get; } + public Footer Footer { get; } + + private static void WriteJson(Logistics logistics, List fileInfoCollection, Run? result) + { + FileInfo fileInfo = new($"{logistics.ReportFullPath}.json"); + string json = JsonSerializer.Serialize(result, RunSourceGenerationContext.Default.Run); + File.WriteAllText(fileInfo.FullName, json); + File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence); + fileInfoCollection.Add(fileInfo); + } + + private static ReadOnlyCollection GetLines(JsonElement[]? jsonElements) + { + List results = new(); + int columns = 0; + StringBuilder stringBuilder = new(); + for (int i = 0; i < jsonElements?.Length;) + { + foreach (JsonProperty jsonProperty in jsonElements[0].EnumerateObject()) + { + columns += 1; + _ = stringBuilder.Append('"').Append(jsonProperty.Name).Append('"').Append('\t'); + } + break; + } + if (jsonElements?.Length != 0) + _ = stringBuilder.Remove(stringBuilder.Length - 1, 1); + results.Add(stringBuilder.ToString()); + for (int i = 0; i < jsonElements?.Length; i++) + { + _ = stringBuilder.Clear(); + foreach (JsonProperty jsonProperty in jsonElements[i].EnumerateObject()) + { + if (jsonProperty.Value.ValueKind == JsonValueKind.Object) + _ = stringBuilder.Append('\t'); + else if (jsonProperty.Value.ValueKind != JsonValueKind.String) + _ = stringBuilder.Append(jsonProperty.Value).Append('\t'); + else + _ = stringBuilder.Append('"').Append(jsonProperty.Value).Append('"').Append('\t'); + } + _ = stringBuilder.Remove(stringBuilder.Length - 1, 1); + results.Add(stringBuilder.ToString()); + } + return results.AsReadOnly(); + } + + private static ReadOnlyCollection GetLines(JsonElement jsonElement) => + GetLines(new JsonElement[] { jsonElement }); + + private static void WriteTabSeparatedValues(Logistics logistics, List fileInfoCollection, Run run) + { + List results = new(); + Row row; + FileInfo fileInfo = new($"{logistics.ReportFullPath}.tsv"); + for (int i = 0; i < run.Wafers.Count; i++) + { + for (int j = 0; j < run.Wafers[i].Sites.Count; j++) + { + row = new(run, i, j); + results.Add(row); + } + } + string json = JsonSerializer.Serialize(results); + JsonElement[]? jsonElements = JsonSerializer.Deserialize(json); + ReadOnlyCollection lines = GetLines(jsonElements); + File.WriteAllText(fileInfo.FullName, string.Join(Environment.NewLine, lines)); + File.SetLastWriteTime(fileInfo.FullName, logistics.DateTimeFromSequence); + fileInfoCollection.Add(fileInfo); + } + + private static void WriteException(Logistics logistics, Exception ex) + { + FileInfo fileInfo = new($"{logistics.ReportFullPath}.{nameof(Exception)}.txt"); + File.WriteAllText(fileInfo.FullName, $"{ex.Message}{Environment.NewLine}{ex.StackTrace}"); + } + + internal static Run? Get(Logistics logistics, List fileInfoCollection) + { + Run? result; + Constant constant = new(); + int[] i = new int[] { 0 }; + string text = File.ReadAllText(logistics.ReportFullPath); + Header? header = Header.Get(text, constant, i); + if (header is null) + result = null; + else + { + ReadOnlyCollection groups = Wafer.GetGroups(text, constant, i); + if (groups.Count == 0) + result = null; + else + { + ReadOnlyCollection wafers = Wafer.Get(constant, groups); + if (wafers.Count == 0) + result = null; + else + { + Footer? footer = Footer.Get(constant, groups); + if (footer is null) + result = null; + else + { + result = new(header, wafers, footer); + WriteJson(logistics, fileInfoCollection, result); + try + { + WriteTabSeparatedValues(logistics, fileInfoCollection, result); + } + catch (Exception ex) + { + WriteException(logistics, ex); + } + } + } + } + } + return result; + } + +} + +[JsonSourceGenerationOptions(WriteIndented = true)] +[JsonSerializable(typeof(Run))] +internal partial class RunSourceGenerationContext : JsonSerializerContext +{ +} \ No newline at end of file diff --git a/Adaptation/FileHandlers/Stratus/Wafer.cs b/Adaptation/FileHandlers/Stratus/Wafer.cs index e0f6c98..8ff664f 100644 --- a/Adaptation/FileHandlers/Stratus/Wafer.cs +++ b/Adaptation/FileHandlers/Stratus/Wafer.cs @@ -9,7 +9,7 @@ namespace Adaptation.FileHandlers.Stratus; public class Wafer { - public Wafer(string destination, string mean, string passFail, string recipe, string reference, List sites, string slot, string source, string stdDev, string waferText) + public Wafer(string destination, string mean, string passFail, string recipe, string reference, ReadOnlyCollection sites, string slot, string source, string stdDev, string waferText) { Destination = destination; Mean = mean; @@ -28,7 +28,7 @@ public class Wafer public string PassFail { get; } public string Recipe { get; } public string Reference { get; } - public List Sites { get; } + public ReadOnlyCollection Sites { get; } public string Slot { get; } public string Source { get; } public string StdDev { get; } @@ -216,7 +216,7 @@ public class Wafer passFail: passFail, recipe: recipe, reference: reference, - sites: sites, + sites: sites.AsReadOnly(), slot: slot, source: source, stdDev: stdDev, diff --git a/Adaptation/FileHandlers/txt/ProcessData.cs b/Adaptation/FileHandlers/txt/ProcessData.cs index 3b5febc..6f483ea 100644 --- a/Adaptation/FileHandlers/txt/ProcessData.cs +++ b/Adaptation/FileHandlers/txt/ProcessData.cs @@ -226,7 +226,7 @@ public partial class ProcessData : IProcessData } else { - Stratus.Complete? complete = null; + Stratus.Run? complete = null; processData = new Stratus.ProcessData(fileRead, logistics, fileInfoCollection, originalDataBioRad, complete, dataText: dataText); iProcessData = processData; if (iProcessData.Details.Count == 0) diff --git a/Adaptation/MET08THFTIRSTRATUS.Tests.csproj b/Adaptation/MET08THFTIRSTRATUS.Tests.csproj index c39ecf9..a6de62b 100644 --- a/Adaptation/MET08THFTIRSTRATUS.Tests.csproj +++ b/Adaptation/MET08THFTIRSTRATUS.Tests.csproj @@ -35,7 +35,7 @@ - + NU1701 NU1701 @@ -44,41 +44,39 @@ NU1701 NU1701 NU1701 - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + NU1701 - - - + + + - - - - - - - + + NU1701 - NU1701 - NU1701 - NU1701 + + + + + diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/BIORAD4.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/BIORAD4.cs deleted file mode 100644 index c509d68..0000000 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/BIORAD4.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if v2_56_0 -using Adaptation._Tests.Shared; -using Microsoft.Extensions.Logging; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Diagnostics; -using System.IO; -using System.Reflection; - -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_56_0; - -[TestClass] -public class BIORAD4 : EAFLoggingUnitTesting -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - internal static string DummyRoot { get; private set; } - internal static BIORAD4 EAFLoggingUnitTesting { get; private set; } - - static BIORAD4() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; - - public BIORAD4() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) - { - if (EAFLoggingUnitTesting is null) - throw new Exception(); - } - - public BIORAD4(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) - { - } - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - EAFLoggingUnitTesting ??= new BIORAD4(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(); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__txt() - { - string check = "*DataBioRad.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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__Stratus() - { - string check = "CassetteDataBioRad_*.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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__QS408M() - { - string check = "DetailDataBioRad_*.txt"; - MethodBase methodBase = new StackFrame().GetMethod(); - EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); - string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase); - Assert.IsTrue(fileNameAndJson[1].Contains(check)); - File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]); - EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); - } - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/BIORAD5.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/BIORAD5.cs deleted file mode 100644 index a0f4678..0000000 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/BIORAD5.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if v2_56_0 -using Adaptation._Tests.Shared; -using Microsoft.Extensions.Logging; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Diagnostics; -using System.IO; -using System.Reflection; - -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_56_0; - -[TestClass] -public class BIORAD5 : EAFLoggingUnitTesting -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - internal static string DummyRoot { get; private set; } - internal static BIORAD5 EAFLoggingUnitTesting { get; private set; } - - static BIORAD5() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; - - public BIORAD5() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) - { - if (EAFLoggingUnitTesting is null) - throw new Exception(); - } - - public BIORAD5(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) - { - } - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - EAFLoggingUnitTesting ??= new BIORAD5(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(); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__txt() - { - string check = "*DataBioRad.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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__Stratus() - { - string check = "CassetteDataBioRad_*.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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__QS408M() - { - string check = "DetailDataBioRad_*.txt"; - MethodBase methodBase = new StackFrame().GetMethod(); - EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); - string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase); - Assert.IsTrue(fileNameAndJson[1].Contains(check)); - File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]); - EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); - } - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08THFTIRSTRATUS.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08THFTIRSTRATUS.cs deleted file mode 100644 index 10bbd2a..0000000 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.56.0/MET08THFTIRSTRATUS.cs +++ /dev/null @@ -1,162 +0,0 @@ -#if v2_56_0 -using Adaptation._Tests.Shared; -using Microsoft.Extensions.Logging; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Diagnostics; -using System.IO; -using System.Reflection; - -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_56_0; - -[TestClass] -public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - internal static string DummyRoot { get; private set; } - internal static MET08THFTIRSTRATUS EAFLoggingUnitTesting { get; private set; } - - static MET08THFTIRSTRATUS() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; - - public MET08THFTIRSTRATUS() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) - { - if (EAFLoggingUnitTesting is null) - throw new Exception(); - } - - public MET08THFTIRSTRATUS(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) - { - } - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(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(); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__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")); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__Dummy() - { - string check = "637738592809956919.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")); - } - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/BIORAD4.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/BIORAD4.cs deleted file mode 100644 index f28cd6b..0000000 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/BIORAD4.cs +++ /dev/null @@ -1,93 +0,0 @@ -#if true -using Adaptation._Tests.Shared; -using Microsoft.Extensions.Logging; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Diagnostics; -using System.IO; -using System.Reflection; - -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; - -[TestClass] -public class BIORAD4 : EAFLoggingUnitTesting -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - internal static string DummyRoot { get; private set; } - internal static BIORAD4 EAFLoggingUnitTesting { get; private set; } - - static BIORAD4() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; - - public BIORAD4() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) - { - if (EAFLoggingUnitTesting is null) - throw new Exception(); - } - - public BIORAD4(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) - { - } - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - EAFLoggingUnitTesting ??= new BIORAD4(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_57_0__BIORAD4__txt() - { - string check = "*DataBioRad.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")); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__Stratus() - { - string check = "CassetteDataBioRad_*.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")); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__QS408M() - { - string check = "DetailDataBioRad_*.txt"; - MethodBase methodBase = new StackFrame().GetMethod(); - EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); - string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase); - Assert.IsTrue(fileNameAndJson[1].Contains(check)); - File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]); - EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); - } - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/BIORAD5.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/BIORAD5.cs deleted file mode 100644 index 0137cf5..0000000 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/BIORAD5.cs +++ /dev/null @@ -1,93 +0,0 @@ -#if true -using Adaptation._Tests.Shared; -using Microsoft.Extensions.Logging; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Diagnostics; -using System.IO; -using System.Reflection; - -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; - -[TestClass] -public class BIORAD5 : EAFLoggingUnitTesting -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - internal static string DummyRoot { get; private set; } - internal static BIORAD5 EAFLoggingUnitTesting { get; private set; } - - static BIORAD5() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; - - public BIORAD5() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) - { - if (EAFLoggingUnitTesting is null) - throw new Exception(); - } - - public BIORAD5(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) - { - } - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - EAFLoggingUnitTesting ??= new BIORAD5(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_57_0__BIORAD5__txt() - { - string check = "*DataBioRad.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")); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD5__Stratus() - { - string check = "CassetteDataBioRad_*.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")); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD5__QS408M() - { - string check = "DetailDataBioRad_*.txt"; - MethodBase methodBase = new StackFrame().GetMethod(); - EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration")); - string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase); - Assert.IsTrue(fileNameAndJson[1].Contains(check)); - File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]); - EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); - } - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08THFTIRSTRATUS.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08THFTIRSTRATUS.cs deleted file mode 100644 index 9d4af70..0000000 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.57.0/MET08THFTIRSTRATUS.cs +++ /dev/null @@ -1,182 +0,0 @@ -#if true -using Adaptation._Tests.Shared; -using Microsoft.Extensions.Logging; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System; -using System.Diagnostics; -using System.IO; -using System.Reflection; - -namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_57_0; - -[TestClass] -public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - internal static string DummyRoot { get; private set; } - internal static MET08THFTIRSTRATUS EAFLoggingUnitTesting { get; private set; } - - static MET08THFTIRSTRATUS() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; - - public MET08THFTIRSTRATUS() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) - { - if (EAFLoggingUnitTesting is null) - throw new Exception(); - } - - public MET08THFTIRSTRATUS(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) - { - } - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__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_57_0__MET08THFTIRSTRATUS__Dummy() - { - string check = "637738592809956919.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")); - } - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/BIORAD4.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/BIORAD4.cs deleted file mode 100644 index ce2e214..0000000 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/BIORAD4.cs +++ /dev/null @@ -1,171 +0,0 @@ -#if v2_56_0 -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_56_0; - -[TestClass] -public class BIORAD4 -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - private static CreateSelfDescription.Staging.v2_56_0.BIORAD4 _BIORAD4; - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - CreateSelfDescription.Staging.v2_56_0.BIORAD4.ClassInitialize(testContext); - _BIORAD4 = CreateSelfDescription.Staging.v2_56_0.BIORAD4.EAFLoggingUnitTesting; - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__txt() => _BIORAD4.Staging__v2_56_0__BIORAD4__txt(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__txt637730081979221342__Normal() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__txt637818036815840307__ProcessFailed() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__txt637746296480404920__Failure() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__txt638187028378748930__THigh() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__Stratus() => _BIORAD4.Staging__v2_56_0__BIORAD4__Stratus(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__Stratus637730081979221342__RDS() - { - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__Stratus637730081979221342__1TRDS() - { - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__Stratus637733400573863329__ReactorAndRDS() - { - DateTime dateTime; - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39"); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__Stratus637818036815840307__ProcessFailed() - { - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__QS408M() => _BIORAD4.Staging__v2_56_0__BIORAD4__QS408M(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD4__Stratus638010209430211312__MissingRecipe() - { - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_56_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/BIORAD5.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/BIORAD5.cs deleted file mode 100644 index 2124a4d..0000000 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/BIORAD5.cs +++ /dev/null @@ -1,102 +0,0 @@ -#if v2_56_0 -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_56_0; - -[TestClass] -public class BIORAD5 -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - private static CreateSelfDescription.Staging.v2_56_0.BIORAD5 _BIORAD5; - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - CreateSelfDescription.Staging.v2_56_0.BIORAD5.ClassInitialize(testContext); - _BIORAD5 = CreateSelfDescription.Staging.v2_56_0.BIORAD5.EAFLoggingUnitTesting; - } - - private static void NonThrowTryCatch() - { - try - { throw new Exception(); } - catch (Exception) { } - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__txt() => _BIORAD5.Staging__v2_56_0__BIORAD5__txt(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__txt638221788953480284__MorePoints() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD5.Staging__v2_56_0__BIORAD5__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - NonThrowTryCatch(); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__Stratus() => _BIORAD5.Staging__v2_56_0__BIORAD5__Stratus(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__Stratus637738592809956919__ReactorAndRDS() - { - DateTime dateTime; - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD5.Staging__v2_56_0__BIORAD5__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39"); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - NonThrowTryCatch(); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__Stratus637805172599370243__Why() - { - DateTime dateTime; - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD5.Staging__v2_56_0__BIORAD5__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39"); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - NonThrowTryCatch(); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__BIORAD5__QS408M() => _BIORAD5.Staging__v2_56_0__BIORAD5__QS408M(); - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08THFTIRSTRATUS.cs b/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08THFTIRSTRATUS.cs deleted file mode 100644 index cdfa919..0000000 --- a/Adaptation/_Tests/Extract/Staging/v2.56.0/MET08THFTIRSTRATUS.cs +++ /dev/null @@ -1,120 +0,0 @@ -#if v2_56_0 -using Adaptation._Tests.Shared; -using Adaptation.Shared; -using Adaptation.Shared.Methods; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Diagnostics; -using System.Reflection; - -namespace Adaptation._Tests.Extract.Staging.v2_56_0; - -[TestClass] -public class MET08THFTIRSTRATUS -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - private static CreateSelfDescription.Staging.v2_56_0.MET08THFTIRSTRATUS _MET08THFTIRSTRATUS; - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - CreateSelfDescription.Staging.v2_56_0.MET08THFTIRSTRATUS.ClassInitialize(testContext); - _MET08THFTIRSTRATUS = CreateSelfDescription.Staging.v2_56_0.MET08THFTIRSTRATUS.EAFLoggingUnitTesting; - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__MoveMatchingFiles() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__MoveMatchingFiles(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__IQSSi() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__IQSSi(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsight() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsight(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsight638014829236768047__Normal() - { - string check = "*.pdsf"; - _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsight(); - MethodBase method = new StackFrame().GetMethod(); - string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check); - _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract(); - AdaptationTesting.UpdatePassDirectory(variables[2]); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsight638015284160909324__WO() - { - string check = "*.pdsf"; - _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsight(); - MethodBase method = new StackFrame().GetMethod(); - string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check); - _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract(); - AdaptationTesting.UpdatePassDirectory(variables[2]); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsight638054540026319596__IqsSql() - { - string check = "*.pdsf"; - bool validatePDSF = false; - MethodBase methodBase = new StackFrame().GetMethod(); - _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsight(); - string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments638131299562362655__Normal() - { - string check = "*.pdsf"; - bool validatePDSF = false; - MethodBase methodBase = new StackFrame().GetMethod(); - _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments(); - string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); - } - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__APC() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__APC(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__SPaCe() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__SPaCe(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__Processed() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__Processed(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__Archive() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__Archive(); - - [Ignore] - [TestMethod] - public void Staging__v2_56_0__MET08THFTIRSTRATUS__Dummy() => _MET08THFTIRSTRATUS.Staging__v2_56_0__MET08THFTIRSTRATUS__Dummy(); - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/BIORAD4.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/BIORAD4.cs deleted file mode 100644 index 9b107b5..0000000 --- a/Adaptation/_Tests/Extract/Staging/v2.57.0/BIORAD4.cs +++ /dev/null @@ -1,195 +0,0 @@ -#if true -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_57_0; - -[TestClass] -public class BIORAD4 -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - private static CreateSelfDescription.Staging.v2_57_0.BIORAD4 _BIORAD4; - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - CreateSelfDescription.Staging.v2_57_0.BIORAD4.ClassInitialize(testContext); - _BIORAD4 = CreateSelfDescription.Staging.v2_57_0.BIORAD4.EAFLoggingUnitTesting; - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__txt() => _BIORAD4.Staging__v2_57_0__BIORAD4__txt(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__txt637730081979221342__Normal() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__txt637818036815840307__ProcessFailed() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__txt637746296480404920__Failure() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__txt638187028378748930__THigh() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__Stratus() => _BIORAD4.Staging__v2_57_0__BIORAD4__Stratus(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__Stratus637730081979221342__RDS() - { - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.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_57_0__BIORAD4__Stratus637730081979221342__1TRDS() - { - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.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_57_0__BIORAD4__Stratus637733400573863329__ReactorAndRDS() - { - DateTime dateTime; - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39"); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__Stratus637818036815840307__ProcessFailed() - { - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__QS408M() => _BIORAD4.Staging__v2_57_0__BIORAD4__QS408M(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD4__Stratus638010209430211312__MissingRecipe() - { - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD4.Staging__v2_57_0__BIORAD4__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - _ = fileRead.ReExtract(); - Shared.AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/BIORAD5.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/BIORAD5.cs deleted file mode 100644 index 4c85d2e..0000000 --- a/Adaptation/_Tests/Extract/Staging/v2.57.0/BIORAD5.cs +++ /dev/null @@ -1,114 +0,0 @@ -#if true -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_57_0; - -[TestClass] -public class BIORAD5 -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - private static CreateSelfDescription.Staging.v2_57_0.BIORAD5 _BIORAD5; - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - CreateSelfDescription.Staging.v2_57_0.BIORAD5.ClassInitialize(testContext); - _BIORAD5 = CreateSelfDescription.Staging.v2_57_0.BIORAD5.EAFLoggingUnitTesting; - } - - private static void NonThrowTryCatch() - { - try - { throw new Exception(); } - catch (Exception) { } - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD5__txt() => _BIORAD5.Staging__v2_57_0__BIORAD5__txt(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD5__txt638221788953480284__MorePoints() - { - bool validatePDSF = false; - string check = "*DataBioRad.txt"; - _BIORAD5.Staging__v2_57_0__BIORAD5__txt(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - NonThrowTryCatch(); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD5__Stratus() => _BIORAD5.Staging__v2_57_0__BIORAD5__Stratus(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD5__Stratus637738592809956919__ReactorAndRDS() - { - DateTime dateTime; - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD5.Staging__v2_57_0__BIORAD5__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39"); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - NonThrowTryCatch(); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD5__Stratus637805172599370243__Why() - { - DateTime dateTime; - bool validatePDSF = false; - string check = "CassetteDataBioRad_*.txt"; - _BIORAD5.Staging__v2_57_0__BIORAD5__Stratus(); - MethodBase methodBase = new StackFrame().GetMethod(); - string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); - Logistics logistics = new(fileRead); - _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39"); - Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); - NonThrowTryCatch(); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__BIORAD5__QS408M() => _BIORAD5.Staging__v2_57_0__BIORAD5__QS408M(); - -} -#endif \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08THFTIRSTRATUS.cs b/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08THFTIRSTRATUS.cs deleted file mode 100644 index b56ed4b..0000000 --- a/Adaptation/_Tests/Extract/Staging/v2.57.0/MET08THFTIRSTRATUS.cs +++ /dev/null @@ -1,148 +0,0 @@ -#if true -using Adaptation._Tests.Shared; -using Adaptation.Shared; -using Adaptation.Shared.Methods; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using System.Diagnostics; -using System.Reflection; - -namespace Adaptation._Tests.Extract.Staging.v2_57_0; - -[TestClass] -public class MET08THFTIRSTRATUS -{ - -#pragma warning disable CA2254 -#pragma warning disable IDE0060 - - private static CreateSelfDescription.Staging.v2_57_0.MET08THFTIRSTRATUS _MET08THFTIRSTRATUS; - - [ClassInitialize] - public static void ClassInitialize(TestContext testContext) - { - CreateSelfDescription.Staging.v2_57_0.MET08THFTIRSTRATUS.ClassInitialize(testContext); - _MET08THFTIRSTRATUS = CreateSelfDescription.Staging.v2_57_0.MET08THFTIRSTRATUS.EAFLoggingUnitTesting; - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__MoveMatchingFiles() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__MoveMatchingFiles(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__IQSSi() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__IQSSi(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsight() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsight(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsight638014829236768047__Normal() - { - string check = "*.pdsf"; - _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsight(); - MethodBase method = new StackFrame().GetMethod(); - string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check); - _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract(); - AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsight638015284160909324__WO() - { - string check = "*.pdsf"; - _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsight(); - MethodBase method = new StackFrame().GetMethod(); - string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check); - _ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract(); - AdaptationTesting.UpdatePassDirectory(variables[2]); - } - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsight638054540026319596__IqsSql() - { - string check = "*.pdsf"; - bool validatePDSF = false; - MethodBase methodBase = new StackFrame().GetMethod(); - _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsight(); - string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _MET08THFTIRSTRATUS.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_57_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments638131299562362655__Normal() - { - string check = "*.pdsf"; - bool validatePDSF = false; - MethodBase methodBase = new StackFrame().GetMethod(); - _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments(); - string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); - IFileRead fileRead = _MET08THFTIRSTRATUS.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_57_0__MET08THFTIRSTRATUS__APC() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__APC(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__SPaCe() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__SPaCe(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__Processed() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__Processed(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__Archive() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__Archive(); - -#if DEBUG - [Ignore] -#endif - [TestMethod] - public void Staging__v2_57_0__MET08THFTIRSTRATUS__Dummy() => _MET08THFTIRSTRATUS.Staging__v2_57_0__MET08THFTIRSTRATUS__Dummy(); - -} -#endif \ No newline at end of file diff --git a/MET08THFTIRSTRATUS.csproj b/MET08THFTIRSTRATUS.csproj index f9fd07b..6faead8 100644 --- a/MET08THFTIRSTRATUS.csproj +++ b/MET08THFTIRSTRATUS.csproj @@ -119,7 +119,6 @@ - @@ -129,6 +128,8 @@ + +