diff --git a/Assets/Mirror/Tests/ArrayWriterTest.cs b/Assets/Mirror/Tests/ArrayWriterTest.cs index c38ccd774..b97f1f3e6 100644 --- a/Assets/Mirror/Tests/ArrayWriterTest.cs +++ b/Assets/Mirror/Tests/ArrayWriterTest.cs @@ -12,7 +12,7 @@ class ArrayByteMessage : MessageBase [Test] public void TestNullByterray() { - ArrayByteMessage intMessage = new ArrayByteMessage() + ArrayByteMessage intMessage = new ArrayByteMessage { array = null }; @@ -27,7 +27,7 @@ public void TestNullByterray() [Test] public void TestEmptyByteArray() { - ArrayByteMessage intMessage = new ArrayByteMessage() + ArrayByteMessage intMessage = new ArrayByteMessage { array = new byte[] { } }; @@ -44,7 +44,7 @@ public void TestEmptyByteArray() [Test] public void TestDataByteArray() { - ArrayByteMessage intMessage = new ArrayByteMessage() + ArrayByteMessage intMessage = new ArrayByteMessage { array = new byte[] { 3, 4, 5 } }; @@ -66,7 +66,7 @@ class ArrayIntMessage : MessageBase [Test] public void TestNullIntArray() { - ArrayIntMessage intMessage = new ArrayIntMessage() + ArrayIntMessage intMessage = new ArrayIntMessage { array = null }; @@ -81,7 +81,7 @@ public void TestNullIntArray() [Test] public void TestEmptyIntArray() { - ArrayIntMessage intMessage = new ArrayIntMessage() + ArrayIntMessage intMessage = new ArrayIntMessage { array = new int [] { } }; @@ -96,7 +96,7 @@ public void TestEmptyIntArray() [Test] public void TestDataIntArray() { - ArrayIntMessage intMessage = new ArrayIntMessage() + ArrayIntMessage intMessage = new ArrayIntMessage { array = new[] { 3, 4, 5} };