Skip to content

Commit e917369

Browse files
committed
Update test
1 parent 0cfe8e9 commit e917369

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

RLBotCSTests/PlayerMappingTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ public void Init()
1717
[TestMethod]
1818
public void TestSpawnProcess()
1919
{
20-
int spawnId = 2398249;
20+
int playerId = 2398249;
2121
string agentId = "dev/abot";
2222
uint desiredIndex = 2;
2323
ushort actorId = 2398;
2424
ushort commandId = 9855;
2525

2626
var spawnTracker = new SpawnTracker()
2727
{
28-
SpawnId = spawnId,
28+
PlayerId = playerId,
2929
AgentId = agentId,
3030
CommandId = commandId,
3131
DesiredPlayerIndex = desiredIndex,
@@ -39,7 +39,7 @@ public void TestSpawnProcess()
3939
var metadata = _playerMapping.ApplyCarSpawn(actorId, commandId);
4040

4141
Assert.AreEqual(desiredIndex, _playerMapping.PlayerIndexFromActorId(actorId));
42-
Assert.AreEqual(spawnId, metadata.SpawnId);
42+
Assert.AreEqual(playerId, metadata.PlayerId);
4343
Assert.AreEqual(agentId, metadata.AgentId);
4444
Assert.IsTrue(metadata.IsBot);
4545
Assert.IsTrue(!metadata.IsCustomBot);
@@ -51,7 +51,7 @@ public void TestSpawnProcess()
5151
Assert.AreEqual(0u, _playerMapping.PlayerIndexFromActorId(111));
5252
Assert.IsNotNull(index);
5353
Assert.AreEqual(0u, index);
54-
Assert.AreNotEqual(0, metadata2.SpawnId);
54+
Assert.AreNotEqual(0, metadata2.PlayerId);
5555
Assert.AreEqual(desiredIndex, _playerMapping.PlayerIndexFromActorId(actorId));
5656
Assert.IsTrue(!metadata2.IsBot);
5757
Assert.IsTrue(!metadata2.IsCustomBot);

0 commit comments

Comments
 (0)