mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
test class name matches file name
This commit is contained in:
parent
94603d175a
commit
c704bc123f
@ -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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourClient : MonoBehaviour
|
||||||
{
|
{
|
||||||
[Client]
|
[Client]
|
||||||
void ThisCantBeOutsideNetworkBehaviour() {}
|
void ThisCantBeOutsideNetworkBehaviour() {}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourClientCallback : MonoBehaviour
|
||||||
{
|
{
|
||||||
[ClientCallback]
|
[ClientCallback]
|
||||||
void ThisCantBeOutsideNetworkBehaviour() {}
|
void ThisCantBeOutsideNetworkBehaviour() {}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourClientRpc : MonoBehaviour
|
||||||
{
|
{
|
||||||
[ClientRpc]
|
[ClientRpc]
|
||||||
void RpcThisCantBeOutsideNetworkBehaviour() {}
|
void RpcThisCantBeOutsideNetworkBehaviour() {}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourCommand : MonoBehaviour
|
||||||
{
|
{
|
||||||
[Command]
|
[Command]
|
||||||
void CmdThisCantBeOutsideNetworkBehaviour() {}
|
void CmdThisCantBeOutsideNetworkBehaviour() {}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourServer : MonoBehaviour
|
||||||
{
|
{
|
||||||
[Server]
|
[Server]
|
||||||
void ThisCantBeOutsideNetworkBehaviour() {}
|
void ThisCantBeOutsideNetworkBehaviour() {}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourServerCallback : MonoBehaviour
|
||||||
{
|
{
|
||||||
[ServerCallback]
|
[ServerCallback]
|
||||||
void ThisCantBeOutsideNetworkBehaviour() {}
|
void ThisCantBeOutsideNetworkBehaviour() {}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourSyncList : MonoBehaviour
|
||||||
{
|
{
|
||||||
SyncListInt potato;
|
SyncListInt potato;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourSyncVar : MonoBehaviour
|
||||||
{
|
{
|
||||||
[SyncVar]
|
[SyncVar]
|
||||||
int potato;
|
int potato;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourTargetRpc : MonoBehaviour
|
||||||
{
|
{
|
||||||
[TargetRpc]
|
[TargetRpc]
|
||||||
void TargetThisCantBeOutsideNetworkBehaviour(NetworkConnection nc) {}
|
void TargetThisCantBeOutsideNetworkBehaviour(NetworkConnection nc) {}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
namespace MirrorTest
|
namespace MirrorTest
|
||||||
{
|
{
|
||||||
class MirrorTestPlayer : MonoBehaviour
|
class MonoBehaviourValid : MonoBehaviour
|
||||||
{
|
{
|
||||||
int monkeys = 12;
|
int monkeys = 12;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user