ADO 126448
This commit is contained in:
@ -125,5 +125,27 @@ public class BIORAD2
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void Production__v2_57_0__BIORAD2__QS408M638635290101315251__ADO126448()
|
||||
{
|
||||
DateTime dateTime;
|
||||
string check = "*.txt";
|
||||
bool validatePDSF = false;
|
||||
_BIORAD2.Production__v2_57_0__BIORAD2__QS408M();
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
string[] variables = _BIORAD2.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
|
||||
IFileRead fileRead = _BIORAD2.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);
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
@ -54,6 +54,16 @@ public class QS408M : LoggingUnitTesting, IDisposable
|
||||
Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString());
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestDateTimeB()
|
||||
{
|
||||
DateTime dateTimeA = new(1970, 01, 01);
|
||||
DateTime dateTimeB = new(2024, 09, 19, 10, 41, 16);
|
||||
TimeSpan timeSpan = new(dateTimeB.Ticks - dateTimeA.Ticks);
|
||||
long infinityQS = (long)Math.Floor(timeSpan.TotalSeconds);
|
||||
Assert.IsTrue(infinityQS == 1726767676);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestDescriptor()
|
||||
{
|
||||
|
Reference in New Issue
Block a user