mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
style(SyncSetTest): code formatting
This commit is contained in:
parent
ee61745c4d
commit
0fe29dcd9e
@ -121,7 +121,6 @@ public void TestMultSync()
|
|||||||
public void CallbackTest()
|
public void CallbackTest()
|
||||||
{
|
{
|
||||||
bool called = false;
|
bool called = false;
|
||||||
|
|
||||||
clientSyncSet.Callback = (op, item) =>
|
clientSyncSet.Callback = (op, item) =>
|
||||||
{
|
{
|
||||||
called = true;
|
called = true;
|
||||||
@ -140,7 +139,6 @@ public void CallbackTest()
|
|||||||
public void CallbackRemoveTest()
|
public void CallbackRemoveTest()
|
||||||
{
|
{
|
||||||
bool called = false;
|
bool called = false;
|
||||||
|
|
||||||
clientSyncSet.Callback = (op, item) =>
|
clientSyncSet.Callback = (op, item) =>
|
||||||
{
|
{
|
||||||
called = true;
|
called = true;
|
||||||
@ -148,6 +146,7 @@ public void CallbackRemoveTest()
|
|||||||
Assert.That(op, Is.EqualTo(SyncHashSet<string>.Operation.OP_REMOVE));
|
Assert.That(op, Is.EqualTo(SyncHashSet<string>.Operation.OP_REMOVE));
|
||||||
Assert.That(item, Is.EqualTo("World"));
|
Assert.That(item, Is.EqualTo("World"));
|
||||||
};
|
};
|
||||||
|
|
||||||
serverSyncSet.Remove("World");
|
serverSyncSet.Remove("World");
|
||||||
SerializeDeltaTo(serverSyncSet, clientSyncSet);
|
SerializeDeltaTo(serverSyncSet, clientSyncSet);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user