Ready to test

This commit is contained in:
2022-02-18 16:43:19 -07:00
parent 5183414f2b
commit 112cc94296
120 changed files with 13406 additions and 5361 deletions

View File

@ -0,0 +1,32 @@
using Adaptation.Shared;
using Adaptation.Shared.Methods;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Text.Json;
namespace _Tests.Extract.Staging.v2_39_0;
[TestClass]
public class HGCV3_EQPT
{
#pragma warning disable CA2254
#pragma warning disable IDE0060
private static CreateSelfDescription.Staging.v2_39_0.HGCV3_EQPT _HGCV3_EQPT;
[ClassInitialize]
public static void ClassInitialize(TestContext testContext)
{
CreateSelfDescription.Staging.v2_39_0.HGCV3_EQPT.ClassInitialize(testContext);
_HGCV3_EQPT = CreateSelfDescription.Staging.v2_39_0.HGCV3_EQPT.EAFLoggingUnitTesting;
}
[TestMethod]
public void Staging__v2_39_0__HGCV3_EQPT__DownloadRsMFile() => _HGCV3_EQPT.Staging__v2_39_0__HGCV3_EQPT__DownloadRsMFile();
}

View File

@ -0,0 +1,32 @@
using Adaptation.Shared;
using Adaptation.Shared.Methods;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Text.Json;
namespace _Tests.Extract.Staging.v2_39_0;
[TestClass]
public class HGCV3
{
#pragma warning disable CA2254
#pragma warning disable IDE0060
private static CreateSelfDescription.Staging.v2_39_0.HGCV3 _HGCV3;
[ClassInitialize]
public static void ClassInitialize(TestContext testContext)
{
CreateSelfDescription.Staging.v2_39_0.HGCV3.ClassInitialize(testContext);
_HGCV3 = CreateSelfDescription.Staging.v2_39_0.HGCV3.EAFLoggingUnitTesting;
}
[TestMethod]
public void Staging__v2_39_0__HGCV3__RsM() => _HGCV3.Staging__v2_39_0__HGCV3__RsM();
}

View File

@ -0,0 +1,82 @@
using Adaptation.Shared;
using Adaptation.Shared.Methods;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Text.Json;
namespace _Tests.Extract.Staging.v2_39_0;
[TestClass]
public class MET08RESIHGCV
{
#pragma warning disable CA2254
#pragma warning disable IDE0060
private static CreateSelfDescription.Staging.v2_39_0.MET08RESIHGCV _MET08RESIHGCV;
[ClassInitialize]
public static void ClassInitialize(TestContext testContext)
{
CreateSelfDescription.Staging.v2_39_0.MET08RESIHGCV.ClassInitialize(testContext);
_MET08RESIHGCV = CreateSelfDescription.Staging.v2_39_0.MET08RESIHGCV.EAFLoggingUnitTesting;
}
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV();
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV637710931421087642__Normal()
{
string check = "~IsXToOpenInsightMetrologyViewer";
MethodBase methodBase = new StackFrame().GetMethod();
_MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV();
string[] variables = _MET08RESIHGCV.AdaptationTesting.GetVariables(methodBase, check);
Tuple<string, string[], string[]> pdsf = Helpers.Metrology.GetLogisticsColumnsAndBody(variables[2], variables[4]);
IFileRead fileRead = _MET08RESIHGCV.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
Tuple<string, Test[], JsonElement[], List<FileInfo>> extractResult = fileRead.ReExtract();
Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1));
Assert.IsTrue(extractResult.Item3.Length > 0, "extractResult Array Length check!");
Assert.IsNotNull(extractResult.Item4);
Logistics logistics = new(fileRead);
Tuple<string, string[], string[]> pdsfNew = Helpers.Metrology.GetLogisticsColumnsAndBody(fileRead, logistics, extractResult, pdsf);
Helpers.Metrology.CompareSave(variables[5], pdsf, pdsfNew);
Assert.IsTrue(pdsf.Item1 == pdsfNew.Item1, "Item1 check!");
string[] json = Helpers.Metrology.GetItem2(pdsf, pdsfNew);
Helpers.Metrology.CompareSaveJSON(variables[5], json);
Assert.IsTrue(json[0] == json[1], "Item2 check!");
string[] join = Helpers.Metrology.GetItem3(pdsf, pdsfNew);
Helpers.Metrology.CompareSaveTSV(variables[5], join);
Assert.IsTrue(join[0] == join[1], "Item3 (Join) check!");
Helpers.Metrology.UpdatePassDirectory(variables[2]);
}
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV_() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV_();
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV__() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV__();
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV___() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV___();
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV____() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV____();
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV_____() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV_____();
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV______() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV______();
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV_______() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV_______();
[TestMethod]
public void Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV________() => _MET08RESIHGCV.Staging__v2_39_0__MET08RESIHGCV__MET08RESIHGCV________();
}