From 3d122ea37e2803819547545f1b91f1d74f99fa70 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 13 May 2021 12:30:59 +0800 Subject: [PATCH] Tests: remove unnecessary CustomAttributeTest --- .../Tests/Editor/CustomAttrributeTest.cs | 55 ------------------- .../Tests/Editor/CustomAttrributeTest.cs.meta | 11 ---- 2 files changed, 66 deletions(-) delete mode 100644 Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs delete mode 100644 Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs.meta diff --git a/Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs b/Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs deleted file mode 100644 index 37e11fc7f..000000000 --- a/Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs +++ /dev/null @@ -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); - } - } -} diff --git a/Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs.meta b/Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs.meta deleted file mode 100644 index 62565160c..000000000 --- a/Assets/Mirror/Tests/Editor/CustomAttrributeTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: fce3141f0dc99464cba7328003e18a6e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: