mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
LocalConnectionTest : MirrorTest so that transport etc. are available too (prepares for tick batching)
This commit is contained in:
parent
0d7edde710
commit
3d535e0c4e
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user