From 2cea192c7a8d23abbd139c765ba06f0bd292cbeb Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Mon, 20 Mar 2023 08:27:09 -0700 Subject: [PATCH] Added Tests for v2.47.5 Save check for file already present NoWaitDirectory MoveArchive allow empty directory and continueOnError for clean files CreatePointerFile and more on NoWaitDirectory --- Adaptation/.editorconfig | 1 + Adaptation/FileHandlers/Archive/FileRead.cs | 21 +- .../MoveMatchingFiles/FileRead.cs | 63 +++++- .../FileHandlers/OpenInsight/FromIQS.cs | 31 +-- Adaptation/FileHandlers/Processed/FileRead.cs | 2 +- Adaptation/MET08THFTIRQS408M-Development.yml | 5 +- Adaptation/MET08THFTIRQS408M.yml | 5 +- .../Staging/v2.47.0/BIORAD2.cs | 2 - .../Staging/v2.47.0/BIORAD3.cs | 2 - .../Staging/v2.47.1/MET08THFTIRQS408M.cs | 20 -- .../Staging/v2.47.5/BIORAD2.cs | 63 ++++++ .../Staging/v2.47.5/BIORAD3.cs | 63 ++++++ .../Staging/v2.47.5/MET08THFTIRQS408M.cs | 180 ++++++++++++++++++ .../_Tests/Extract/Staging/v2.47.0/BIORAD2.cs | 2 - .../_Tests/Extract/Staging/v2.47.0/BIORAD3.cs | 4 - .../Staging/v2.47.1/MET08THFTIRQS408M.cs | 22 --- .../_Tests/Extract/Staging/v2.47.5/BIORAD2.cs | 27 +++ .../_Tests/Extract/Staging/v2.47.5/BIORAD3.cs | 53 ++++++ .../Staging/v2.47.5/MET08THFTIRQS408M.cs | 106 +++++++++++ Adaptation/_Tests/Static/MET08THFTIRQS408M.cs | 2 - Adaptation/_Tests/Static/QS408M.cs | 2 - 21 files changed, 592 insertions(+), 84 deletions(-) create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/BIORAD2.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/BIORAD3.cs create mode 100644 Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/MET08THFTIRQS408M.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.47.5/BIORAD2.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.47.5/BIORAD3.cs create mode 100644 Adaptation/_Tests/Extract/Staging/v2.47.5/MET08THFTIRQS408M.cs diff --git a/Adaptation/.editorconfig b/Adaptation/.editorconfig index 1e59ffa..b45701e 100644 --- a/Adaptation/.editorconfig +++ b/Adaptation/.editorconfig @@ -76,6 +76,7 @@ csharp_using_directive_placement = outside_namespace dotnet_code_quality_unused_parameters = all dotnet_code_quality_unused_parameters = non_public # IDE0060: Remove unused parameter dotnet_code_quality.CAXXXX.api_surface = private, internal +dotnet_diagnostic.CA1816.severity = none # CA1816: Call GC.SuppressFinalize correctly dotnet_diagnostic.CA1825.severity = warning # CA1823: Avoid zero-length array allocations dotnet_diagnostic.CA1829.severity = warning # CA1829: Use Length/Count property instead of Count() when available dotnet_diagnostic.CA1834.severity = warning # CA1834: Consider using 'StringBuilder.Append(char)' when applicable diff --git a/Adaptation/FileHandlers/Archive/FileRead.cs b/Adaptation/FileHandlers/Archive/FileRead.cs index 6584c7f..f2239db 100644 --- a/Adaptation/FileHandlers/Archive/FileRead.cs +++ b/Adaptation/FileHandlers/Archive/FileRead.cs @@ -115,7 +115,7 @@ public class FileRead : Shared.FileRead, IFileRead } } - private void MoveArchive(DateTime dateTime) + private void MoveArchive(string reportFullPath, DateTime dateTime) { if (dateTime == DateTime.MinValue) { } @@ -128,12 +128,17 @@ public class FileRead : Shared.FileRead, IFileRead string jobIdDirectory = Path.Combine(_JobIdParentDirectory, _Logistics.JobID); if (!Directory.Exists(jobIdDirectory)) _ = Directory.CreateDirectory(jobIdDirectory); - string[] matchDirectories = new string[] { GetDirectoriesRecursively(jobIdDirectory, logisticsSequence).FirstOrDefault() }; - if ((matchDirectories is null) || matchDirectories.Length != 1) - throw new Exception("Didn't find directory by logistics sequence"); - string sourceDirectory = Path.GetDirectoryName(matchDirectories[0]); - destinationArchiveDirectory = Path.Combine(destinationArchiveDirectory, Path.GetFileName(sourceDirectory)); - Directory.Move(sourceDirectory, destinationArchiveDirectory); + if (!Directory.GetDirectories(jobIdDirectory).Any()) + File.Copy(reportFullPath, Path.Combine(destinationArchiveDirectory, Path.GetFileName(reportFullPath))); + else + { + string[] matchDirectories = GetDirectoriesRecursively(jobIdDirectory, logisticsSequence).ToArray(); + if (matchDirectories.Length != 1) + throw new Exception("Didn't find directory by logistics sequence"); + string sourceDirectory = Path.GetDirectoryName(matchDirectories[0]); + destinationArchiveDirectory = Path.Combine(destinationArchiveDirectory, Path.GetFileName(sourceDirectory)); + Directory.Move(sourceDirectory, destinationArchiveDirectory); + } } private Tuple> GetExtractResult(string reportFullPath, DateTime dateTime) @@ -146,7 +151,7 @@ public class FileRead : Shared.FileRead, IFileRead List descriptions = GetDuplicatorDescriptions(jsonElements); Test[] tests = (from l in descriptions select (Test)l.Test).ToArray(); if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0) - MoveArchive(dateTime); + MoveArchive(reportFullPath, dateTime); results = new Tuple>(pdsf.Item1, tests, jsonElements, new List()); return results; } diff --git a/Adaptation/FileHandlers/MoveMatchingFiles/FileRead.cs b/Adaptation/FileHandlers/MoveMatchingFiles/FileRead.cs index ad68b87..7ec2cfb 100644 --- a/Adaptation/FileHandlers/MoveMatchingFiles/FileRead.cs +++ b/Adaptation/FileHandlers/MoveMatchingFiles/FileRead.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text; using System.Text.Json; using System.Threading; @@ -153,18 +154,36 @@ public class FileRead : Shared.FileRead, IFileRead return results; } - private void MoveCollection(DateTime dateTime, List<(string matchingFile, string checkFile)> collection) + private static List<(string, string, string, string, string)> GetCollection(List<(string matchingFile, string checkFile)> collection) { - long preWait; + List<(string, string, string, string, string)> results = new(); string errFile; string checkDirectory; + string noWaitDirectory; foreach ((string matchingFile, string checkFile) in collection) { errFile = string.Concat(checkFile, ".err"); checkDirectory = Path.GetDirectoryName(checkFile); if (!Directory.Exists(checkDirectory)) _ = Directory.CreateDirectory(checkDirectory); + noWaitDirectory = Path.Combine(checkDirectory, "NoWaitDirectory"); + results.Add(new(matchingFile, checkFile, errFile, checkDirectory, noWaitDirectory)); + } + return results; + } + + private void MoveCollection(DateTime dateTime, List<(string matchingFile, string checkFile)> collection) + { + long preWait; + List<(string checkFile, string errFile)> postCollection = new(); + foreach ((string matchingFile, string checkFile, string errFile, string checkDirectory, string noWaitDirectory) in GetCollection(collection)) + { File.Move(matchingFile, checkFile); + if (Directory.Exists(noWaitDirectory)) + { + postCollection.Add(new(checkFile, errFile)); + continue; + } if (_FileConnectorConfiguration?.FileHandleWaitTime is null) preWait = DateTime.Now.AddMilliseconds(1234).Ticks; else @@ -182,10 +201,45 @@ public class FileRead : Shared.FileRead, IFileRead if (!File.Exists(checkFile)) break; if (new TimeSpan(DateTime.Now.Ticks - dateTime.Ticks).TotalSeconds > _BreakAfterSeconds) - throw new Exception($"Not all files were consumned after {_BreakAfterSeconds} second(s)!"); + throw new Exception($"Not all files were consumed after {_BreakAfterSeconds} second(s)!"); Thread.Sleep(500); } } + if (postCollection.Any()) + { + Thread.Sleep(500); + StringBuilder stringBuilder = new(); + foreach ((string checkFile, string errFile) in postCollection) + { + if (File.Exists(errFile)) + _ = stringBuilder.AppendLine(File.ReadAllText(errFile)); + if (File.Exists(checkFile)) + _ = stringBuilder.AppendLine($"<{checkFile}> was not consumed by the end!"); + } + if (stringBuilder.Length > 0) + throw new Exception(stringBuilder.ToString()); + } + } + + private static void CreatePointerFile(int numberLength, string parentDirectory, List matchingFiles) + { +#nullable enable + string checkFile; + string writeFile; + string? directoryName; + int parentDirectoryLength = parentDirectory.Length; + foreach (string matchingFile in matchingFiles) + { + directoryName = Path.GetDirectoryName(matchingFile); + if (directoryName is null) + continue; + checkFile = $"{matchingFile[0]}{directoryName.Substring(parentDirectoryLength + numberLength + 1)}"; + writeFile = Path.Combine(parentDirectory, $"{directoryName.Substring(parentDirectory.Length + 1, numberLength)}.txt"); + if (File.Exists(writeFile)) + continue; + File.AppendAllLines(writeFile, new string[] { parentDirectory, matchingFile, directoryName, checkFile }); + } +#nullable disable } private Tuple> GetExtractResult(string reportFullPath, DateTime dateTime) @@ -201,6 +255,9 @@ public class FileRead : Shared.FileRead, IFileRead List matchingFiles = GetMatchingFiles(ticks, reportFullPath, searchDirectories); if (matchingFiles.Count != searchDirectories.Count) throw new Exception($"Didn't find all files after {_BreakAfterSeconds} second(s)!"); + try + { CreatePointerFile(numberLength, parentParentDirectory, matchingFiles); } + catch (Exception) { } List<(string matchingFile, string checkFile)> collection = GetCollection(numberLength, parentParentDirectory, matchingFiles); MoveCollection(dateTime, collection); return results; diff --git a/Adaptation/FileHandlers/OpenInsight/FromIQS.cs b/Adaptation/FileHandlers/OpenInsight/FromIQS.cs index da1a781..8c2bbe2 100644 --- a/Adaptation/FileHandlers/OpenInsight/FromIQS.cs +++ b/Adaptation/FileHandlers/OpenInsight/FromIQS.cs @@ -182,6 +182,7 @@ public class FromIQS internal static void Save(string openInsightApiECDirectory, string openInsightApiIFXDirectory, Logistics logistics, string reportFullPath, string logisticLines, QS408M.Description description, string lines, long? subGroupId, string weekOfYear) { + string checkFile; string fileName = Path.GetFileName(reportFullPath); string json = GetJson(logistics, logisticLines, description); string? ecPathRoot = Path.GetPathRoot(openInsightApiECDirectory); @@ -195,18 +196,24 @@ public class FromIQS _ = Directory.CreateDirectory(ecDirectory); if (ifxExists && !Directory.Exists(ifxDirectory)) _ = Directory.CreateDirectory(ifxDirectory); - if (ecExists) - File.Copy(reportFullPath, Path.Combine(ecDirectory, fileName)); - if (ifxExists) - File.Copy(reportFullPath, Path.Combine(ifxDirectory, fileName)); - if (ecExists) - File.WriteAllText(Path.Combine(ecDirectory, $"{logistics.DateTimeFromSequence.Ticks}.txt"), lines); - if (ifxExists) - File.WriteAllText(Path.Combine(ifxDirectory, $"{logistics.DateTimeFromSequence.Ticks}.txt"), lines); - if (ecExists) - File.WriteAllText(Path.Combine(ecDirectory, $"{logistics.DateTimeFromSequence.Ticks}.json"), json); - if (ifxExists) - File.WriteAllText(Path.Combine(ifxDirectory, $"{logistics.DateTimeFromSequence.Ticks}.json"), json); + checkFile = Path.Combine(ecDirectory, fileName); + if (ecExists && !File.Exists(checkFile)) + File.Copy(reportFullPath, checkFile); + checkFile = Path.Combine(ifxDirectory, fileName); + if (ifxExists && !File.Exists(checkFile)) + File.Copy(reportFullPath, checkFile); + checkFile = Path.Combine(ecDirectory, $"{logistics.DateTimeFromSequence.Ticks}.txt"); + if (ecExists && !File.Exists(checkFile)) + File.WriteAllText(checkFile, lines); + checkFile = Path.Combine(ifxDirectory, $"{logistics.DateTimeFromSequence.Ticks}.txt"); + if (ifxExists && !File.Exists(checkFile)) + File.WriteAllText(checkFile, lines); + checkFile = Path.Combine(ecDirectory, $"{logistics.DateTimeFromSequence.Ticks}.json"); + if (ecExists && !File.Exists(checkFile)) + File.WriteAllText(checkFile, json); + checkFile = Path.Combine(ifxDirectory, $"{logistics.DateTimeFromSequence.Ticks}.json"); + if (ifxExists && !File.Exists(checkFile)) + File.WriteAllText(checkFile, json); } #nullable disable diff --git a/Adaptation/FileHandlers/Processed/FileRead.cs b/Adaptation/FileHandlers/Processed/FileRead.cs index cf3763f..f6755cb 100644 --- a/Adaptation/FileHandlers/Processed/FileRead.cs +++ b/Adaptation/FileHandlers/Processed/FileRead.cs @@ -118,7 +118,7 @@ public class FileRead : Shared.FileRead, IFileRead if (!Directory.Exists(jobIdDirectory)) _ = Directory.CreateDirectory(jobIdDirectory); string[] matchDirectories = GetInProcessDirectory(jobIdDirectory); - if ((matchDirectories is null) || matchDirectories.Length != 1) + if (matchDirectories.Length != 1) throw new Exception("Didn't find directory by logistics sequence"); if (fileInfo.Exists && fileInfo.LastWriteTime < fileInfo.CreationTime) File.SetLastWriteTime(reportFullPath, fileInfo.CreationTime); diff --git a/Adaptation/MET08THFTIRQS408M-Development.yml b/Adaptation/MET08THFTIRQS408M-Development.yml index e7bd433..2254541 100644 --- a/Adaptation/MET08THFTIRQS408M-Development.yml +++ b/Adaptation/MET08THFTIRQS408M-Development.yml @@ -92,10 +92,11 @@ steps: - script: '"C:\program files\dotnet\dotnet.exe" build --configuration $(Configuration) --source $(NugetSource)' workingDirectory: Adaptation displayName: "Core Build - Adaptation" - + - powershell: Get-ChildItem .\ -include TestResults -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } workingDirectory: "$(System.DefaultWorkingDirectory)/../../../$(Build.Repository.Name)" - displayName: 'PowerShell Script' + displayName: "PowerShell Script" + continueOnError: true - script: "dotnet test --configuration $(Configuration)" workingDirectory: Adaptation diff --git a/Adaptation/MET08THFTIRQS408M.yml b/Adaptation/MET08THFTIRQS408M.yml index 2de0070..2692557 100644 --- a/Adaptation/MET08THFTIRQS408M.yml +++ b/Adaptation/MET08THFTIRQS408M.yml @@ -89,10 +89,11 @@ steps: - script: '"C:\program files\dotnet\dotnet.exe" build --configuration $(Configuration) --source $(NugetSource)' workingDirectory: Adaptation displayName: "Core Build - Adaptation" - + - powershell: Get-ChildItem .\ -include TestResults -Recurse | foreach ($_) { remove-item $_.fullname -Force -Recurse } workingDirectory: "$(System.DefaultWorkingDirectory)/../../../$(Build.Repository.Name)" - displayName: 'PowerShell Script' + displayName: "PowerShell Script" + continueOnError: true - script: "dotnet test --configuration $(Configuration)" workingDirectory: Adaptation diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.0/BIORAD2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.0/BIORAD2.cs index 121b84d..59721e0 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.0/BIORAD2.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.0/BIORAD2.cs @@ -47,9 +47,7 @@ public class BIORAD2 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_0__BIORAD2__QS408M() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.0/BIORAD3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.0/BIORAD3.cs index 1ec8d24..da64095 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.0/BIORAD3.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.0/BIORAD3.cs @@ -47,9 +47,7 @@ public class BIORAD3 : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_0__BIORAD3__QS408M() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/MET08THFTIRQS408M.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/MET08THFTIRQS408M.cs index 73615d4..667cf5b 100644 --- a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/MET08THFTIRQS408M.cs +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.1/MET08THFTIRQS408M.cs @@ -47,9 +47,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting?.Dispose(); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__MoveMatchingFiles() { @@ -60,9 +58,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__OpenInsightMetrologyViewer() { @@ -73,9 +69,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__IQSSi() { @@ -86,9 +80,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__OpenInsight() { @@ -99,9 +91,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments() { @@ -112,9 +102,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__APC() { @@ -125,9 +113,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__SPaCe() { @@ -138,9 +124,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__Processed() { @@ -151,9 +135,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__Archive() { @@ -164,9 +146,7 @@ public class MET08THFTIRQS408M : EAFLoggingUnitTesting EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__Dummy() { diff --git a/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/BIORAD2.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/BIORAD2.cs new file mode 100644 index 0000000..55da29c --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/BIORAD2.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_47_5; + +[TestClass] +public class BIORAD2 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static BIORAD2 EAFLoggingUnitTesting { get; private set; } + + static BIORAD2() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public BIORAD2() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public BIORAD2(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new BIORAD2(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_47_5__BIORAD2__QS408M() + { + 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.47.5/BIORAD3.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/BIORAD3.cs new file mode 100644 index 0000000..ee54d04 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/BIORAD3.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_47_5; + +[TestClass] +public class BIORAD3 : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static BIORAD3 EAFLoggingUnitTesting { get; private set; } + + static BIORAD3() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public BIORAD3() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public BIORAD3(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new BIORAD3(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_47_5__BIORAD3__QS408M() + { + 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.47.5/MET08THFTIRQS408M.cs b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/MET08THFTIRQS408M.cs new file mode 100644 index 0000000..54ba9c2 --- /dev/null +++ b/Adaptation/_Tests/CreateSelfDescription/Staging/v2.47.5/MET08THFTIRQS408M.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_47_5; + +[TestClass] +public class MET08THFTIRQS408M : EAFLoggingUnitTesting +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + internal static string DummyRoot { get; private set; } + internal static MET08THFTIRQS408M EAFLoggingUnitTesting { get; private set; } + + static MET08THFTIRQS408M() => DummyRoot = @"\\messv02ecc1.ec.local\EC_Characterization_Si\Dummy"; + + public MET08THFTIRQS408M() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) + { + if (EAFLoggingUnitTesting is null) + throw new Exception(); + } + + public MET08THFTIRQS408M(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) + { + } + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + EAFLoggingUnitTesting ??= new MET08THFTIRQS408M(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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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_47_5__MET08THFTIRQS408M__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.47.0/BIORAD2.cs b/Adaptation/_Tests/Extract/Staging/v2.47.0/BIORAD2.cs index 5b57feb..2ab84b6 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.47.0/BIORAD2.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.47.0/BIORAD2.cs @@ -18,9 +18,7 @@ public class BIORAD2 _BIORAD2 = CreateSelfDescription.Staging.v2_47_0.BIORAD2.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_0__BIORAD2__QS408M() => _BIORAD2.Staging__v2_47_0__BIORAD2__QS408M(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.47.0/BIORAD3.cs b/Adaptation/_Tests/Extract/Staging/v2.47.0/BIORAD3.cs index b17ff9c..c693bfe 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.47.0/BIORAD3.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.47.0/BIORAD3.cs @@ -23,15 +23,11 @@ public class BIORAD3 _BIORAD3 = CreateSelfDescription.Staging.v2_47_0.BIORAD3.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_0__BIORAD3__QS408M() => _BIORAD3.Staging__v2_47_0__BIORAD3__QS408M(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_0__BIORAD3__QS408M637406016892454000__ReactorAndRDS() { diff --git a/Adaptation/_Tests/Extract/Staging/v2.47.1/MET08THFTIRQS408M.cs b/Adaptation/_Tests/Extract/Staging/v2.47.1/MET08THFTIRQS408M.cs index 287e3bf..53b2b4f 100644 --- a/Adaptation/_Tests/Extract/Staging/v2.47.1/MET08THFTIRQS408M.cs +++ b/Adaptation/_Tests/Extract/Staging/v2.47.1/MET08THFTIRQS408M.cs @@ -23,33 +23,23 @@ public class MET08THFTIRQS408M _MET08THFTIRQS408M = CreateSelfDescription.Staging.v2_47_1.MET08THFTIRQS408M.EAFLoggingUnitTesting; } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__MoveMatchingFiles() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__MoveMatchingFiles(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__OpenInsightMetrologyViewer() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__OpenInsightMetrologyViewer(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__IQSSi() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__IQSSi(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__OpenInsight() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__OpenInsight(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__OpenInsight638042558563679143__IqsSql() { @@ -67,39 +57,27 @@ public class MET08THFTIRQS408M _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__APC() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__APC(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__SPaCe() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__SPaCe(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__Processed() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__Processed(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__Archive() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__Archive(); -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging__v2_47_1__MET08THFTIRQS408M__Dummy() => _MET08THFTIRQS408M.Staging__v2_47_1__MET08THFTIRQS408M__Dummy(); diff --git a/Adaptation/_Tests/Extract/Staging/v2.47.5/BIORAD2.cs b/Adaptation/_Tests/Extract/Staging/v2.47.5/BIORAD2.cs new file mode 100644 index 0000000..a4575f3 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.47.5/BIORAD2.cs @@ -0,0 +1,27 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace Adaptation._Tests.Extract.Staging.v2_47_5; + +[TestClass] +public class BIORAD2 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_47_5.BIORAD2 _BIORAD2; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_47_5.BIORAD2.ClassInitialize(testContext); + _BIORAD2 = CreateSelfDescription.Staging.v2_47_5.BIORAD2.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__BIORAD2__QS408M() => _BIORAD2.Staging__v2_47_5__BIORAD2__QS408M(); + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.47.5/BIORAD3.cs b/Adaptation/_Tests/Extract/Staging/v2.47.5/BIORAD3.cs new file mode 100644 index 0000000..9bdb54b --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.47.5/BIORAD3.cs @@ -0,0 +1,53 @@ +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_47_5; + +[TestClass] +public class BIORAD3 +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_47_5.BIORAD3 _BIORAD3; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_47_5.BIORAD3.ClassInitialize(testContext); + _BIORAD3 = CreateSelfDescription.Staging.v2_47_5.BIORAD3.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__BIORAD3__QS408M() => _BIORAD3.Staging__v2_47_5__BIORAD3__QS408M(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__BIORAD3__QS408M637406016892454000__ReactorAndRDS() + { + DateTime dateTime; + string check = "*.txt"; + bool validatePDSF = false; + _BIORAD3.Staging__v2_47_5__BIORAD3__QS408M(); + MethodBase methodBase = new StackFrame().GetMethod(); + string[] variables = _BIORAD3.AdaptationTesting.GetVariables(methodBase, check); + IFileRead fileRead = _BIORAD3.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF); + } + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Extract/Staging/v2.47.5/MET08THFTIRQS408M.cs b/Adaptation/_Tests/Extract/Staging/v2.47.5/MET08THFTIRQS408M.cs new file mode 100644 index 0000000..e732708 --- /dev/null +++ b/Adaptation/_Tests/Extract/Staging/v2.47.5/MET08THFTIRQS408M.cs @@ -0,0 +1,106 @@ +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_47_5; + +[TestClass] +public class MET08THFTIRQS408M +{ + +#pragma warning disable CA2254 +#pragma warning disable IDE0060 + + private static CreateSelfDescription.Staging.v2_47_5.MET08THFTIRQS408M _MET08THFTIRQS408M; + + [ClassInitialize] + public static void ClassInitialize(TestContext testContext) + { + CreateSelfDescription.Staging.v2_47_5.MET08THFTIRQS408M.ClassInitialize(testContext); + _MET08THFTIRQS408M = CreateSelfDescription.Staging.v2_47_5.MET08THFTIRQS408M.EAFLoggingUnitTesting; + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__MoveMatchingFiles() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__MoveMatchingFiles(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__OpenInsightMetrologyViewer() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__OpenInsightMetrologyViewer(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__IQSSi() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__IQSSi(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__OpenInsight() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__OpenInsight(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__OpenInsight638042558563679143__IqsSql() + { + DateTime dateTime; + string check = "*.pdsf"; + MethodBase methodBase = new StackFrame().GetMethod(); + _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__OpenInsight(); + string[] variables = _MET08THFTIRQS408M.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false); + IFileRead fileRead = _MET08THFTIRQS408M.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); + Logistics logistics = new(fileRead); + dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: string.Empty); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + dateTime = FileHandlers.QS408M.ProcessData.GetDateTime(logistics, tickOffset: 0, dateTimeText: "Tue Nov 10 12:03:56 1970"); + Assert.IsTrue(dateTime == logistics.DateTimeFromSequence); + _ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics); + } + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__OpenInsightMetrologyViewerAttachments(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__APC() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__APC(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__SPaCe() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__SPaCe(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__Processed() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__Processed(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__Archive() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__Archive(); + +#if DEBUG + [Ignore] +#endif + [TestMethod] + public void Staging__v2_47_5__MET08THFTIRQS408M__Dummy() => _MET08THFTIRQS408M.Staging__v2_47_5__MET08THFTIRQS408M__Dummy(); + +} \ No newline at end of file diff --git a/Adaptation/_Tests/Static/MET08THFTIRQS408M.cs b/Adaptation/_Tests/Static/MET08THFTIRQS408M.cs index 2578a73..a0a1ded 100644 --- a/Adaptation/_Tests/Static/MET08THFTIRQS408M.cs +++ b/Adaptation/_Tests/Static/MET08THFTIRQS408M.cs @@ -45,9 +45,7 @@ public class MET08THFTIRQS408M : LoggingUnitTesting, IDisposable Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString()); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging() { diff --git a/Adaptation/_Tests/Static/QS408M.cs b/Adaptation/_Tests/Static/QS408M.cs index 7d176ec..54d6609 100644 --- a/Adaptation/_Tests/Static/QS408M.cs +++ b/Adaptation/_Tests/Static/QS408M.cs @@ -136,9 +136,7 @@ public class QS408M : LoggingUnitTesting, IDisposable LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit")); } -#if DEBUG [Ignore] -#endif [TestMethod] public void Staging() {