mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix tests
This commit is contained in:
parent
cf08450dcc
commit
ea3692e5a5
@ -73,7 +73,6 @@ public void ServerCallback_float_out_Function(out float value)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class AttributeTest_NetworkBehaviour
|
||||
{
|
||||
AttributeBehaviour_NetworkBehaviour behaviour;
|
||||
@ -94,7 +93,6 @@ public void TearDown()
|
||||
UnityEngine.Object.DestroyImmediate(go);
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
[TestCase(true)]
|
||||
[TestCase(false)]
|
||||
@ -207,7 +205,10 @@ public void ServerCallback_float_setsOutValue(bool active)
|
||||
public class AttributeBehaviour_MonoBehaviour : MonoBehaviour
|
||||
{
|
||||
public static readonly float Expected_float = 2020f;
|
||||
public static readonly ClassWithNoConstructor Expected_ClassWithNoConstructor = new ClassWithNoConstructor { a = 10 };
|
||||
public static readonly ClassWithNoConstructor Expected_ClassWithNoConstructor = new ClassWithNoConstructor
|
||||
{
|
||||
a = 10
|
||||
};
|
||||
public static readonly ClassWithConstructor Expected_ClassWithConstructor = new ClassWithConstructor(29);
|
||||
|
||||
[Client]
|
||||
@ -355,10 +356,10 @@ public void ServerCallback_ClassWithConstructor_out_Function(out ClassWithConstr
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public class AttributeTest_MonoBehaviour
|
||||
{
|
||||
AttributeBehaviour_MonoBehaviour behaviour;
|
||||
NetClient NetworkClient;
|
||||
GameObject go;
|
||||
|
||||
[SetUp]
|
||||
@ -366,6 +367,8 @@ public void SetUp()
|
||||
{
|
||||
go = new GameObject();
|
||||
behaviour = go.AddComponent<AttributeBehaviour_MonoBehaviour>();
|
||||
NetworkClient = go.AddComponent<NetClient>();
|
||||
NetworkClient.Awake();
|
||||
}
|
||||
|
||||
[TearDown]
|
||||
@ -376,7 +379,6 @@ public void TearDown()
|
||||
UnityEngine.Object.DestroyImmediate(go);
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
[TestCase(true)]
|
||||
[TestCase(false)]
|
||||
|
Loading…
Reference in New Issue
Block a user