mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkManagerTest reuses MirrorTest
This commit is contained in:
parent
9c8f60bd56
commit
09d749e613
@ -5,25 +5,19 @@
|
||||
namespace Mirror.Tests
|
||||
{
|
||||
[TestFixture]
|
||||
public class NetworkManagerTest
|
||||
public class NetworkManagerTest : MirrorTest
|
||||
{
|
||||
GameObject gameObject;
|
||||
NetworkManager manager;
|
||||
|
||||
[SetUp]
|
||||
public void SetupNetworkManager()
|
||||
public override void SetUp()
|
||||
{
|
||||
gameObject = new GameObject();
|
||||
gameObject.AddComponent<MemoryTransport>();
|
||||
base.SetUp();
|
||||
gameObject = transport.gameObject;
|
||||
manager = gameObject.AddComponent<NetworkManager>();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
public void TearDownNetworkManager()
|
||||
{
|
||||
GameObject.DestroyImmediate(gameObject);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void VariableTest()
|
||||
{
|
||||
@ -141,7 +135,7 @@ public void GetStartPositionTest()
|
||||
[Test]
|
||||
public void StartClientUriTest()
|
||||
{
|
||||
UriBuilder uriBuilder = new UriBuilder()
|
||||
UriBuilder uriBuilder = new UriBuilder
|
||||
{
|
||||
Host = "localhost",
|
||||
Scheme = "local"
|
||||
|
Loading…
Reference in New Issue
Block a user