From 451cd26b4764cad231824985fe611ca95e25d16e Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 25 Sep 2022 12:43:19 +0700 Subject: [PATCH] syntax --- .../Mirror/Tests/Editor/Batching/UnbatcherTests.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Mirror/Tests/Editor/Batching/UnbatcherTests.cs b/Assets/Mirror/Tests/Editor/Batching/UnbatcherTests.cs index 1a6d54da0..f4a4a3c58 100644 --- a/Assets/Mirror/Tests/Editor/Batching/UnbatcherTests.cs +++ b/Assets/Mirror/Tests/Editor/Batching/UnbatcherTests.cs @@ -5,7 +5,7 @@ namespace Mirror.Tests.Batching { public class UnbatcherTests { - Unbatcher unbatcher; + Unbatcher unbatcher; const double TimeStamp = Math.PI; [SetUp] @@ -48,7 +48,7 @@ public void GetNextMessage_True_False_False_InvalidOperationException() public void GetNextMessage_OneBatch() { // add one batch - byte[] batch = BatcherTests.ConcatTimestamp(TimeStamp, new byte[]{0x01, 0x02}); + byte[] batch = BatcherTests.ConcatTimestamp(TimeStamp, new byte[] {0x01, 0x02}); unbatcher.AddBatch(new ArraySegment(batch)); // get next message, read first byte @@ -72,11 +72,11 @@ public void GetNextMessage_OneBatch() public void GetNextMessage_MultipleBatches() { // add first batch - byte[] firstBatch = BatcherTests.ConcatTimestamp(TimeStamp, new byte[]{0x01, 0x02}); + byte[] firstBatch = BatcherTests.ConcatTimestamp(TimeStamp, new byte[] {0x01, 0x02}); unbatcher.AddBatch(new ArraySegment(firstBatch)); // add second batch - byte[] secondBatch = BatcherTests.ConcatTimestamp(TimeStamp + 1, new byte[]{0x03, 0x04}); + byte[] secondBatch = BatcherTests.ConcatTimestamp(TimeStamp + 1, new byte[] {0x03, 0x04}); unbatcher.AddBatch(new ArraySegment(secondBatch)); // get next message, read everything @@ -108,7 +108,7 @@ public void GetNextMessage_MultipleBatches() public void RetireBatchAndTryNewBatch() { // add first batch - byte[] firstBatch = BatcherTests.ConcatTimestamp(TimeStamp, new byte[]{0x01, 0x02}); + byte[] firstBatch = BatcherTests.ConcatTimestamp(TimeStamp, new byte[] {0x01, 0x02}); unbatcher.AddBatch(new ArraySegment(firstBatch)); // read everything @@ -124,7 +124,7 @@ public void RetireBatchAndTryNewBatch() Assert.That(result, Is.False); // add new batch - byte[] secondBatch = BatcherTests.ConcatTimestamp(TimeStamp + 1, new byte[]{0x03, 0x04}); + byte[] secondBatch = BatcherTests.ConcatTimestamp(TimeStamp + 1, new byte[] {0x03, 0x04}); unbatcher.AddBatch(new ArraySegment(secondBatch)); // read everything