mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Tests: remove unnecessary CustomAttributeTest
This commit is contained in:
parent
9d50c1a1d0
commit
3d122ea37e
@ -1,55 +0,0 @@
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Mirror.Tests
|
||||
{
|
||||
public class CustomAttrributeTest
|
||||
{
|
||||
[Test]
|
||||
public void SyncVarAttributeTest()
|
||||
{
|
||||
SyncVarAttribute attrib = new SyncVarAttribute();
|
||||
|
||||
Assert.That(string.IsNullOrEmpty(attrib.hook));
|
||||
|
||||
attrib.hook = "foo";
|
||||
|
||||
Assert.That(attrib.hook.Equals("foo"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void CommandAttributeTest()
|
||||
{
|
||||
CommandAttribute attrib = new CommandAttribute();
|
||||
|
||||
Assert.That(attrib.channel == Channels.Reliable);
|
||||
|
||||
attrib.channel = Channels.Unreliable;
|
||||
|
||||
Assert.That(attrib.channel == Channels.Unreliable);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ClientRPCAttributeTest()
|
||||
{
|
||||
ClientRpcAttribute attrib = new ClientRpcAttribute();
|
||||
|
||||
Assert.That(attrib.channel == Channels.Reliable);
|
||||
|
||||
attrib.channel = Channels.Unreliable;
|
||||
|
||||
Assert.That(attrib.channel == Channels.Unreliable);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TargetRPCAttributeTest()
|
||||
{
|
||||
TargetRpcAttribute attrib = new TargetRpcAttribute();
|
||||
|
||||
Assert.That(attrib.channel == Channels.Reliable);
|
||||
|
||||
attrib.channel = Channels.Unreliable;
|
||||
|
||||
Assert.That(attrib.channel == 1);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
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