195 lines
7.7 KiB
C#
195 lines
7.7 KiB
C#
#if v2_59_0
|
|
using Adaptation._Tests.Shared;
|
|
using Microsoft.Extensions.Logging;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace Adaptation._Tests.CreateSelfDescription.Production.v2_59_0;
|
|
|
|
[TestClass]
|
|
public class MET08RESIHGCV : EAFLoggingUnitTesting
|
|
{
|
|
|
|
#pragma warning disable CA2254
|
|
#pragma warning disable IDE0060
|
|
|
|
internal static string DummyRoot { get; private set; }
|
|
internal static MET08RESIHGCV EAFLoggingUnitTesting { get; private set; }
|
|
|
|
static MET08RESIHGCV() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy";
|
|
|
|
public MET08RESIHGCV() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
|
{
|
|
if (EAFLoggingUnitTesting is null)
|
|
throw new Exception();
|
|
}
|
|
|
|
public MET08RESIHGCV(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
|
|
{
|
|
}
|
|
|
|
[ClassInitialize]
|
|
public static void ClassInitialize(TestContext testContext)
|
|
{
|
|
EAFLoggingUnitTesting ??= new MET08RESIHGCV(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()
|
|
{
|
|
EAFLoggingUnitTesting?.Logger?.LogInformation("Cleanup");
|
|
EAFLoggingUnitTesting?.Dispose();
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__MoveMatchingFiles()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__OpenInsightMetrologyViewer()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__IQSSi()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__OpenInsight()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__OpenInsightMetrologyViewerAttachments()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__APC()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__SPaCe()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__Processed()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__Archive()
|
|
{
|
|
string check = "*.pdsf";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__Dummy()
|
|
{
|
|
string check = "638417860100000000.zip";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
#if DEBUG
|
|
[Ignore]
|
|
#endif
|
|
[TestMethod]
|
|
public void Production__v2_59_0__MET08RESIHGCV__InterceptIQS()
|
|
{
|
|
string check = "HgCV_Unload_Res_9Points*.txt";
|
|
MethodBase methodBase = new StackFrame().GetMethod();
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
|
}
|
|
|
|
}
|
|
#endif |