test class name matches file name

This commit is contained in:
Paul Pacheco 2020-04-22 17:56:41 -05:00
parent 94603d175a
commit c704bc123f
11 changed files with 19 additions and 19 deletions

View File

@ -15,63 +15,63 @@ public void MonoBehaviourValid()
public void MonoBehaviourSyncVar() public void MonoBehaviourSyncVar()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [SyncVar] System.Int32 MirrorTest.MirrorTestPlayer::potato must be inside a NetworkBehaviour. MirrorTest.MirrorTestPlayer is not a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [SyncVar] System.Int32 MirrorTest.MonoBehaviourSyncVar::potato must be inside a NetworkBehaviour. MirrorTest.MonoBehaviourSyncVar is not a NetworkBehaviour"));
} }
[Test] [Test]
public void MonoBehaviourSyncList() public void MonoBehaviourSyncList()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Mirror.SyncListInt MirrorTest.MirrorTestPlayer::potato is a SyncObject and must be inside a NetworkBehaviour. MirrorTest.MirrorTestPlayer is not a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Mirror.SyncListInt MirrorTest.MonoBehaviourSyncList::potato is a SyncObject and must be inside a NetworkBehaviour. MirrorTest.MonoBehaviourSyncList is not a NetworkBehaviour"));
} }
[Test] [Test]
public void MonoBehaviourCommand() public void MonoBehaviourCommand()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [Command] System.Void MirrorTest.MirrorTestPlayer::CmdThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [Command] System.Void MirrorTest.MonoBehaviourCommand::CmdThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
} }
[Test] [Test]
public void MonoBehaviourClientRpc() public void MonoBehaviourClientRpc()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ClientRpc] System.Void MirrorTest.MirrorTestPlayer::RpcThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ClientRpc] System.Void MirrorTest.MonoBehaviourClientRpc::RpcThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
} }
[Test] [Test]
public void MonoBehaviourTargetRpc() public void MonoBehaviourTargetRpc()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [TargetRpc] System.Void MirrorTest.MirrorTestPlayer::TargetThisCantBeOutsideNetworkBehaviour(Mirror.NetworkConnection) must be declared inside a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [TargetRpc] System.Void MirrorTest.MonoBehaviourTargetRpc::TargetThisCantBeOutsideNetworkBehaviour(Mirror.NetworkConnection) must be declared inside a NetworkBehaviour"));
} }
[Test] [Test]
public void MonoBehaviourServer() public void MonoBehaviourServer()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [Server] System.Void MirrorTest.MirrorTestPlayer::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [Server] System.Void MirrorTest.MonoBehaviourServer::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
} }
[Test] [Test]
public void MonoBehaviourServerCallback() public void MonoBehaviourServerCallback()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ServerCallback] System.Void MirrorTest.MirrorTestPlayer::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ServerCallback] System.Void MirrorTest.MonoBehaviourServerCallback::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
} }
[Test] [Test]
public void MonoBehaviourClient() public void MonoBehaviourClient()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [Client] System.Void MirrorTest.MirrorTestPlayer::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [Client] System.Void MirrorTest.MonoBehaviourClient::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
} }
[Test] [Test]
public void MonoBehaviourClientCallback() public void MonoBehaviourClientCallback()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ClientCallback] System.Void MirrorTest.MirrorTestPlayer::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ClientCallback] System.Void MirrorTest.MonoBehaviourClientCallback::ThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
} }
} }
} }

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourClient : MonoBehaviour
{ {
[Client] [Client]
void ThisCantBeOutsideNetworkBehaviour() {} void ThisCantBeOutsideNetworkBehaviour() {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourClientCallback : MonoBehaviour
{ {
[ClientCallback] [ClientCallback]
void ThisCantBeOutsideNetworkBehaviour() {} void ThisCantBeOutsideNetworkBehaviour() {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourClientRpc : MonoBehaviour
{ {
[ClientRpc] [ClientRpc]
void RpcThisCantBeOutsideNetworkBehaviour() {} void RpcThisCantBeOutsideNetworkBehaviour() {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourCommand : MonoBehaviour
{ {
[Command] [Command]
void CmdThisCantBeOutsideNetworkBehaviour() {} void CmdThisCantBeOutsideNetworkBehaviour() {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourServer : MonoBehaviour
{ {
[Server] [Server]
void ThisCantBeOutsideNetworkBehaviour() {} void ThisCantBeOutsideNetworkBehaviour() {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourServerCallback : MonoBehaviour
{ {
[ServerCallback] [ServerCallback]
void ThisCantBeOutsideNetworkBehaviour() {} void ThisCantBeOutsideNetworkBehaviour() {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourSyncList : MonoBehaviour
{ {
SyncListInt potato; SyncListInt potato;
} }

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourSyncVar : MonoBehaviour
{ {
[SyncVar] [SyncVar]
int potato; int potato;

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourTargetRpc : MonoBehaviour
{ {
[TargetRpc] [TargetRpc]
void TargetThisCantBeOutsideNetworkBehaviour(NetworkConnection nc) {} void TargetThisCantBeOutsideNetworkBehaviour(NetworkConnection nc) {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : MonoBehaviour class MonoBehaviourValid : MonoBehaviour
{ {
int monkeys = 12; int monkeys = 12;
} }