NetworkManagerTest reuses MirrorTest

This commit is contained in:
vis2k 2021-05-19 19:21:53 +08:00
parent 9c8f60bd56
commit 09d749e613

View File

@ -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"