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:
parent
85a2371e11
commit
6eb0fbde46
1 changed files with 11 additions and 0 deletions
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue