FlightTests: Faction's wire array is 22 slots long, repinned from 18
Places rides at key 21, so the serialized Faction array grows from 18 slots to 22 (keys 18-20 empty). Slots 16 and 17 are unchanged. Base value 18, new value 22, reason: the new member; no zone content is involved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9481e541ca
commit
7bd11f882b
1 changed files with 3 additions and 2 deletions
|
|
@ -910,7 +910,8 @@ public sealed class FlightTests : IDisposable
|
|||
Assert.Equal(turns, turn != 0f);
|
||||
}
|
||||
|
||||
// Faction.Doctrine rides at wire slot 17; slot 16 is reserved for Relations. Kills: the key moved.
|
||||
// Faction.Doctrine rides at wire slot 17; slot 16 is reserved for Relations; Places rides at 21, which sets the array's length.
|
||||
// Kills: the key moved.
|
||||
[Fact]
|
||||
public void TheFactionDoctrineRidesAtWireSlot17()
|
||||
{
|
||||
|
|
@ -919,7 +920,7 @@ public sealed class FlightTests : IDisposable
|
|||
var slots = MessagePack.MessagePackSerializer.Deserialize<object[]>(MessagePack.MessagePackSerializer.Serialize(faction,
|
||||
CultDocumentMessagePackSerialization.OptionsFor(typeof(Faction).Assembly)));
|
||||
|
||||
Assert.Equal(18, slots.Length);
|
||||
Assert.Equal(22, slots.Length);
|
||||
Assert.Null(slots[16]);
|
||||
var doctrine = Assert.IsType<object[]>(slots[17]);
|
||||
Assert.Equal(6f, Convert.ToSingle(doctrine[1]));
|
||||
|
|
|
|||
Loading…
Reference in a new issue