LocalConnectionTest : MirrorTest so that transport etc. are available too (prepares for tick batching)

This commit is contained in:
vis2k 2021-06-15 12:37:33 +08:00
parent 0d7edde710
commit 3d535e0c4e

View File

@ -2,7 +2,7 @@
namespace Mirror.Tests
{
public class LocalConnectionTest
public class LocalConnectionTest : MirrorTest
{
struct TestMessage : NetworkMessage {}
@ -10,8 +10,10 @@ struct TestMessage : NetworkMessage {}
LocalConnectionToServer connectionToServer;
[SetUp]
public void SetUp()
public override void SetUp()
{
base.SetUp();
connectionToServer = new LocalConnectionToServer();
connectionToClient = new LocalConnectionToClient();
@ -24,11 +26,13 @@ public void SetUp()
}
[TearDown]
public void TearDown()
public override void TearDown()
{
connectionToServer.Disconnect();
NetworkClient.Shutdown();
NetworkServer.Shutdown();
base.TearDown();
}
[Test]