Duplicator and now deleting if not sending to EDA
This commit is contained in:
@ -1,171 +0,0 @@
|
||||
using Adaptation.Shared.Methods;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Shared;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_0;
|
||||
|
||||
[TestClass]
|
||||
public class DEP08SIASM : EAFLoggingUnitTesting
|
||||
{
|
||||
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
internal static DEP08SIASM EAFLoggingUnitTesting { get; private set; }
|
||||
|
||||
public DEP08SIASM() : base(testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||
{
|
||||
if (EAFLoggingUnitTesting is null)
|
||||
throw new Exception();
|
||||
}
|
||||
|
||||
public DEP08SIASM(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
|
||||
{
|
||||
}
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
if (EAFLoggingUnitTesting is null)
|
||||
EAFLoggingUnitTesting = new DEP08SIASM(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()
|
||||
{
|
||||
if (EAFLoggingUnitTesting.Logger is not null)
|
||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
||||
if (EAFLoggingUnitTesting is not null)
|
||||
EAFLoggingUnitTesting.Dispose();
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM()
|
||||
{
|
||||
string check = "~EDA-IQS";
|
||||
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));
|
||||
Assert.IsTrue(fileNameAndJson[1].Contains("DEP08SIASM"));
|
||||
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||
IFileRead fileRead = EAFLoggingUnitTesting.AdaptationTesting.Get(methodBase, sourceFileLocation: string.Empty, sourceFileFilter: string.Empty, useCyclicalForDescription: false);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(fileRead.CellInstanceConnectionName));
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM_()
|
||||
{
|
||||
string check = "~IQS-OpenInsight";
|
||||
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));
|
||||
Assert.IsTrue(fileNameAndJson[1].Contains("DEP08SIASM-"));
|
||||
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||
IFileRead fileRead = EAFLoggingUnitTesting.AdaptationTesting.Get(methodBase, sourceFileLocation: string.Empty, sourceFileFilter: string.Empty, useCyclicalForDescription: false);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(fileRead.CellInstanceConnectionName));
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM__()
|
||||
{
|
||||
string check = "~OpenInsight-APC";
|
||||
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));
|
||||
Assert.IsTrue(fileNameAndJson[1].Contains("DEP08SIASM--"));
|
||||
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||
IFileRead fileRead = EAFLoggingUnitTesting.AdaptationTesting.Get(methodBase, sourceFileLocation: string.Empty, sourceFileFilter: string.Empty, useCyclicalForDescription: false);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(fileRead.CellInstanceConnectionName));
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM___()
|
||||
{
|
||||
string check = "~APC-SPaCe";
|
||||
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));
|
||||
Assert.IsTrue(fileNameAndJson[1].Contains("DEP08SIASM---"));
|
||||
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||
IFileRead fileRead = EAFLoggingUnitTesting.AdaptationTesting.Get(methodBase, sourceFileLocation: string.Empty, sourceFileFilter: string.Empty, useCyclicalForDescription: false);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(fileRead.CellInstanceConnectionName));
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM____()
|
||||
{
|
||||
string check = "~SPaCe-SPaCe Villach";
|
||||
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));
|
||||
Assert.IsTrue(fileNameAndJson[1].Contains("DEP08SIASM----"));
|
||||
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||
IFileRead fileRead = EAFLoggingUnitTesting.AdaptationTesting.Get(methodBase, sourceFileLocation: string.Empty, sourceFileFilter: string.Empty, useCyclicalForDescription: false);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(fileRead.CellInstanceConnectionName));
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM_____()
|
||||
{
|
||||
string check = "~SPaCe Villach-Archive";
|
||||
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));
|
||||
Assert.IsTrue(fileNameAndJson[1].Contains("DEP08SIASM-----"));
|
||||
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||
IFileRead fileRead = EAFLoggingUnitTesting.AdaptationTesting.Get(methodBase, sourceFileLocation: string.Empty, sourceFileFilter: string.Empty, useCyclicalForDescription: false);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(fileRead.CellInstanceConnectionName));
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM______()
|
||||
{
|
||||
string check = "~Archive";
|
||||
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));
|
||||
Assert.IsTrue(fileNameAndJson[1].Contains("DEP08SIASM------"));
|
||||
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||
IFileRead fileRead = EAFLoggingUnitTesting.AdaptationTesting.Get(methodBase, sourceFileLocation: string.Empty, sourceFileFilter: string.Empty, useCyclicalForDescription: false);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(fileRead.CellInstanceConnectionName));
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM_______()
|
||||
{
|
||||
string check = "~IsDummy";
|
||||
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));
|
||||
Assert.IsTrue(fileNameAndJson[1].Contains("DEP08SIASM-------"));
|
||||
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||
IFileRead fileRead = EAFLoggingUnitTesting.AdaptationTesting.Get(methodBase, sourceFileLocation: string.Empty, sourceFileFilter: string.Empty, useCyclicalForDescription: false);
|
||||
Assert.IsFalse(string.IsNullOrEmpty(fileRead.CellInstanceConnectionName));
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,144 @@
|
||||
using Adaptation.Shared.Methods;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Shared;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class DEP08SIASM : EAFLoggingUnitTesting
|
||||
{
|
||||
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
internal static DEP08SIASM EAFLoggingUnitTesting { get; private set; }
|
||||
|
||||
public DEP08SIASM() : base(testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||
{
|
||||
if (EAFLoggingUnitTesting is null)
|
||||
throw new Exception();
|
||||
}
|
||||
|
||||
public DEP08SIASM(TestContext testContext) : base(testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
|
||||
{
|
||||
}
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
if (EAFLoggingUnitTesting is null)
|
||||
EAFLoggingUnitTesting = new DEP08SIASM(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()
|
||||
{
|
||||
if (EAFLoggingUnitTesting.Logger is not null)
|
||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
||||
if (EAFLoggingUnitTesting is not null)
|
||||
EAFLoggingUnitTesting.Dispose();
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM()
|
||||
{
|
||||
string check = "~IsXToOpenInsightMetrologyViewer";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM_()
|
||||
{
|
||||
string check = "~IsXToIQSSi";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM__()
|
||||
{
|
||||
string check = "~IsXToOpenInsight";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM___()
|
||||
{
|
||||
string check = "~IsXToOpenInsightMetrologyViewerAttachments";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM____()
|
||||
{
|
||||
string check = "~IsXToAPC";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM_____()
|
||||
{
|
||||
string check = "~IsXToSPaCe";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM______()
|
||||
{
|
||||
string check = "~IsXToArchive";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM_______()
|
||||
{
|
||||
string check = "~IsArchive";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM________()
|
||||
{
|
||||
string check = "~IsDummy";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||
_ = Helpers.Deposition.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||
}
|
||||
|
||||
}
|
@ -7,7 +7,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_0;
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class R34_EQPT : EAFLoggingUnitTesting
|
||||
@ -49,7 +49,7 @@ public class R34_EQPT : EAFLoggingUnitTesting
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R34_EQPT__DownloadJpegFile()
|
||||
public void Staging__v2_39_2__R34_EQPT__DownloadJpegFile()
|
||||
{
|
||||
string check = ".jpeg";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
@ -7,7 +7,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_0;
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class R34 : EAFLoggingUnitTesting
|
||||
@ -49,7 +49,7 @@ public class R34 : EAFLoggingUnitTesting
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R34__jpeg()
|
||||
public void Staging__v2_39_2__R34__jpeg()
|
||||
{
|
||||
string check = "*.jpeg";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
@ -7,7 +7,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_0;
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class R36_EQPT : EAFLoggingUnitTesting
|
||||
@ -49,7 +49,7 @@ public class R36_EQPT : EAFLoggingUnitTesting
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R36_EQPT__DownloadJpegFile()
|
||||
public void Staging__v2_39_2__R36_EQPT__DownloadJpegFile()
|
||||
{
|
||||
string check = ".jpeg";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
@ -7,7 +7,7 @@ using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_0;
|
||||
namespace _Tests.CreateSelfDescription.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class R36 : EAFLoggingUnitTesting
|
||||
@ -49,7 +49,7 @@ public class R36 : EAFLoggingUnitTesting
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R36__jpeg()
|
||||
public void Staging__v2_39_2__R36__jpeg()
|
||||
{
|
||||
string check = "*.jpeg";
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
@ -1,89 +0,0 @@
|
||||
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 DEP08SIASM
|
||||
{
|
||||
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
private static CreateSelfDescription.Staging.v2_39_0.DEP08SIASM _DEP08SIASM;
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
CreateSelfDescription.Staging.v2_39_0.DEP08SIASM.ClassInitialize(testContext);
|
||||
_DEP08SIASM = CreateSelfDescription.Staging.v2_39_0.DEP08SIASM.EAFLoggingUnitTesting;
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM() => _DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM637535051877475932__Health()
|
||||
{
|
||||
string check = "~EDA-IQS";
|
||||
_DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM();
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
string[] variables = _DEP08SIASM.AdaptationTesting.GetVariables(methodBase, check);
|
||||
IFileRead fileRead = _DEP08SIASM.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||
Logistics logistics = new(fileRead);
|
||||
_ = Helpers.Deposition.ReExtractComapareUpdatePassDirectory(variables, fileRead, logistics);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM637535051877475932__XML()
|
||||
{
|
||||
string check = "~EDA-IQS";
|
||||
_DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM();
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
string[] variables = _DEP08SIASM.AdaptationTesting.GetVariables(methodBase, check);
|
||||
IFileRead fileRead = _DEP08SIASM.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||
Logistics logistics = new(fileRead);
|
||||
_ = Helpers.Deposition.ReExtractComapareUpdatePassDirectory(variables, fileRead, logistics);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM_() => _DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM_();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM_637535051877475932__Health()
|
||||
{
|
||||
string check = "~IQS-OpenInsight";
|
||||
_DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM_();
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
string[] variables = _DEP08SIASM.AdaptationTesting.GetVariables(methodBase, check);
|
||||
IFileRead fileRead = _DEP08SIASM.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||
Logistics logistics = new(fileRead);
|
||||
_ = Helpers.Deposition.ReExtractComapareUpdatePassDirectory(variables, fileRead, logistics);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM__() => _DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM__();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM___() => _DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM___();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM____() => _DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM____();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM_____() => _DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM_____();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM______() => _DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM______();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__DEP08SIASM__DEP08SIASM_______() => _DEP08SIASM.Staging__v2_39_0__DEP08SIASM__DEP08SIASM_______();
|
||||
|
||||
}
|
68
Adaptation/_Tests/Extract/Staging/v2.39.2/DEP08SIASM.cs
Normal file
68
Adaptation/_Tests/Extract/Staging/v2.39.2/DEP08SIASM.cs
Normal file
@ -0,0 +1,68 @@
|
||||
using Adaptation.Shared;
|
||||
using Adaptation.Shared.Methods;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Shared;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
using System.Threading;
|
||||
|
||||
namespace _Tests.Extract.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class DEP08SIASM
|
||||
{
|
||||
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
private static CreateSelfDescription.Staging.v2_39_2.DEP08SIASM _DEP08SIASM;
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
CreateSelfDescription.Staging.v2_39_2.DEP08SIASM.ClassInitialize(testContext);
|
||||
_DEP08SIASM = CreateSelfDescription.Staging.v2_39_2.DEP08SIASM.EAFLoggingUnitTesting;
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM() => _DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM_() => _DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM_();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM__() => _DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM__();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM__637825304581476827__Normal()
|
||||
{
|
||||
string check = "~IsXToOpenInsight";
|
||||
_DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM__();
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
string[] variables = _DEP08SIASM.AdaptationTesting.GetVariables(methodBase, check);
|
||||
IFileRead fileRead = _DEP08SIASM.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||
Logistics logistics = new(fileRead);
|
||||
_ = Helpers.Deposition.ReExtractComapareUpdatePassDirectory(variables, fileRead, logistics);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM___() => _DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM___();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM____() => _DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM____();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM_____() => _DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM_____();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM______() => _DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM______();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_2__DEP08SIASM__DEP08SIASM_______() => _DEP08SIASM.Staging__v2_39_2__DEP08SIASM__DEP08SIASM_______();
|
||||
|
||||
}
|
@ -8,7 +8,7 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace _Tests.Extract.Staging.v2_39_0;
|
||||
namespace _Tests.Extract.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class R34_EQPT
|
||||
@ -17,19 +17,19 @@ public class R34_EQPT
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
private static CreateSelfDescription.Staging.v2_39_0.R34_EQPT _R34_EQPT;
|
||||
private static CreateSelfDescription.Staging.v2_39_2.R34_EQPT _R34_EQPT;
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
CreateSelfDescription.Staging.v2_39_0.R34_EQPT.ClassInitialize(testContext);
|
||||
_R34_EQPT = CreateSelfDescription.Staging.v2_39_0.R34_EQPT.EAFLoggingUnitTesting;
|
||||
CreateSelfDescription.Staging.v2_39_2.R34_EQPT.ClassInitialize(testContext);
|
||||
_R34_EQPT = CreateSelfDescription.Staging.v2_39_2.R34_EQPT.EAFLoggingUnitTesting;
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R34_EQPT__DownloadJpegFile() => _R34_EQPT.Staging__v2_39_0__R34_EQPT__DownloadJpegFile();
|
||||
public void Staging__v2_39_2__R34_EQPT__DownloadJpegFile() => _R34_EQPT.Staging__v2_39_2__R34_EQPT__DownloadJpegFile();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R34_EQPT__DownloadJpegFile637812143477007703__Normal() => _R34_EQPT.Staging__v2_39_0__R34_EQPT__DownloadJpegFile();
|
||||
public void Staging__v2_39_2__R34_EQPT__DownloadJpegFile637812143477007703__Normal() => _R34_EQPT.Staging__v2_39_2__R34_EQPT__DownloadJpegFile();
|
||||
|
||||
}
|
@ -8,7 +8,7 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace _Tests.Extract.Staging.v2_39_0;
|
||||
namespace _Tests.Extract.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class R34
|
||||
@ -17,23 +17,23 @@ public class R34
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
private static CreateSelfDescription.Staging.v2_39_0.R34 _R34;
|
||||
private static CreateSelfDescription.Staging.v2_39_2.R34 _R34;
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
CreateSelfDescription.Staging.v2_39_0.R34.ClassInitialize(testContext);
|
||||
_R34 = CreateSelfDescription.Staging.v2_39_0.R34.EAFLoggingUnitTesting;
|
||||
CreateSelfDescription.Staging.v2_39_2.R34.ClassInitialize(testContext);
|
||||
_R34 = CreateSelfDescription.Staging.v2_39_2.R34.EAFLoggingUnitTesting;
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R34__jpeg() => _R34.Staging__v2_39_0__R34__jpeg();
|
||||
public void Staging__v2_39_2__R34__jpeg() => _R34.Staging__v2_39_2__R34__jpeg();
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R34__jpeg637812143477007703__Normal()
|
||||
public void Staging__v2_39_2__R34__jpeg637812143477007703__Normal()
|
||||
{
|
||||
string check = "*.jpeg";
|
||||
_R34.Staging__v2_39_0__R34__jpeg();
|
||||
_R34.Staging__v2_39_2__R34__jpeg();
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
string[] variables = _R34.AdaptationTesting.GetVariables(methodBase, check);
|
||||
IFileRead fileRead = _R34.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
@ -8,7 +8,7 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace _Tests.Extract.Staging.v2_39_0;
|
||||
namespace _Tests.Extract.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class R36_EQPT
|
||||
@ -17,16 +17,16 @@ public class R36_EQPT
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
private static CreateSelfDescription.Staging.v2_39_0.R36_EQPT _R36_EQPT;
|
||||
private static CreateSelfDescription.Staging.v2_39_2.R36_EQPT _R36_EQPT;
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
CreateSelfDescription.Staging.v2_39_0.R36_EQPT.ClassInitialize(testContext);
|
||||
_R36_EQPT = CreateSelfDescription.Staging.v2_39_0.R36_EQPT.EAFLoggingUnitTesting;
|
||||
CreateSelfDescription.Staging.v2_39_2.R36_EQPT.ClassInitialize(testContext);
|
||||
_R36_EQPT = CreateSelfDescription.Staging.v2_39_2.R36_EQPT.EAFLoggingUnitTesting;
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R36_EQPT__DownloadJpegFile() => _R36_EQPT.Staging__v2_39_0__R36_EQPT__DownloadJpegFile();
|
||||
public void Staging__v2_39_2__R36_EQPT__DownloadJpegFile() => _R36_EQPT.Staging__v2_39_2__R36_EQPT__DownloadJpegFile();
|
||||
|
||||
}
|
@ -8,7 +8,7 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace _Tests.Extract.Staging.v2_39_0;
|
||||
namespace _Tests.Extract.Staging.v2_39_2;
|
||||
|
||||
[TestClass]
|
||||
public class R36
|
||||
@ -17,16 +17,16 @@ public class R36
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
private static CreateSelfDescription.Staging.v2_39_0.R36 _R36;
|
||||
private static CreateSelfDescription.Staging.v2_39_2.R36 _R36;
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
CreateSelfDescription.Staging.v2_39_0.R36.ClassInitialize(testContext);
|
||||
_R36 = CreateSelfDescription.Staging.v2_39_0.R36.EAFLoggingUnitTesting;
|
||||
CreateSelfDescription.Staging.v2_39_2.R36.ClassInitialize(testContext);
|
||||
_R36 = CreateSelfDescription.Staging.v2_39_2.R36.EAFLoggingUnitTesting;
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Staging__v2_39_0__R36__jpeg() => _R36.Staging__v2_39_0__R36__jpeg();
|
||||
public void Staging__v2_39_2__R36__jpeg() => _R36.Staging__v2_39_2__R36__jpeg();
|
||||
|
||||
}
|
@ -541,7 +541,7 @@ public class AdaptationTesting : ISMTP
|
||||
{
|
||||
_ = stringBuilder.
|
||||
AppendLine("[TestMethod]").
|
||||
Append("public void ").Append(methodName).Append("() => ").Append('_').Append(cellInstanceNameWithoutHyphen).Append('.').Append(methodName).AppendLine("();");
|
||||
Append("public void ").Append(methodName).Append("() => ").Append('_').Append(cellInstanceNameWithoutHyphen).Append('.').Append(methodName).AppendLine("();").AppendLine();
|
||||
}
|
||||
else if (i == 1)
|
||||
{
|
||||
@ -982,6 +982,8 @@ public class AdaptationTesting : ISMTP
|
||||
throw new Exception("Ticks should only appear once in source file location!");
|
||||
if (segments.Length != 2)
|
||||
throw new Exception("Ticks missing from source file location!");
|
||||
if (segments[1].Contains(ticks))
|
||||
throw new Exception("From source file location path should not contain ticks!");
|
||||
if (!segments[1].EndsWith(methodBaseNameWithActualCICN.Replace(ticks, string.Empty)))
|
||||
throw new Exception("Method name missing from source file location!");
|
||||
sourceFileLocation = lines[0];
|
||||
|
Reference in New Issue
Block a user