Tests: remove unnecessary CustomAttributeTest

This commit is contained in:
vis2k 2021-05-13 12:30:59 +08:00
parent 9d50c1a1d0
commit 3d122ea37e
2 changed files with 0 additions and 66 deletions

View File

@ -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);
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: fce3141f0dc99464cba7328003e18a6e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: