mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkBehaviourTests: InitSyncObject
This commit is contained in:
parent
cdea476212
commit
e37e2ff2fc
@ -137,4 +137,17 @@ public void HookGuard()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// we need to inherit from networkbehaviour to test protected functions
|
||||
public class NetworkBehaviourInitSyncObjectTester : NetworkBehaviour
|
||||
{
|
||||
[Test]
|
||||
public void InitSyncObject()
|
||||
{
|
||||
SyncObject syncObject = new SyncListBool();
|
||||
InitSyncObject(syncObject);
|
||||
Assert.That(syncObjects.Count, Is.EqualTo(1));
|
||||
Assert.That(syncObjects[0], Is.EqualTo(syncObject));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user