Compare commits
	
		
			3 Commits
		
	
	
		
			7e38c565f3
			...
			ca4ebff54c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| ca4ebff54c | |||
| 2d82216d25 | |||
| 7bcb87c5e5 | 
							
								
								
									
										14
									
								
								Adaptation/.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								Adaptation/.vscode/tasks.json
									
									
									
									
										vendored
									
									
								
							| @ -78,7 +78,7 @@ | ||||
|             "args": [ | ||||
|                 "/target:Build", | ||||
|                 "/restore:True", | ||||
|                 "/p:RestoreSources=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/%3Bhttps://packagemanagement.eu.infineon.com:4430/api/v2/%3Bhttps://tfs.intra.infineon.com/tfs/FactoryIntegration/_packaging/EAF/nuget/v3/index.json%3Bhttps://tfs.intra.infineon.com/tfs/FactoryIntegration/_packaging/EAF%40Local/nuget/v3/index.json%3Bhttps://api.nuget.org/v3/index.json", | ||||
|                 "/p:RestoreSources=https://artifactory.intra.infineon.com/artifactory/api/nuget/ngt-fi-package-main-vir/%3Bhttps://tfs.intra.infineon.com/tfs/FactoryIntegration/_packaging/EAF/nuget/v3/index.json%3Bhttps://tfs.intra.infineon.com/tfs/FactoryIntegration/_packaging/EAF%40Local/nuget/v3/index.json%3Bhttps://api.nuget.org/v3/index.json", | ||||
|                 "/detailedsummary", | ||||
|                 "/consoleloggerparameters:PerformanceSummary;ErrorsOnly;", | ||||
|                 "/property:Configuration=Debug;TargetFrameworkVersion=v4.8", | ||||
| @ -86,6 +86,18 @@ | ||||
|             ], | ||||
|             "problemMatcher": "$msCompile" | ||||
|         }, | ||||
|         { | ||||
|             "label": "Project", | ||||
|             "type": "shell", | ||||
|             "command": "code ../MESAFIBACKLOG.csproj", | ||||
|             "problemMatcher": [] | ||||
|         }, | ||||
|         { | ||||
|             "label": "Git Config", | ||||
|             "type": "shell", | ||||
|             "command": "code ../.git/config", | ||||
|             "problemMatcher": [] | ||||
|         }, | ||||
|         { | ||||
|             "label": "Kanbn Console", | ||||
|             "type": "npm", | ||||
|  | ||||
| @ -111,8 +111,9 @@ public class FileRead : Shared.FileRead, IFileRead | ||||
|         { | ||||
|             IProcessData iProcessData = new ProcessData(this, _Logistics, _FileConnectorConfiguration.TargetFileLocation, _URL, results.Item4); | ||||
|             if (iProcessData.Details.Count == 0) | ||||
|                 throw new Exception(string.Concat("B) No Data - ", dateTime.Ticks)); | ||||
|             results = iProcessData.GetResults(this, _Logistics, results.Item4); | ||||
|                 results = new(string.Concat("B) No Data - ", dateTime.Ticks), Array.Empty<Test>(), Array.Empty<JsonElement>(), results.Item4); | ||||
|             else | ||||
|                 results = iProcessData.GetResults(this, _Logistics, results.Item4); | ||||
|         } | ||||
|         return results; | ||||
|     } | ||||
|  | ||||
| @ -111,8 +111,9 @@ public class FileRead : Shared.FileRead, IFileRead | ||||
|         { | ||||
|             IProcessData iProcessData = new ProcessData(this, _Logistics, _FileConnectorConfiguration.TargetFileLocation, _URL, results.Item4); | ||||
|             if (iProcessData.Details.Count == 0) | ||||
|                 throw new Exception(string.Concat("B) No Data - ", dateTime.Ticks)); | ||||
|             results = iProcessData.GetResults(this, _Logistics, results.Item4); | ||||
|                 results = new(string.Concat("B) No Data - ", dateTime.Ticks), Array.Empty<Test>(), Array.Empty<JsonElement>(), results.Item4); | ||||
|             else | ||||
|                 results = iProcessData.GetResults(this, _Logistics, results.Item4); | ||||
|         } | ||||
|         return results; | ||||
|     } | ||||
|  | ||||
| @ -115,8 +115,9 @@ public class FileRead : Shared.FileRead, IFileRead | ||||
|         { | ||||
|             IProcessData iProcessData = new ProcessData(this, _Logistics, _FileConnectorConfiguration.TargetFileLocation, _URL, _WorkItemTypes, results.Item4); | ||||
|             if (iProcessData.Details.Count == 0) | ||||
|                 throw new Exception(string.Concat("B) No Data - ", dateTime.Ticks)); | ||||
|             results = iProcessData.GetResults(this, _Logistics, results.Item4); | ||||
|                 results = new(string.Concat("B) No Data - ", dateTime.Ticks), Array.Empty<Test>(), Array.Empty<JsonElement>(), results.Item4); | ||||
|             else | ||||
|                 results = iProcessData.GetResults(this, _Logistics, results.Item4); | ||||
|         } | ||||
|         return results; | ||||
|     } | ||||
|  | ||||
| @ -35,8 +35,7 @@ | ||||
|         <RuntimeHostConfigurationOption Include="AssemblyName" Value="MESAFIBACKLOG" /> | ||||
|     </ItemGroup> | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="coverlet.collector" Version="6.0.2" /> | ||||
|         <PackageReference Include="CommonMark.NET" Version="0.15.1" /> | ||||
|         <PackageReference Include="coverlet.collector" Version="6.0.3" /> | ||||
|         <PackageReference Include="FFMpegCore" Version="5.1.0" /> | ||||
|         <PackageReference Include="IKVM.AWT.WinForms" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|         <PackageReference Include="IKVM.OpenJDK.Core" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
| @ -45,29 +44,32 @@ | ||||
|         <PackageReference Include="IKVM.OpenJDK.Util" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|         <PackageReference Include="IKVM.OpenJDK.XML.API" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|         <PackageReference Include="IKVM.Runtime" Version="7.2.4630.5"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|         <PackageReference Include="Instances" Version="3.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.2" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="8.0.1" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.json" Version="8.0.1" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.1" /> | ||||
|         <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" /> | ||||
|         <PackageReference Include="Microsoft.Win32.SystemEvents" Version="8.0.0" /> | ||||
|         <PackageReference Include="MSTest.TestAdapter" Version="3.6.1" /> | ||||
|         <PackageReference Include="MSTest.TestFramework" Version="3.6.1" /> | ||||
|         <PackageReference Include="Instances" Version="3.0.1" /> | ||||
|         <PackageReference Include="log4net" Version="3.0.3"></PackageReference> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration.json" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Configuration" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" /> | ||||
|         <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" /> | ||||
|         <PackageReference Include="Microsoft.Win32.SystemEvents" Version="9.0.0" /> | ||||
|         <PackageReference Include="MSTest.TestAdapter" Version="3.7.0" /> | ||||
|         <PackageReference Include="MSTest.TestFramework" Version="3.7.0" /> | ||||
|         <PackageReference Include="Pdfbox" Version="1.1.1"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|         <PackageReference Include="RoboSharp" Version="1.5.3" /> | ||||
|         <PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.1" /> | ||||
|         <PackageReference Include="System.Data.OleDb" Version="8.0.1" /> | ||||
|         <PackageReference Include="RoboSharp" Version="1.6.0" /> | ||||
|         <PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" /> | ||||
|         <PackageReference Include="System.Data.OleDb" Version="9.0.0" /> | ||||
|         <PackageReference Include="System.Data.SqlClient" Version="4.8.6" /> | ||||
|         <PackageReference Include="System.Drawing.Common" Version="8.0.10" /> | ||||
|         <PackageReference Include="System.Text.Json" Version="8.0.5" /> | ||||
|         <PackageReference Include="Tesseract" Version="5.2.0" /> | ||||
|         <PackageReference Include="System.Drawing.Common" Version="9.0.0" /> | ||||
|         <PackageReference Include="System.Text.Json" Version="9.0.0" /> | ||||
|     </ItemGroup> | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="CommonMark.NET" Version="0.15.1" /> | ||||
|     </ItemGroup> | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="Microsoft.AspNet.WebApi.SelfHost" Version="5.2.9" /> | ||||
| @ -75,17 +77,15 @@ | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="Microsoft.TeamFoundationServer.Client" Version="16.205.1" /> | ||||
|     </ItemGroup> | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="Tibco.Rendezvous.DotNetCore" Version="8.5.0" /> | ||||
|         <PackageReference Include="Infineon.Yoda.DotNetCore" Version="5.4.1" /> | ||||
|     </ItemGroup> | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="Infineon.Mesa.PDF.Text.Stripper" Version="4.8.0.1"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|     </ItemGroup> | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="External.Common.Logging.Core" Version="3.3.1"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|         <PackageReference Include="External.Common.Logging" Version="3.3.1"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|         <PackageReference Include="External.log4net" Version="2.0.8"><NoWarn>NU1701</NoWarn></PackageReference> | ||||
|         <PackageReference Include="Infineon.Yoda.DotNetCore" Version="5.4.3" /> | ||||
|         <PackageReference Include="Tibco.Rendezvous.DotNetCore" Version="8.5.0" /> | ||||
|     </ItemGroup> | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="Tesseract" Version="5.2.0" /> | ||||
|     </ItemGroup> | ||||
|     <ItemGroup> | ||||
|         <None Include="appsettings.json"> | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Adaptation._Tests.Shared; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Adaptation._Tests.Shared; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Adaptation._Tests.Shared; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Adaptation._Tests.Shared; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Adaptation._Tests.Shared; | ||||
| using Microsoft.Extensions.Logging; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
|  | ||||
| @ -0,0 +1,65 @@ | ||||
| #if true | ||||
| 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.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class ALIGNMENT_EQPT : EAFLoggingUnitTesting | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     internal static string DummyRoot { get; private set; } | ||||
|     internal static ALIGNMENT_EQPT EAFLoggingUnitTesting { get; private set; } | ||||
|  | ||||
|     static ALIGNMENT_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; | ||||
|  | ||||
|     public ALIGNMENT_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) | ||||
|     { | ||||
|         if (EAFLoggingUnitTesting is null) | ||||
|             throw new Exception(); | ||||
|     } | ||||
|  | ||||
|     public ALIGNMENT_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) | ||||
|     { | ||||
|     } | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         EAFLoggingUnitTesting ??= new ALIGNMENT_EQPT(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 Development__v2_58_0__ALIGNMENT_EQPT__DownloadExcelFile() | ||||
|     { | ||||
|         string check = ".xlsx"; | ||||
|         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 | ||||
| @ -0,0 +1,65 @@ | ||||
| #if true | ||||
| 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.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class ALIGNMENT : EAFLoggingUnitTesting | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     internal static string DummyRoot { get; private set; } | ||||
|     internal static ALIGNMENT EAFLoggingUnitTesting { get; private set; } | ||||
|  | ||||
|     static ALIGNMENT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; | ||||
|  | ||||
|     public ALIGNMENT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) | ||||
|     { | ||||
|         if (EAFLoggingUnitTesting is null) | ||||
|             throw new Exception(); | ||||
|     } | ||||
|  | ||||
|     public ALIGNMENT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) | ||||
|     { | ||||
|     } | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         EAFLoggingUnitTesting ??= new ALIGNMENT(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 Development__v2_58_0__ALIGNMENT__ConvertExcelToJson() | ||||
|     { | ||||
|         string check = "*.xlsx"; | ||||
|         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 | ||||
| @ -0,0 +1,65 @@ | ||||
| #if true | ||||
| 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.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class BACKLOG_EQPT : EAFLoggingUnitTesting | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     internal static string DummyRoot { get; private set; } | ||||
|     internal static BACKLOG_EQPT EAFLoggingUnitTesting { get; private set; } | ||||
|  | ||||
|     static BACKLOG_EQPT() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; | ||||
|  | ||||
|     public BACKLOG_EQPT() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) | ||||
|     { | ||||
|         if (EAFLoggingUnitTesting is null) | ||||
|             throw new Exception(); | ||||
|     } | ||||
|  | ||||
|     public BACKLOG_EQPT(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) | ||||
|     { | ||||
|     } | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         EAFLoggingUnitTesting ??= new BACKLOG_EQPT(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 Development__v2_58_0__BACKLOG_EQPT__DownloadWorkItems() | ||||
|     { | ||||
|         string check = ".xlsx"; | ||||
|         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 | ||||
| @ -0,0 +1,65 @@ | ||||
| #if true | ||||
| 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.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class BACKLOG : EAFLoggingUnitTesting | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     internal static string DummyRoot { get; private set; } | ||||
|     internal static BACKLOG EAFLoggingUnitTesting { get; private set; } | ||||
|  | ||||
|     static BACKLOG() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; | ||||
|  | ||||
|     public BACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) | ||||
|     { | ||||
|         if (EAFLoggingUnitTesting is null) | ||||
|             throw new Exception(); | ||||
|     } | ||||
|  | ||||
|     public BACKLOG(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) | ||||
|     { | ||||
|     } | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         EAFLoggingUnitTesting ??= new BACKLOG(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 Development__v2_58_0__BACKLOG__json() | ||||
|     { | ||||
|         string check = "*.json"; | ||||
|         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 | ||||
| @ -0,0 +1,91 @@ | ||||
| #if true | ||||
| 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.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class MESAFIBACKLOG : EAFLoggingUnitTesting | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     internal static string DummyRoot { get; private set; } | ||||
|     internal static MESAFIBACKLOG EAFLoggingUnitTesting { get; private set; } | ||||
|  | ||||
|     static MESAFIBACKLOG() => DummyRoot = @"\\mesfs.infineon.com\EC_Characterization_Si\Dummy"; | ||||
|  | ||||
|     public MESAFIBACKLOG() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false) | ||||
|     { | ||||
|         if (EAFLoggingUnitTesting is null) | ||||
|             throw new Exception(); | ||||
|     } | ||||
|  | ||||
|     public MESAFIBACKLOG(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false) | ||||
|     { | ||||
|     } | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         EAFLoggingUnitTesting ??= new MESAFIBACKLOG(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 Development__v2_58_0__MESAFIBACKLOG__Kanban() | ||||
|     { | ||||
|         string check = "*.json"; | ||||
|         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 Development__v2_58_0__MESAFIBACKLOG__Markdown() | ||||
|     { | ||||
|         string check = "*.json"; | ||||
|         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 Development__v2_58_0__MESAFIBACKLOG__ADO() | ||||
|     { | ||||
|         string check = "*.json"; | ||||
|         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 | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Adaptation.Shared; | ||||
| using Adaptation.Shared.Methods; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Adaptation.Shared; | ||||
| using Adaptation.Shared.Methods; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #if true | ||||
| #if v2_57_0 | ||||
| using Adaptation.FileHandlers.json.WorkItems; | ||||
| using Adaptation.Shared; | ||||
| using Adaptation.Shared.Methods; | ||||
|  | ||||
| @ -0,0 +1,52 @@ | ||||
| #if true | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
| using System.Reflection; | ||||
| using System.Threading; | ||||
|  | ||||
| namespace Adaptation._Tests.Extract.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class ALIGNMENT_EQPT | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     private static CreateSelfDescription.Development.v2_58_0.ALIGNMENT_EQPT _ALIGNMENT_EQPT; | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         CreateSelfDescription.Development.v2_58_0.ALIGNMENT_EQPT.ClassInitialize(testContext); | ||||
|         _ALIGNMENT_EQPT = CreateSelfDescription.Development.v2_58_0.ALIGNMENT_EQPT.EAFLoggingUnitTesting; | ||||
|     } | ||||
|  | ||||
|     private static void NonThrowTryCatch() | ||||
|     { | ||||
|         try | ||||
|         { throw new Exception(); } | ||||
|         catch (Exception) { } | ||||
|     } | ||||
|  | ||||
|     [Ignore] | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__ALIGNMENT_EQPT__DownloadExcelFile() => _ALIGNMENT_EQPT.Development__v2_58_0__ALIGNMENT_EQPT__DownloadExcelFile(); | ||||
|  | ||||
|     [Ignore] | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__ALIGNMENT_EQPT__DownloadExcelFile637961178824025822__Normal() | ||||
|     { | ||||
|         string check = ".xlsx"; | ||||
|         bool validatePDSF = false; | ||||
|         MethodBase methodBase = new StackFrame().GetMethod(); | ||||
|         _ALIGNMENT_EQPT.Development__v2_58_0__ALIGNMENT_EQPT__DownloadExcelFile(); | ||||
|         _ = _ALIGNMENT_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); | ||||
|         for (int i = 0; i < int.MinValue; i++) | ||||
|             Thread.Sleep(500); | ||||
|         NonThrowTryCatch(); | ||||
|     } | ||||
|  | ||||
| } | ||||
| #endif | ||||
							
								
								
									
										64
									
								
								Adaptation/_Tests/Extract/Development/v2.58.0/ALIGNMENT.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								Adaptation/_Tests/Extract/Development/v2.58.0/ALIGNMENT.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,64 @@ | ||||
| #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.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class ALIGNMENT | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     private static CreateSelfDescription.Development.v2_58_0.ALIGNMENT _ALIGNMENT; | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         CreateSelfDescription.Development.v2_58_0.ALIGNMENT.ClassInitialize(testContext); | ||||
|         _ALIGNMENT = CreateSelfDescription.Development.v2_58_0.ALIGNMENT.EAFLoggingUnitTesting; | ||||
|     } | ||||
|  | ||||
|     private static void NonThrowTryCatch() | ||||
|     { | ||||
|         try | ||||
|         { throw new Exception(); } | ||||
|         catch (Exception) { } | ||||
|     } | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__ALIGNMENT__ConvertExcelToJson() => _ALIGNMENT.Development__v2_58_0__ALIGNMENT__ConvertExcelToJson(); | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__ALIGNMENT__ConvertExcelToJson638353030755467303__Normal() | ||||
|     { | ||||
|         string check = "*.xlsx"; | ||||
|         bool validatePDSF = false; | ||||
|         MethodBase methodBase = new StackFrame().GetMethod(); | ||||
|         _ALIGNMENT.Development__v2_58_0__ALIGNMENT__ConvertExcelToJson(); | ||||
|         Assert.IsFalse(string.IsNullOrEmpty(_ALIGNMENT.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); | ||||
|         string[] variables = _ALIGNMENT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); | ||||
|         IFileRead fileRead = _ALIGNMENT.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 | ||||
| @ -0,0 +1,52 @@ | ||||
| #if true | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
| using System; | ||||
| using System.Diagnostics; | ||||
| using System.Reflection; | ||||
| using System.Threading; | ||||
|  | ||||
| namespace Adaptation._Tests.Extract.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class BACKLOG_EQPT | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     private static CreateSelfDescription.Development.v2_58_0.BACKLOG_EQPT _BACKLOG_EQPT; | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         CreateSelfDescription.Development.v2_58_0.BACKLOG_EQPT.ClassInitialize(testContext); | ||||
|         _BACKLOG_EQPT = CreateSelfDescription.Development.v2_58_0.BACKLOG_EQPT.EAFLoggingUnitTesting; | ||||
|     } | ||||
|  | ||||
|     private static void NonThrowTryCatch() | ||||
|     { | ||||
|         try | ||||
|         { throw new Exception(); } | ||||
|         catch (Exception) { } | ||||
|     } | ||||
|  | ||||
|     [Ignore] | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__BACKLOG_EQPT__DownloadWorkItems() => _BACKLOG_EQPT.Development__v2_58_0__BACKLOG_EQPT__DownloadWorkItems(); | ||||
|  | ||||
|     [Ignore] | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__BACKLOG_EQPT__DownloadWorkItems638612245609095845__Normal() | ||||
|     { | ||||
|         string check = ".json"; | ||||
|         bool validatePDSF = false; | ||||
|         MethodBase methodBase = new StackFrame().GetMethod(); | ||||
|         _BACKLOG_EQPT.Development__v2_58_0__BACKLOG_EQPT__DownloadWorkItems(); | ||||
|         _ = _BACKLOG_EQPT.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); | ||||
|         for (int i = 0; i < int.MinValue; i++) | ||||
|             Thread.Sleep(500); | ||||
|         NonThrowTryCatch(); | ||||
|     } | ||||
|  | ||||
| } | ||||
| #endif | ||||
							
								
								
									
										64
									
								
								Adaptation/_Tests/Extract/Development/v2.58.0/BACKLOG.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										64
									
								
								Adaptation/_Tests/Extract/Development/v2.58.0/BACKLOG.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,64 @@ | ||||
| #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.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class BACKLOG | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     private static CreateSelfDescription.Development.v2_58_0.BACKLOG _BACKLOG; | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         CreateSelfDescription.Development.v2_58_0.BACKLOG.ClassInitialize(testContext); | ||||
|         _BACKLOG = CreateSelfDescription.Development.v2_58_0.BACKLOG.EAFLoggingUnitTesting; | ||||
|     } | ||||
|  | ||||
|     private static void NonThrowTryCatch() | ||||
|     { | ||||
|         try | ||||
|         { throw new Exception(); } | ||||
|         catch (Exception) { } | ||||
|     } | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__BACKLOG__json() => _BACKLOG.Development__v2_58_0__BACKLOG__json(); | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__BACKLOG__json638612245609095846__Normal() | ||||
|     { | ||||
|         string check = "*.json"; | ||||
|         bool validatePDSF = false; | ||||
|         _BACKLOG.Development__v2_58_0__BACKLOG__json(); | ||||
|         MethodBase methodBase = new StackFrame().GetMethod(); | ||||
|         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 | ||||
							
								
								
									
										189
									
								
								Adaptation/_Tests/Extract/Development/v2.58.0/MESAFIBACKLOG.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										189
									
								
								Adaptation/_Tests/Extract/Development/v2.58.0/MESAFIBACKLOG.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,189 @@ | ||||
| #if true | ||||
| using Adaptation.FileHandlers.json.WorkItems; | ||||
| using Adaptation.Shared; | ||||
| using Adaptation.Shared.Methods; | ||||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Collections.ObjectModel; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| using System.Reflection; | ||||
| using System.Text.Json; | ||||
|  | ||||
| namespace Adaptation._Tests.Extract.Development.v2_58_0; | ||||
|  | ||||
| [TestClass] | ||||
| public class MESAFIBACKLOG | ||||
| { | ||||
|  | ||||
| #pragma warning disable CA2254 | ||||
| #pragma warning disable IDE0060 | ||||
|  | ||||
|     private static CreateSelfDescription.Development.v2_58_0.MESAFIBACKLOG _MESAFIBACKLOG; | ||||
|  | ||||
|     [ClassInitialize] | ||||
|     public static void ClassInitialize(TestContext testContext) | ||||
|     { | ||||
|         CreateSelfDescription.Development.v2_58_0.MESAFIBACKLOG.ClassInitialize(testContext); | ||||
|         _MESAFIBACKLOG = CreateSelfDescription.Development.v2_58_0.MESAFIBACKLOG.EAFLoggingUnitTesting; | ||||
|     } | ||||
|  | ||||
|     private static void NonThrowTryCatch() | ||||
|     { | ||||
|         try | ||||
|         { throw new Exception(); } | ||||
|         catch (Exception) { } | ||||
|     } | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__MESAFIBACKLOG__Kanban() => _MESAFIBACKLOG.Development__v2_58_0__MESAFIBACKLOG__Kanban(); | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__MESAFIBACKLOG__Kanban638323658386612552__Normal() | ||||
|     { | ||||
|         string check = "*.json"; | ||||
|         bool validatePDSF = false; | ||||
|         _MESAFIBACKLOG.Development__v2_58_0__MESAFIBACKLOG__Kanban(); | ||||
|         MethodBase methodBase = new StackFrame().GetMethod(); | ||||
|         Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); | ||||
|         string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); | ||||
|         IFileRead fileRead = _MESAFIBACKLOG.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(); | ||||
|     } | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__MESAFIBACKLOG__Markdown() => _MESAFIBACKLOG.Development__v2_58_0__MESAFIBACKLOG__Markdown(); | ||||
|  | ||||
|     private static ReadOnlyDictionary<string, FileInfo> GetKeyValuePairs(List<FileInfo> collection) | ||||
|     { | ||||
|         Dictionary<string, FileInfo> results = []; | ||||
|         foreach (FileInfo fileInfo in collection) | ||||
|             results.Add(fileInfo.Name, fileInfo); | ||||
|         return new(results); | ||||
|     } | ||||
|  | ||||
|     private static ReadOnlyCollection<Record> GetRecords(FileInfo fileInfo) | ||||
|     { | ||||
|         Record[] results; | ||||
|         string json = File.ReadAllText(fileInfo.FullName); | ||||
|         results = JsonSerializer.Deserialize<Record[]>(json); | ||||
|         return new(results); | ||||
|     } | ||||
|  | ||||
|     private static void Verify122508(FileInfo fileInfo) | ||||
|     { | ||||
|         ReadOnlyCollection<Record> records = GetRecords(fileInfo); | ||||
|         Assert.IsNotNull(records); | ||||
|         // Assert.IsTrue(records.Count == 10); | ||||
|         // Assert.IsTrue(records.Count == 6); | ||||
|     } | ||||
|  | ||||
|     private static void Verify122514(FileInfo fileInfo) | ||||
|     { | ||||
|         ReadOnlyCollection<Record> records = GetRecords(fileInfo); | ||||
|         Assert.IsNotNull(records); | ||||
|         // Assert.IsTrue(records.Count == 25); | ||||
|         // Assert.IsTrue(records.Count == 6); | ||||
|     } | ||||
|  | ||||
|     private static void Verify126169(FileInfo fileInfo) | ||||
|     { | ||||
|         ReadOnlyCollection<Record> records = GetRecords(fileInfo); | ||||
|         Assert.IsNotNull(records); | ||||
|         // Assert.IsTrue(records.Count == 1); | ||||
|         // Assert.IsTrue(records.Count == 1); | ||||
|     } | ||||
|  | ||||
|     private static void Verify123066(FileInfo fileInfo) | ||||
|     { | ||||
|         ReadOnlyCollection<Record> records = GetRecords(fileInfo); | ||||
|         Assert.IsNotNull(records); | ||||
|         // Assert.IsTrue(records.Count == 24); | ||||
|         // Assert.IsTrue(records.Count == 5); | ||||
|     } | ||||
|  | ||||
|     private static void Verify123067(FileInfo fileInfo) | ||||
|     { | ||||
|         ReadOnlyCollection<Record> records = GetRecords(fileInfo); | ||||
|         Assert.IsNotNull(records); | ||||
|         // Assert.IsTrue(records.Count == 24); | ||||
|         // Assert.IsTrue(records.Count == 5); | ||||
|     } | ||||
|  | ||||
|     private static void Verify122517(FileInfo fileInfo) | ||||
|     { | ||||
|         ReadOnlyCollection<Record> records = GetRecords(fileInfo); | ||||
|         Assert.IsNotNull(records); | ||||
|         // Assert.IsTrue(records.Count == 14); | ||||
|         // Assert.IsTrue(records.Count == 14); | ||||
|     } | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__MESAFIBACKLOG__Markdown638323658386612552__Normal() | ||||
|     { | ||||
|         string check = "*.json"; | ||||
|         bool validatePDSF = false; | ||||
|         _MESAFIBACKLOG.Development__v2_58_0__MESAFIBACKLOG__Markdown(); | ||||
|         MethodBase methodBase = new StackFrame().GetMethod(); | ||||
|         Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); | ||||
|         string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); | ||||
|         IFileRead fileRead = _MESAFIBACKLOG.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); | ||||
|         ReadOnlyDictionary<string, FileInfo> keyValuePairs = GetKeyValuePairs(extractResult.Item4); | ||||
|         Assert.IsTrue(keyValuePairs.ContainsKey("check-122508.json")); | ||||
|         Assert.IsTrue(keyValuePairs.ContainsKey("check-122514.json")); | ||||
|         Assert.IsTrue(keyValuePairs.ContainsKey("check-126169.json")); | ||||
|         Assert.IsTrue(keyValuePairs.ContainsKey("check-123066.json")); | ||||
|         Assert.IsTrue(keyValuePairs.ContainsKey("check-123067.json")); | ||||
|         Assert.IsTrue(keyValuePairs.ContainsKey("check-122517.json")); | ||||
|         Verify122508(keyValuePairs["check-122508.json"]); | ||||
|         Verify122514(keyValuePairs["check-122514.json"]); | ||||
|         Verify126169(keyValuePairs["check-126169.json"]); | ||||
|         Verify123066(keyValuePairs["check-123066.json"]); | ||||
|         Verify123067(keyValuePairs["check-123067.json"]); | ||||
|         Verify122517(keyValuePairs["check-122517.json"]); | ||||
|         NonThrowTryCatch(); | ||||
|     } | ||||
|  | ||||
| #if DEBUG | ||||
|     [Ignore] | ||||
| #endif | ||||
|     [TestMethod] | ||||
|     public void Development__v2_58_0__MESAFIBACKLOG__ADO638323658386612552__Normal() | ||||
|     { | ||||
|         string check = "*.json"; | ||||
|         bool validatePDSF = false; | ||||
|         _MESAFIBACKLOG.Development__v2_58_0__MESAFIBACKLOG__ADO(); | ||||
|         MethodBase methodBase = new StackFrame().GetMethod(); | ||||
|         Assert.IsFalse(string.IsNullOrEmpty(_MESAFIBACKLOG.AdaptationTesting.TestContext.FullyQualifiedTestClassName)); | ||||
|         string[] variables = _MESAFIBACKLOG.AdaptationTesting.GetVariables(methodBase, check, validatePDSF); | ||||
|         IFileRead fileRead = _MESAFIBACKLOG.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 | ||||
| @ -64,8 +64,8 @@ public class ALIGNMENT : LoggingUnitTesting, IDisposable | ||||
|         StringBuilder results = new(); | ||||
|         (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] | ||||
|         { | ||||
|             new("ALIGNMENT", "v2.57.0"), | ||||
|             new("ALIGNMENT-EQPT", "v2.57.0"), | ||||
|             new("ALIGNMENT", "v2.58.0"), | ||||
|             new("ALIGNMENT-EQPT", "v2.58.0"), | ||||
|         }; | ||||
|         string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2"; | ||||
|         Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; | ||||
|  | ||||
| @ -64,8 +64,8 @@ public class BACKLOG : LoggingUnitTesting, IDisposable | ||||
|         StringBuilder results = new(); | ||||
|         (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] | ||||
|         { | ||||
|             new("BACKLOG", "v2.57.0"), | ||||
|             new("BACKLOG-EQPT", "v2.57.0"), | ||||
|             new("BACKLOG", "v2.58.0"), | ||||
|             new("BACKLOG-EQPT", "v2.58.0"), | ||||
|         }; | ||||
|         string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2"; | ||||
|         Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; | ||||
|  | ||||
| @ -64,7 +64,7 @@ public class MESAFIBACKLOG : LoggingUnitTesting, IDisposable | ||||
|         StringBuilder results = new(); | ||||
|         (string cellInstanceName, string cellInstanceVersionName)[] collection = new (string, string)[] | ||||
|         { | ||||
|             new("MESAFIBACKLOG", "v2.57.0"), | ||||
|             new("MESAFIBACKLOG", "v2.58.0"), | ||||
|         }; | ||||
|         string development = "http://eaf-dev.mes.infineon.com:9003/CellInstanceServiceV2"; | ||||
|         Shared.PasteSpecialXml.EAF.XML.API.CellInstance.CellInstanceVersion cellInstanceVersion; | ||||
|  | ||||
| @ -88,6 +88,8 @@ public partial class FileRead : FileReaderHandler, ISMTP | ||||
|         try | ||||
|         { | ||||
|             extractResults = _FileRead.GetExtractResult(reportFullPath, eventName); | ||||
|             if (extractResults.Item3.Length == 0 && !string.IsNullOrEmpty(extractResults.Item1) && !extractResults.Item1.Contains("LOGISTICS_1")) | ||||
|                 throw new Exception(extractResults.Item1); | ||||
|             TriggerEvents(extractResults); | ||||
|             _FileRead.Move(extractResults); | ||||
|             FilePathGeneratorInfoMove(extractResults); | ||||
|  | ||||
| @ -207,13 +207,13 @@ | ||||
|       <Version>0.15.1</Version> | ||||
|     </PackageReference> | ||||
|     <PackageReference Include="Infineon.EAF.Runtime"> | ||||
|       <Version>2.57.0</Version> | ||||
|       <Version>2.58.0</Version> | ||||
|     </PackageReference> | ||||
|     <PackageReference Include="Microsoft.TeamFoundationServer.Client"> | ||||
|       <Version>16.205.1</Version> | ||||
|     </PackageReference> | ||||
|     <PackageReference Include="System.Text.Json"> | ||||
|       <Version>6.0.3</Version> | ||||
|       <Version>8.0.3</Version> | ||||
|     </PackageReference> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||||
|  | ||||
| @ -32,5 +32,5 @@ using System.Runtime.InteropServices; | ||||
| // You can specify all the values or you can default the Build and Revision Numbers | ||||
| // by using the '*' as shown below: | ||||
| // [assembly: AssemblyVersion("1.0.*")] | ||||
| [assembly: AssemblyVersion("2.57.0.0")] | ||||
| [assembly: AssemblyFileVersion("2.57.0.0")] | ||||
| [assembly: AssemblyVersion("2.58.0.0")] | ||||
| [assembly: AssemblyFileVersion("2.58.0.0")] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user