mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
CustomAttributeTests: use channels enum
This commit is contained in:
parent
b440130647
commit
d9036a6a79
@ -21,11 +21,11 @@ public void CommandAttributeTest()
|
|||||||
{
|
{
|
||||||
CommandAttribute attrib = new CommandAttribute();
|
CommandAttribute attrib = new CommandAttribute();
|
||||||
|
|
||||||
Assert.That(attrib.channel == 0);
|
Assert.That(attrib.channel == Channels.DefaultReliable);
|
||||||
|
|
||||||
attrib.channel = 1;
|
attrib.channel = Channels.DefaultUnreliable;
|
||||||
|
|
||||||
Assert.That(attrib.channel == 1);
|
Assert.That(attrib.channel == Channels.DefaultUnreliable);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -33,11 +33,11 @@ public void ClientRPCAttributeTest()
|
|||||||
{
|
{
|
||||||
ClientRpcAttribute attrib = new ClientRpcAttribute();
|
ClientRpcAttribute attrib = new ClientRpcAttribute();
|
||||||
|
|
||||||
Assert.That(attrib.channel == 0);
|
Assert.That(attrib.channel == Channels.DefaultReliable);
|
||||||
|
|
||||||
attrib.channel = 1;
|
attrib.channel = Channels.DefaultUnreliable;
|
||||||
|
|
||||||
Assert.That(attrib.channel == 1);
|
Assert.That(attrib.channel == Channels.DefaultUnreliable);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -45,9 +45,9 @@ public void TargetRPCAttributeTest()
|
|||||||
{
|
{
|
||||||
TargetRpcAttribute attrib = new TargetRpcAttribute();
|
TargetRpcAttribute attrib = new TargetRpcAttribute();
|
||||||
|
|
||||||
Assert.That(attrib.channel == 0);
|
Assert.That(attrib.channel == Channels.DefaultReliable);
|
||||||
|
|
||||||
attrib.channel = 1;
|
attrib.channel = Channels.DefaultUnreliable;
|
||||||
|
|
||||||
Assert.That(attrib.channel == 1);
|
Assert.That(attrib.channel == 1);
|
||||||
}
|
}
|
||||||
@ -57,11 +57,11 @@ public void SyncEventAttributeTest()
|
|||||||
{
|
{
|
||||||
SyncEventAttribute attrib = new SyncEventAttribute();
|
SyncEventAttribute attrib = new SyncEventAttribute();
|
||||||
|
|
||||||
Assert.That(attrib.channel == 0);
|
Assert.That(attrib.channel == Channels.DefaultReliable);
|
||||||
|
|
||||||
attrib.channel = 1;
|
attrib.channel = Channels.DefaultUnreliable;
|
||||||
|
|
||||||
Assert.That(attrib.channel == 1);
|
Assert.That(attrib.channel == Channels.DefaultUnreliable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs.meta
Normal file
11
Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fce3141f0dc99464cba7328003e18a6e
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue
Block a user