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()
{
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]
public void MonoBehaviourSyncList()
{
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]
public void MonoBehaviourCommand()
{
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]
public void MonoBehaviourClientRpc()
{
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]
public void MonoBehaviourTargetRpc()
{
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]
public void MonoBehaviourServer()
{
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]
public void MonoBehaviourServerCallback()
{
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]
public void MonoBehaviourClient()
{
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]
public void MonoBehaviourClientCallback()
{
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
{
class MirrorTestPlayer : MonoBehaviour
class MonoBehaviourClient : MonoBehaviour
{
[Client]
void ThisCantBeOutsideNetworkBehaviour() {}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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