Refactor alot of stuff

This commit is contained in:
2026-10-29 22:54:29 +01:00
parent c23b666ee4
commit 260abc2c98
138 changed files with 2835 additions and 466 deletions
@@ -98,7 +98,7 @@ public class RunArchiveBuildTests
string original = JsonUtility.ToJson(entry);
Assert.That(Resolve(entry, out var resolved, out string reason), Is.True, reason);
Assert.That(resolved.Notice, Does.Contain("archived V2 -> owned V5"));
Assert.That(resolved.Notice, Does.Contain("archived +1 -> owned +5"));
Assert.That(resolved.Notice, Does.Contain("archived +1 -> owned +" + _package.MaxUpgradeLevel));
Assert.That(resolved.CardIds, Is.EqualTo(entry.build.exclusiveCardIds));
Assert.That(resolved.Languages, Is.EqualTo(entry.build.languages));
Assert.That(resolved.Seed, Is.EqualTo(int.MinValue));
@@ -253,7 +253,7 @@ public class RunArchiveBuildTests
Assert.That(RunContext.HasPendingRun, Is.EqualTo(hadPendingRun));
Assert.That(Get("_runSeedText"), Is.EqualTo(int.MinValue.ToString(System.Globalization.CultureInfo.InvariantCulture)));
Assert.That(((CardLoadout)Get("_cardLoadout")).GetEquippedCardIds(_distro.Id), Is.EqualTo(entry.build.exclusiveCardIds));
Assert.That(((PackageLoadout)Get("_packageLoadout")).GetEquippedPackageInstances(_distro.Id).Single().UpgradeLevel, Is.EqualTo(5));
Assert.That(((PackageLoadout)Get("_packageLoadout")).GetEquippedPackageInstances(_distro.Id).Single().UpgradeLevel, Is.EqualTo(_package.MaxUpgradeLevel));
Assert.That((List<Language>)Get("_selectedRunLanguages"), Is.EqualTo(entry.build.languages));
Assert.That(root.Q<Label>("RunSetupNotice").text, Does.Contain("archived V2 -> owned V5"));
var saved = service.Load();