#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_59_0; [TestClass] public class TRENDLOG { #pragma warning disable CA2254 #pragma warning disable IDE0060 private static CreateSelfDescription.Production.v2_59_0.TRENDLOG _TRENDLOG; [ClassInitialize] public static void ClassInitialize(TestContext testContext) { CreateSelfDescription.Production.v2_59_0.TRENDLOG.ClassInitialize(testContext); _TRENDLOG = CreateSelfDescription.Production.v2_59_0.TRENDLOG.EAFLoggingUnitTesting; } private static void NonThrowTryCatch() { try { throw new Exception(); } catch (Exception) { } } #if DEBUG [Ignore] #endif [TestMethod] public void Production__v2_59_0__TRENDLOG__csv() => _TRENDLOG.Production__v2_59_0__TRENDLOG__csv(); #if DEBUG [Ignore] #endif [TestMethod] public void Production__v2_59_0__TRENDLOG__csv638465291633220310__Normal() { bool validatePDSF = false; string check = "*.csv.trg"; _TRENDLOG.Production__v2_59_0__TRENDLOG__csv(); MethodBase methodBase = new StackFrame().GetMethod(); // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg"; Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); Tuple> extractResult = fileRead.ReExtract(); Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); Assert.IsNotNull(extractResult.Item3); Assert.IsNotNull(extractResult.Item4); NonThrowTryCatch(); } #if DEBUG [Ignore] #endif [TestMethod] public void Production__v2_59_0__TRENDLOG__csv638465291633220312__Normal() { bool validatePDSF = false; string check = "*.csv.trg"; _TRENDLOG.Production__v2_59_0__TRENDLOG__csv(); MethodBase methodBase = new StackFrame().GetMethod(); // string check = "Dev *, A*, present-value, *D*-*-*-*.csv.trg"; Assert.IsFalse(string.IsNullOrEmpty(_TRENDLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); string[] variables = _TRENDLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); IFileRead fileRead = _TRENDLOG.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false); Tuple> extractResult = fileRead.ReExtract(); Assert.IsFalse(string.IsNullOrEmpty(extractResult?.Item1)); Assert.IsNotNull(extractResult.Item3); Assert.IsNotNull(extractResult.Item4); NonThrowTryCatch(); } } #endif