SRP, nuget server name, _Details from details, WMO and

Static bump
This commit is contained in:
2023-05-17 13:20:43 -07:00
parent 1d4c45210d
commit cc900bea27
11 changed files with 79 additions and 30 deletions

View File

@ -23,6 +23,13 @@ public class CDE5
_CDE5 = CreateSelfDescription.Staging.v2_49_0.CDE5.EAFLoggingUnitTesting;
}
private static void NonThrowTryCatch()
{
try
{ throw new Exception(); }
catch (Exception) { }
}
#if DEBUG
[Ignore]
#endif
@ -49,6 +56,25 @@ public class CDE5
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
dateTime = FileHandlers.RsM.ProcessData.GetDateTime(logistics, "00:13 09/27/38");
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
NonThrowTryCatch();
}
#if DEBUG
[Ignore]
#endif
[TestMethod]
public void Staging__v2_49_0__CDE5__RsM638181148290431160__WMO()
{
string check = "*.RsM";
bool validatePDSF = false;
_CDE5.Staging__v2_49_0__CDE5__RsM();
MethodBase methodBase = new StackFrame().GetMethod();
Assert.IsFalse(string.IsNullOrEmpty(_CDE5.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
string[] variables = _CDE5.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
IFileRead fileRead = _CDE5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
Logistics logistics = new(fileRead);
_ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics, validatePDSF);
NonThrowTryCatch();
}
}

View File

@ -55,7 +55,7 @@ public class MET08RESIMAPCDE : LoggingUnitTesting, IDisposable
StringBuilder results = new();
(string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
{
new("MET08RESIMAPCDE", "v2.47.5"),
new("MET08RESIMAPCDE", "v2.49.0"),
};
string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2";
Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;

View File

@ -38,6 +38,13 @@ public class RsM : LoggingUnitTesting, IDisposable
LoggingUnitTesting?.Dispose();
}
private static void NonThrowTryCatch()
{
try
{ throw new Exception(); }
catch (Exception) { }
}
[TestMethod]
public void TestDateTime()
{
@ -150,10 +157,10 @@ public class RsM : LoggingUnitTesting, IDisposable
Assert.IsTrue(descriptor.Reactor is "75");
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
descriptor = FileHandlers.RsM.ProcessData.GetDescriptor("p5801");
Assert.IsTrue(descriptor.Run == "P5801");
descriptor = FileHandlers.RsM.ProcessData.GetDescriptor("P5801");
Assert.IsTrue(descriptor.Run == "P5801");
descriptor = FileHandlers.RsM.ProcessData.GetDescriptor("B48");
Assert.IsTrue(descriptor.Run == "B48");
descriptor = FileHandlers.RsM.ProcessData.GetDescriptor("B48");
Assert.IsTrue(descriptor.Run == "B48");
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
@ -161,6 +168,7 @@ public class RsM : LoggingUnitTesting, IDisposable
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
NonThrowTryCatch();
}
#if DEBUG
@ -173,14 +181,14 @@ public class RsM : LoggingUnitTesting, IDisposable
StringBuilder results = new();
(string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
{
new("CDE3", "v2.47.5"),
new("CDE4", "v2.47.5"),
new("CDE5", "v2.47.5"),
new("CDE6", "v2.47.5"),
new("CDE3-EQPT", "v2.47.0"),
new("CDE4-EQPT", "v2.47.0"),
new("CDE5-EQPT", "v2.47.0"),
new("CDE6-EQPT", "v2.47.2"),
new("CDE3", "v2.49.0"),
new("CDE4", "v2.49.0"),
new("CDE5", "v2.49.0"),
new("CDE6", "v2.49.0"),
new("CDE3-EQPT", "v2.49.0"),
new("CDE4-EQPT", "v2.49.0"),
new("CDE5-EQPT", "v2.49.0"),
new("CDE6-EQPT", "v2.49.0"),
};
string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2";
Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;

View File

@ -38,6 +38,13 @@ public class TXT : LoggingUnitTesting, IDisposable
LoggingUnitTesting?.Dispose();
}
private static void NonThrowTryCatch()
{
try
{ throw new Exception(); }
catch (Exception) { }
}
[TestMethod]
public void TestDateTime()
{
@ -171,10 +178,10 @@ public class TXT : LoggingUnitTesting, IDisposable
Assert.IsTrue(descriptor.Reactor is "75");
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
descriptor = FileHandlers.txt.ProcessData.GetDescriptor("p5801");
Assert.IsTrue(descriptor.Run == "P5801");
descriptor = FileHandlers.txt.ProcessData.GetDescriptor("P5801");
Assert.IsTrue(descriptor.Run == "P5801");
descriptor = FileHandlers.txt.ProcessData.GetDescriptor("B48");
Assert.IsTrue(descriptor.Run == "B48");
descriptor = FileHandlers.txt.ProcessData.GetDescriptor("B48");
Assert.IsTrue(descriptor.Run == "B48");
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
@ -182,6 +189,7 @@ public class TXT : LoggingUnitTesting, IDisposable
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
NonThrowTryCatch();
}
#if DEBUG
@ -194,7 +202,7 @@ public class TXT : LoggingUnitTesting, IDisposable
StringBuilder results = new();
(string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[]
{
new("CDE2", "v2.47.5"),
new("CDE2", "v2.49.0"),
};
string staging = "http://mestsa07ec.ec.local:9003/CellInstanceServiceV2";
Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion;