Tests: NetworkMessages namespace for grouping in test runner

This commit is contained in:
mischa 2023-04-21 13:58:51 +08:00
parent 38dd2ae960
commit ce0b8eabd9
9 changed files with 10 additions and 7 deletions

View File

@ -3,7 +3,7 @@
// Keep the old class inheritance tests in case we ever go back to classes.
using NUnit.Framework;
namespace Mirror.Tests.MessageTests
namespace Mirror.Tests.NetworkMessagesTests
{
class ParentMessage : NetworkMessage
{

View File

@ -1,6 +1,6 @@
using NUnit.Framework;
namespace Mirror.Tests.MessageTests
namespace Mirror.Tests.NetworkMessagesTests
{
struct TestMessage : NetworkMessage
{

View File

@ -1,9 +1,8 @@
using System;
using Mirror.Tests.MessageTests;
using NUnit.Framework;
using UnityEngine;
namespace Mirror.Tests
namespace Mirror.Tests.NetworkMessagesTests
{
[TestFixture]
public class NetworkMessagesTest
@ -46,7 +45,7 @@ public void GetId()
{
// "Mirror.Tests.MessageTests.TestMessage"
Debug.Log(typeof(TestMessage).FullName);
Assert.That(NetworkMessageId<TestMessage>.Id, Is.EqualTo(0x8706));
Assert.That(NetworkMessageId<TestMessage>.Id, Is.EqualTo(22739));
}
[Test]

View File

@ -1,6 +1,6 @@
using NUnit.Framework;
namespace Mirror.Tests.MessageTests
namespace Mirror.Tests.NetworkMessagesTests
{
struct NoArgMethodMessage : NetworkMessage
{

View File

@ -1,6 +1,6 @@
using NUnit.Framework;
namespace Mirror.Tests.StructMessages
namespace Mirror.Tests.NetworkMessagesTests
{
public struct SomeStructMessage : NetworkMessage
{

View File

@ -1,6 +1,7 @@
// Generated by CollectionWriterGenerator.cs
using System;
using System.Collections.Generic;
using Mirror.Tests.NetworkMessagesTests;
using NUnit.Framework;
using UnityEngine;

View File

@ -1,3 +1,4 @@
using Mirror.Tests.NetworkMessagesTests;
using NUnit.Framework;
namespace Mirror.Tests

View File

@ -1,3 +1,4 @@
using Mirror.Tests.NetworkMessagesTests;
using NUnit.Framework;
using UnityEngine;

View File

@ -4,6 +4,7 @@
using System.Threading;
using Mirror.Tests.NetworkBehaviours;
using Mirror.Tests.NetworkIdentities;
using Mirror.Tests.NetworkMessagesTests;
using Mirror.Tests.SyncCollections;
using NUnit.Framework;
using UnityEngine;