Files
Beyhan Oğur d5f52cc3d3 first commit
2026-09-03 04:45:36 +03:00

741 B

  • Each test file declares a single [TestClass] whose name mirrors the subsystem under test (e.g. BuyAgentTests, AliasCommandTests, ClilocFilterTests).
  • Per-test fixture setup uses [TestInitialize] to create a PlayerMobile and assign it to Engine.Player before invoking command or agent code.
  • Network-layer tests wire up the handler registry first (IncomingPacketHandlers.Initialize() / OutgoingPacketHandlers.Initialize()) then feed hand-crafted byte[] payloads wrapped in new PacketReader(data, data.Length, ...) to handler?.OnReceive(...).
  • Assertions are written with Microsoft.VisualStudio.TestTools.UnitTesting.Assert.* (e.g. Assert.AreEqual, Assert.IsTrue) rather than a third-party assertion library.