diff --git a/SVSim.UnitTests/BattleNode/Lifecycle/TypedBodyWireShapeTests.cs b/SVSim.UnitTests/BattleNode/Lifecycle/TypedBodyWireShapeTests.cs index f35e54f..ce9a57f 100644 --- a/SVSim.UnitTests/BattleNode/Lifecycle/TypedBodyWireShapeTests.cs +++ b/SVSim.UnitTests/BattleNode/Lifecycle/TypedBodyWireShapeTests.cs @@ -170,6 +170,18 @@ public class TypedBodyWireShapeTests Assert.That(node["uri"]!.GetValue(), Is.EqualTo("TurnEnd")); } + [Test] + public void BuildOpponentJudge_SerializesSpinAndResultCode() + { + var env = ScriptedLifecycle.BuildOpponentJudge(); + var json = MsgEnvelope.ToJson(env); + var node = JsonNode.Parse(json)!.AsObject(); + + Assert.That(node["spin"]!.GetValue(), Is.EqualTo(100)); + Assert.That(node["resultCode"]!.GetValue(), Is.EqualTo(1)); + Assert.That(node["uri"]!.GetValue(), Is.EqualTo("Judge")); + } + /// /// Wire-shape fixture: 30 copies of the legacy DummyCardId (100_011_010L) so the /// existing literal assertions on selfDeck[0].cardId (line 81 above) keep working