Update TUnit, warning cleanup
Some checks failed
Build / Build (push) Failing after 35s

This commit is contained in:
2026-07-05 13:24:22 +02:00
parent 16a1990486
commit cc091d5327
61 changed files with 113 additions and 190 deletions

View File

@@ -1,6 +1,5 @@
using System.CommandLine;
using System.CommandLine.Parsing;
using System.Reflection;
using PkmnLib.Dynamic.AI;
using PkmnLib.Dynamic.Libraries;
using PkmnLib.Plugin.Gen7;
@@ -14,7 +13,7 @@ internal static class Program
{
private static List<PokemonAI>? _availableAIs;
internal static LoggingLevelSwitch LogLevelSwitch { get; } = new(LogEventLevel.Information);
internal static LoggingLevelSwitch LogLevelSwitch { get; } = new();
private static Task<int> Main(string[] args)
{

View File

@@ -2,7 +2,6 @@ using System.Collections.Concurrent;
using PkmnLib.Dynamic.AI;
using PkmnLib.Dynamic.Libraries;
using PkmnLib.Dynamic.Models;
using PkmnLib.Plugin.Gen7;
using PkmnLib.Static.Species;
using PkmnLib.Static.Utils;
using Serilog;
@@ -184,10 +183,10 @@ public static class TestCommandRunner
throw new InvalidOperationException("Both Pokémon must be non-null to proceed with the battle.");
}
var taskAiOne = !battle.HasForcedTurn(pokemon1!, out var choice1)
var taskAiOne = !battle.HasForcedTurn(pokemon1, out var choice1)
? Task.Run(() => ai1.GetChoice(battle, pokemon1))
: Task.FromResult(choice1);
var taskAiTwo = !battle.HasForcedTurn(pokemon2!, out var choice2)
var taskAiTwo = !battle.HasForcedTurn(pokemon2, out var choice2)
? Task.Run(() => ai2.GetChoice(battle, pokemon2))
: Task.FromResult(choice2);
await Task.WhenAll(taskAiOne, taskAiTwo);