mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkWriterTest: use CreateNetworked
This commit is contained in:
parent
4b3061a786
commit
2052d1e7ca
@ -8,7 +8,7 @@
|
||||
namespace Mirror.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
public class NetworkWriterTest
|
||||
public class NetworkWriterTest : MirrorTest
|
||||
{
|
||||
/* uncomment if needed. commented for faster test workflow. this takes >3s.
|
||||
[Test]
|
||||
@ -1020,14 +1020,10 @@ void WriteBadArray()
|
||||
[Test]
|
||||
public void TestNetworkBehaviour()
|
||||
{
|
||||
//setup
|
||||
GameObject gameObject = new GameObject();
|
||||
NetworkIdentity identity = gameObject.AddComponent<NetworkIdentity>();
|
||||
RpcNetworkIdentityBehaviour behaviour = gameObject.AddComponent<RpcNetworkIdentityBehaviour>();
|
||||
CreateNetworked(out GameObject gameObject, out NetworkIdentity identity, out RpcNetworkIdentityBehaviour behaviour);
|
||||
|
||||
const uint netId = 100;
|
||||
identity.netId = netId;
|
||||
|
||||
NetworkIdentity.spawned[netId] = identity;
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user