test(D.5.4): lock creature Name/Type resolution via ClientObjectTable.Get (spec §8)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-06-18 17:08:19 +02:00
parent 85a2371e11
commit 6eb0fbde46

View file

@ -308,6 +308,17 @@ public sealed class ClientObjectTableTests
Assert.Empty(table.GetContents(0xDEADu)); Assert.Empty(table.GetContents(0xDEADu));
} }
[Fact]
public void Ingest_CreatureTyped_ResolvesNameAndTypeViaGet() // spec §8: selection/describe creature resolution after _liveEntityInfoByGuid retirement
{
var table = new ClientObjectTable();
table.Ingest(FullWeenie(0x560u, name: "Drudge", type: ItemType.Creature));
var o = table.Get(0x560u);
Assert.NotNull(o);
Assert.Equal("Drudge", o!.Name); // LiveName(guid) reads this
Assert.True((o.Type & ItemType.Creature) != 0); // LiveItemType(guid) & Creature drives creature targeting
}
[Fact] [Fact]
public void ContainerIndex_SlotChange_ResortsInPlace() // guards the Reindex same-container early-out public void ContainerIndex_SlotChange_ResortsInPlace() // guards the Reindex same-container early-out
{ {