fix(battle-node): assert Bid is in envelope (not Body) on BuildMatched

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-05-31 22:18:12 -04:00
parent 0fd4f5f9f7
commit 30b457c9a0

View File

@@ -17,6 +17,10 @@ public class ScriptedLifecycleTests
Assert.That(selfInfo["oppoId"], Is.EqualTo(847666884L));
var oppoInfo = (Dictionary<string, object?>)env.Body["oppoInfo"]!;
Assert.That(oppoInfo["oppoId"], Is.EqualTo(906243102L));
// Bid travels in the envelope, not the Body — protect against the Task 5 reserved-keys regression.
Assert.That(env.Bid, Is.EqualTo("b"));
Assert.That(env.Body.ContainsKey("bid"), Is.False);
}
[Test]