formatting

This commit is contained in:
vis2k 2021-08-08 18:31:24 +08:00
parent b3bbec793f
commit d7ee83d696

View File

@ -26,10 +26,8 @@ public void OnSerializeAndDeserializeAllSafely()
NetworkWriter observersWriter = new NetworkWriter();
identity.OnSerializeAllSafely(true, ownerWriter, observersWriter);
// owner should have written something
// owner & observers should have written something
Assert.That(ownerWriter.Position, Is.GreaterThan(0));
// observers should have written something
Assert.That(observersWriter.Position, Is.GreaterThan(0));
// reset component values
@ -77,10 +75,8 @@ public void SerializationException()
identity.OnSerializeAllSafely(true, ownerWriter, observersWriter);
LogAssert.ignoreFailingMessages = false;
// owner should have written something
// owner & observers should have written something
Assert.That(ownerWriter.Position, Is.GreaterThan(0));
// observers should have written something
Assert.That(observersWriter.Position, Is.GreaterThan(0));
// reset component values
@ -130,7 +126,6 @@ public void TooManyComponents()
_ = identity.NetworkBehaviours;
LogAssert.ignoreFailingMessages = false;
// try to serialize
NetworkWriter ownerWriter = new NetworkWriter();
NetworkWriter observersWriter = new NetworkWriter();