diff --git a/Assets/Mirror/Tests/Editor/AttributeTests.cs b/Assets/Mirror/Tests/Editor/AttributeTests.cs index 7183827a2..f92565180 100644 --- a/Assets/Mirror/Tests/Editor/AttributeTests.cs +++ b/Assets/Mirror/Tests/Editor/AttributeTests.cs @@ -73,11 +73,10 @@ public void ServerCallback_float_out_Function(out float value) } } - public class AttributeTest_NetworkBehaviour { AttributeBehaviour_NetworkBehaviour behaviour; - GameObject go; + GameObject go; [SetUp] public void SetUp() @@ -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,17 +356,19 @@ public void ServerCallback_ClassWithConstructor_out_Function(out ClassWithConstr } } - public class AttributeTest_MonoBehaviour { AttributeBehaviour_MonoBehaviour behaviour; - GameObject go; + NetClient NetworkClient; + GameObject go; [SetUp] public void SetUp() { go = new GameObject(); behaviour = go.AddComponent(); + NetworkClient = go.AddComponent(); + NetworkClient.Awake(); } [TearDown] @@ -376,7 +379,6 @@ public void TearDown() UnityEngine.Object.DestroyImmediate(go); } - [Test] [TestCase(true)] [TestCase(false)]