1.2 KiB
1.2 KiB
Three sibling test projects share the same MSTest (1.4.0) + Microsoft.NET.Test.Sdk (16.4.0) stack but serve different scopes:
ClassicAssist.Teststargetsnet48withAllowUnsafeBlocksand referencesClassicAssist.Shared,cuoapi.dll, andWindowsBase; it is organized by feature area (Agents/,Filters/,MacroCommands/) with one[TestClass]per subsystem, using[TestInitialize]to seed aPlayerMobileintoEngine.Playerbefore exercising command handlers viaIncomingPacketHandlers.Initialize()/OutgoingPacketHandlers.Initialize()and feeding raw byte arrays throughPacketReader.ClassicAssist.UITestis a WinForms-styleSTAThreadentry point that loadsAssistantOptions, constructsMainWindow, and owns the message loop — used for manual visual regression of Avalonia views.UITestis an empty console project kept as a placeholder. Dependency direction is one-way: tests depend on production assemblies (ClassicAssist.Shared,ClassicAssist.Data.*,ClassicAssist.UO.*,ClassicAssist.UI.Views); no production code references any test project. A disabledReplayPacketLogclass demonstrates the intended pattern for replaying captured packet logs against the live handler pipeline.