Infineon.EAF.Runtime v2.60.0
This commit is contained in:
29
Adaptation/_Tests/Extract/Production/v2.60.0/MET08AWCT.cs
Normal file
29
Adaptation/_Tests/Extract/Production/v2.60.0/MET08AWCT.cs
Normal file
@ -0,0 +1,29 @@
|
||||
#if true
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace Adaptation._Tests.Extract.Production.v2_60_0;
|
||||
|
||||
[TestClass]
|
||||
public class MET08AWCT
|
||||
{
|
||||
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
private static CreateSelfDescription.Production.v2_60_0.MET08AWCT _MET08AWCT;
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
CreateSelfDescription.Production.v2_60_0.MET08AWCT.ClassInitialize(testContext);
|
||||
_MET08AWCT = CreateSelfDescription.Production.v2_60_0.MET08AWCT.EAFLoggingUnitTesting;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void Production__v2_60_0__MET08AWCT__ZipFilesByDate() => _MET08AWCT.Production__v2_60_0__MET08AWCT__ZipFilesByDate();
|
||||
|
||||
}
|
||||
#endif
|
@ -0,0 +1,62 @@
|
||||
#if true
|
||||
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 Adaptation._Tests.Extract.Production.v2_60_0;
|
||||
|
||||
[TestClass]
|
||||
public class WC6INCH1_EQPT
|
||||
{
|
||||
|
||||
#pragma warning disable CA2254
|
||||
#pragma warning disable IDE0060
|
||||
|
||||
private static CreateSelfDescription.Production.v2_60_0.WC6INCH1_EQPT _WC6INCH1_EQPT;
|
||||
|
||||
[ClassInitialize]
|
||||
public static void ClassInitialize(TestContext testContext)
|
||||
{
|
||||
CreateSelfDescription.Production.v2_60_0.WC6INCH1_EQPT.ClassInitialize(testContext);
|
||||
_WC6INCH1_EQPT = CreateSelfDescription.Production.v2_60_0.WC6INCH1_EQPT.EAFLoggingUnitTesting;
|
||||
}
|
||||
|
||||
private static void NonThrowTryCatch()
|
||||
{
|
||||
try
|
||||
{ throw new Exception(); }
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
[Ignore]
|
||||
#endif
|
||||
[TestMethod]
|
||||
public void Production__v2_60_0__WC6INCH1_EQPT__ConvertExcelToJson() => _WC6INCH1_EQPT.Production__v2_60_0__WC6INCH1_EQPT__ConvertExcelToJson();
|
||||
|
||||
[Ignore]
|
||||
[TestMethod]
|
||||
public void Production__v2_60_0__WC6INCH1_EQPT__ConvertExcelToJson637961178824025822__Normal()
|
||||
{
|
||||
string check = "*.wc";
|
||||
bool validatePDSF = false;
|
||||
MethodBase methodBase = new StackFrame().GetMethod();
|
||||
_WC6INCH1_EQPT.Production__v2_60_0__WC6INCH1_EQPT__ConvertExcelToJson();
|
||||
Assert.IsFalse(string.IsNullOrEmpty(_WC6INCH1_EQPT.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
|
||||
string[] variables = _WC6INCH1_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
|
||||
IFileRead fileRead = _WC6INCH1_EQPT.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.IsNotNull(extractResult.Item3);
|
||||
Assert.IsNotNull(extractResult.Item4);
|
||||
NonThrowTryCatch();
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user