From 034fed74a1d64ee421619eb871f518583d6b4bc8 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 30 Jul 2020 23:13:34 +0200 Subject: [PATCH] remove unnecessary test --- .../Tests/Editor/BasicAuthenticatorTest.cs | 57 ------------------- .../Editor/BasicAuthenticatorTest.cs.meta | 11 ---- 2 files changed, 68 deletions(-) delete mode 100644 Assets/Mirror/Tests/Editor/BasicAuthenticatorTest.cs delete mode 100644 Assets/Mirror/Tests/Editor/BasicAuthenticatorTest.cs.meta diff --git a/Assets/Mirror/Tests/Editor/BasicAuthenticatorTest.cs b/Assets/Mirror/Tests/Editor/BasicAuthenticatorTest.cs deleted file mode 100644 index cc56054f3..000000000 --- a/Assets/Mirror/Tests/Editor/BasicAuthenticatorTest.cs +++ /dev/null @@ -1,57 +0,0 @@ -using NUnit.Framework; -using Mirror.Authenticators; - -namespace Mirror.Tests -{ - [TestFixture] - public class BasicAuthenticatorTest - { - [Test] - public void AuthRequestMessageTest() - { - // try setting value with constructor - AuthRequestMessage message = new AuthRequestMessage - { - authUsername = "abc", - authPassword = "123" - }; - Assert.That(message.authUsername, Is.EqualTo("abc")); - Assert.That(message.authPassword, Is.EqualTo("123")); - - // serialize - NetworkWriter writer = new NetworkWriter(); - message.Serialize(writer); - byte[] writerData = writer.ToArray(); - - // try deserialize - AuthRequestMessage fresh = new AuthRequestMessage(); - fresh.Deserialize(new NetworkReader(writerData)); - Assert.That(fresh.authUsername, Is.EqualTo("abc")); - Assert.That(fresh.authPassword, Is.EqualTo("123")); - } - - [Test] - public void AuthResponseMessageTest() - { - // try setting value with constructor - AuthResponseMessage message = new AuthResponseMessage - { - code = 123, - message = "abc" - }; - Assert.That(message.code, Is.EqualTo(123)); - Assert.That(message.message, Is.EqualTo("abc")); - - // serialize - NetworkWriter writer = new NetworkWriter(); - message.Serialize(writer); - byte[] writerData = writer.ToArray(); - - // try deserialize - AuthResponseMessage fresh = new AuthResponseMessage(); - fresh.Deserialize(new NetworkReader(writerData)); - Assert.That(fresh.code, Is.EqualTo(123)); - Assert.That(fresh.message, Is.EqualTo("abc")); - } - } -} diff --git a/Assets/Mirror/Tests/Editor/BasicAuthenticatorTest.cs.meta b/Assets/Mirror/Tests/Editor/BasicAuthenticatorTest.cs.meta deleted file mode 100644 index 352bb836d..000000000 --- a/Assets/Mirror/Tests/Editor/BasicAuthenticatorTest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 14742e780e150894b983a54d36a3cdb6 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: