Files
.vscode
Adaptation
.config
.vscode
Eaf
FileHandlers
Ifx
Infineon
PeerGroup
Shared
_Tests
CreateSelfDescription
Extract
Development
v2.49.0
v2.49.2
v2.52.0
v2.56.0
ALIGNMENT-EQPT.cs
ALIGNMENT.cs
BACKLOG-EQPT.cs
BACKLOG.cs
MESAFIBACKLOG.cs
v2.57.0
v2.58.0
v2.59.0
Shared
Static
.editorconfig
MESAFIBACKLOG-Development.yml
MESAFIBACKLOG.Tests.csproj
MESAFIBACKLOG.yml
appsettings.Development.json
appsettings.json
package.json
FileHandlers
Properties
Shared
.gitignore
MESAFIBACKLOG.csproj
README.md
2024-08-19 16:52:25 -07:00

60 lines
2.1 KiB
C#

#if v2_56_0
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.Development.v2_56_0;
[TestClass]
public class BACKLOG
{
#pragma warning disable CA2254
#pragma warning disable IDE0060
private static CreateSelfDescription.Development.v2_56_0.BACKLOG _BACKLOG;
[ClassInitialize]
public static void ClassInitialize(TestContext testContext)
{
CreateSelfDescription.Development.v2_56_0.BACKLOG.ClassInitialize(testContext);
_BACKLOG = CreateSelfDescription.Development.v2_56_0.BACKLOG.EAFLoggingUnitTesting;
}
private static void NonThrowTryCatch()
{
try
{ throw new Exception(); }
catch (Exception) { }
}
[Ignore]
[TestMethod]
public void Development__v2_56_0__BACKLOG__ConvertExcelToJson() => _BACKLOG.Development__v2_56_0__BACKLOG__ConvertExcelToJson();
[Ignore]
[TestMethod]
public void Development__v2_56_0__BACKLOG__ConvertExcelToJson637961178824025822__Normal()
{
string check = "*.xlsx";
bool validatePDSF = false;
MethodBase methodBase = new StackFrame().GetMethod();
_BACKLOG.Development__v2_56_0__BACKLOG__ConvertExcelToJson();
Assert.IsFalse(string.IsNullOrEmpty(_BACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName));
string[] variables = _BACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF);
IFileRead fileRead = _BACKLOG.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