test class name matches file name

This commit is contained in:
Paul Pacheco 2020-04-22 19:50:55 -05:00
parent c704bc123f
commit 6066ca2aa0
34 changed files with 60 additions and 60 deletions

View File

@ -22,63 +22,63 @@ public void NetworkBehaviourAbstractBaseValid()
public void NetworkBehaviourGeneric() public void NetworkBehaviourGeneric()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.MirrorTestPlayer`1 cannot have generic parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.NetworkBehaviourGeneric`1 cannot have generic parameters"));
} }
[Test] [Test]
public void NetworkBehaviourCmdGenericParam() public void NetworkBehaviourCmdGenericParam()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::CmdCantHaveGeneric() cannot have generic parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourCmdGenericParam::CmdCantHaveGeneric() cannot have generic parameters"));
} }
[Test] [Test]
public void NetworkBehaviourCmdCoroutine() public void NetworkBehaviourCmdCoroutine()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Collections.IEnumerator MirrorTest.MirrorTestPlayer::CmdCantHaveCoroutine() cannot be a coroutine")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Collections.IEnumerator MirrorTest.NetworkBehaviourCmdCoroutine::CmdCantHaveCoroutine() cannot be a coroutine"));
} }
[Test] [Test]
public void NetworkBehaviourCmdVoidReturn() public void NetworkBehaviourCmdVoidReturn()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Int32 MirrorTest.MirrorTestPlayer::CmdCantHaveNonVoidReturn() cannot return a value. Make it void instead")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Int32 MirrorTest.NetworkBehaviourCmdVoidReturn::CmdCantHaveNonVoidReturn() cannot return a value. Make it void instead"));
} }
[Test] [Test]
public void NetworkBehaviourTargetRpcGenericParam() public void NetworkBehaviourTargetRpcGenericParam()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::TargetRpcCantHaveGeneric() cannot have generic parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourTargetRpcGenericParam::TargetRpcCantHaveGeneric() cannot have generic parameters"));
} }
[Test] [Test]
public void NetworkBehaviourTargetRpcCoroutine() public void NetworkBehaviourTargetRpcCoroutine()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Collections.IEnumerator MirrorTest.MirrorTestPlayer::TargetRpcCantHaveCoroutine() cannot be a coroutine")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Collections.IEnumerator MirrorTest.NetworkBehaviourTargetRpcCoroutine::TargetRpcCantHaveCoroutine() cannot be a coroutine"));
} }
[Test] [Test]
public void NetworkBehaviourTargetRpcVoidReturn() public void NetworkBehaviourTargetRpcVoidReturn()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Int32 MirrorTest.MirrorTestPlayer::TargetRpcCantHaveNonVoidReturn() cannot return a value. Make it void instead")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Int32 MirrorTest.NetworkBehaviourTargetRpcVoidReturn::TargetRpcCantHaveNonVoidReturn() cannot return a value. Make it void instead"));
} }
[Test] [Test]
public void NetworkBehaviourTargetRpcParamOut() public void NetworkBehaviourTargetRpcParamOut()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::TargetRpcCantHaveParamOut(Mirror.NetworkConnection,System.Int32&) cannot have out parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourTargetRpcParamOut::TargetRpcCantHaveParamOut(Mirror.NetworkConnection,System.Int32&) cannot have out parameters"));
} }
[Test] [Test]
public void NetworkBehaviourTargetRpcParamOptional() public void NetworkBehaviourTargetRpcParamOptional()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::TargetRpcCantHaveParamOptional(Mirror.NetworkConnection,System.Int32) cannot have optional parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourTargetRpcParamOptional::TargetRpcCantHaveParamOptional(Mirror.NetworkConnection,System.Int32) cannot have optional parameters"));
} }
[Test] [Test]
@ -92,14 +92,14 @@ public void NetworkBehaviourTargetRpcParamRef()
public void NetworkBehaviourTargetRpcParamAbstract() public void NetworkBehaviourTargetRpcParamAbstract()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.MirrorTestPlayer/AbstractClass can't be deserialized because it has no default constructor")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.NetworkBehaviourTargetRpcParamAbstract/AbstractClass can't be deserialized because it has no default constructor"));
} }
[Test] [Test]
public void NetworkBehaviourTargetRpcParamComponent() public void NetworkBehaviourTargetRpcParamComponent()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Cannot generate writer for component type MirrorTest.MirrorTestPlayer/ComponentClass. Use a supported type or provide a custom writer")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Cannot generate writer for component type MirrorTest.NetworkBehaviourTargetRpcParamComponent/ComponentClass. Use a supported type or provide a custom writer"));
} }
[Test] [Test]
@ -113,42 +113,42 @@ public void NetworkBehaviourTargetRpcParamNetworkConnection()
public void NetworkBehaviourTargetRpcDuplicateName() public void NetworkBehaviourTargetRpcDuplicateName()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Duplicate Target Rpc name [MirrorTest.MirrorTestPlayer:TargetRpcCantHaveSameName]")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Duplicate Target Rpc name [MirrorTest.NetworkBehaviourTargetRpcDuplicateName:TargetRpcCantHaveSameName]"));
} }
[Test] [Test]
public void NetworkBehaviourClientRpcGenericParam() public void NetworkBehaviourClientRpcGenericParam()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::RpcCantHaveGeneric() cannot have generic parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourClientRpcGenericParam::RpcCantHaveGeneric() cannot have generic parameters"));
} }
[Test] [Test]
public void NetworkBehaviourClientRpcCoroutine() public void NetworkBehaviourClientRpcCoroutine()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Collections.IEnumerator MirrorTest.MirrorTestPlayer::RpcCantHaveCoroutine() cannot be a coroutine")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Collections.IEnumerator MirrorTest.NetworkBehaviourClientRpcCoroutine::RpcCantHaveCoroutine() cannot be a coroutine"));
} }
[Test] [Test]
public void NetworkBehaviourClientRpcVoidReturn() public void NetworkBehaviourClientRpcVoidReturn()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Int32 MirrorTest.MirrorTestPlayer::RpcCantHaveNonVoidReturn() cannot return a value. Make it void instead")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Int32 MirrorTest.NetworkBehaviourClientRpcVoidReturn::RpcCantHaveNonVoidReturn() cannot return a value. Make it void instead"));
} }
[Test] [Test]
public void NetworkBehaviourClientRpcParamOut() public void NetworkBehaviourClientRpcParamOut()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::RpcCantHaveParamOut(System.Int32&) cannot have out parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourClientRpcParamOut::RpcCantHaveParamOut(System.Int32&) cannot have out parameters"));
} }
[Test] [Test]
public void NetworkBehaviourClientRpcParamOptional() public void NetworkBehaviourClientRpcParamOptional()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::RpcCantHaveParamOptional(System.Int32) cannot have optional parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourClientRpcParamOptional::RpcCantHaveParamOptional(System.Int32) cannot have optional parameters"));
} }
[Test] [Test]
@ -162,42 +162,42 @@ public void NetworkBehaviourClientRpcParamRef()
public void NetworkBehaviourClientRpcParamAbstract() public void NetworkBehaviourClientRpcParamAbstract()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.MirrorTestPlayer/AbstractClass can't be deserialized because it has no default constructor")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.NetworkBehaviourClientRpcParamAbstract/AbstractClass can't be deserialized because it has no default constructor"));
} }
[Test] [Test]
public void NetworkBehaviourClientRpcParamComponent() public void NetworkBehaviourClientRpcParamComponent()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Cannot generate writer for component type MirrorTest.MirrorTestPlayer/ComponentClass. Use a supported type or provide a custom writer")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Cannot generate writer for component type MirrorTest.NetworkBehaviourClientRpcParamComponent/ComponentClass. Use a supported type or provide a custom writer"));
} }
[Test] [Test]
public void NetworkBehaviourClientRpcParamNetworkConnection() public void NetworkBehaviourClientRpcParamNetworkConnection()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::RpcCantHaveParamOptional(Mirror.NetworkConnection) has invalid parameer monkeyCon. Cannot pass NeworkConnections")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourClientRpcParamNetworkConnection::RpcCantHaveParamOptional(Mirror.NetworkConnection) has invalid parameer monkeyCon. Cannot pass NeworkConnections"));
} }
[Test] [Test]
public void NetworkBehaviourClientRpcDuplicateName() public void NetworkBehaviourClientRpcDuplicateName()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Duplicate ClientRpc name [MirrorTest.MirrorTestPlayer:RpcCantHaveSameName]")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Duplicate ClientRpc name [MirrorTest.NetworkBehaviourClientRpcDuplicateName:RpcCantHaveSameName]"));
} }
[Test] [Test]
public void NetworkBehaviourCmdParamOut() public void NetworkBehaviourCmdParamOut()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::CmdCantHaveParamOut(System.Int32&) cannot have out parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourCmdParamOut::CmdCantHaveParamOut(System.Int32&) cannot have out parameters"));
} }
[Test] [Test]
public void NetworkBehaviourCmdParamOptional() public void NetworkBehaviourCmdParamOptional()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::CmdCantHaveParamOptional(System.Int32) cannot have optional parameters")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourCmdParamOptional::CmdCantHaveParamOptional(System.Int32) cannot have optional parameters"));
} }
[Test] [Test]
@ -211,28 +211,28 @@ public void NetworkBehaviourCmdParamRef()
public void NetworkBehaviourCmdParamAbstract() public void NetworkBehaviourCmdParamAbstract()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.MirrorTestPlayer/AbstractClass can't be deserialized because it has no default constructor")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: MirrorTest.NetworkBehaviourCmdParamAbstract/AbstractClass can't be deserialized because it has no default constructor"));
} }
[Test] [Test]
public void NetworkBehaviourCmdParamComponent() public void NetworkBehaviourCmdParamComponent()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Cannot generate writer for component type MirrorTest.MirrorTestPlayer/ComponentClass. Use a supported type or provide a custom writer")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Cannot generate writer for component type MirrorTest.NetworkBehaviourCmdParamComponent/ComponentClass. Use a supported type or provide a custom writer"));
} }
[Test] [Test]
public void NetworkBehaviourCmdParamNetworkConnection() public void NetworkBehaviourCmdParamNetworkConnection()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.MirrorTestPlayer::CmdCantHaveParamOptional(Mirror.NetworkConnection) has invalid parameer monkeyCon. Cannot pass NeworkConnections")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: System.Void MirrorTest.NetworkBehaviourCmdParamNetworkConnection::CmdCantHaveParamOptional(Mirror.NetworkConnection) has invalid parameer monkeyCon. Cannot pass NeworkConnections"));
} }
[Test] [Test]
public void NetworkBehaviourCmdDuplicateName() public void NetworkBehaviourCmdDuplicateName()
{ {
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True); Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Duplicate Command name [MirrorTest.MirrorTestPlayer:CmdCantHaveSameName]")); Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: Duplicate Command name [MirrorTest.NetworkBehaviourCmdDuplicateName:CmdCantHaveSameName]"));
} }
} }
} }

View File

@ -11,7 +11,7 @@ public class EntityConcrete : EntityBase
public int abstractDerivedSync; public int abstractDerivedSync;
} }
public class EntityTest : EntityConcrete public class NetworkBehaviourAbstractBaseValid : EntityConcrete
{ {
[SyncVar] [SyncVar]
public int concreteDerivedSync; public int concreteDerivedSync;

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcCoroutine : NetworkBehaviour
{ {
[ClientRpc] [ClientRpc]
public IEnumerator RpcCantHaveCoroutine() public IEnumerator RpcCantHaveCoroutine()

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcDuplicateName : NetworkBehaviour
{ {
[ClientRpc] [ClientRpc]
public void RpcCantHaveSameName(int abc) {} public void RpcCantHaveSameName(int abc) {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcGenericParam : NetworkBehaviour
{ {
[ClientRpc] [ClientRpc]
public void RpcCantHaveGeneric<T>() {} public void RpcCantHaveGeneric<T>() {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcParamAbstract : NetworkBehaviour
{ {
public abstract class AbstractClass public abstract class AbstractClass
{ {

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcParamComponent : NetworkBehaviour
{ {
public class ComponentClass : UnityEngine.Component public class ComponentClass : UnityEngine.Component
{ {

View File

@ -2,7 +2,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcParamNetworkConnection : NetworkBehaviour
{ {
[ClientRpc] [ClientRpc]
public void RpcCantHaveParamOptional(NetworkConnection monkeyCon) {} public void RpcCantHaveParamOptional(NetworkConnection monkeyCon) {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcParamOptional : NetworkBehaviour
{ {
[ClientRpc] [ClientRpc]
public void RpcCantHaveParamOptional(int monkeys = 12) {} public void RpcCantHaveParamOptional(int monkeys = 12) {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcParamOut : NetworkBehaviour
{ {
[ClientRpc] [ClientRpc]
public void RpcCantHaveParamOut(out int monkeys) public void RpcCantHaveParamOut(out int monkeys)

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcParamRef : NetworkBehaviour
{ {
[ClientRpc] [ClientRpc]
public void RpcCantHaveParamRef(ref int monkeys) {} public void RpcCantHaveParamRef(ref int monkeys) {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourClientRpcVoidReturn : NetworkBehaviour
{ {
[ClientRpc] [ClientRpc]
public int RpcCantHaveNonVoidReturn() public int RpcCantHaveNonVoidReturn()

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdCoroutine : NetworkBehaviour
{ {
[Command] [Command]
public IEnumerator CmdCantHaveCoroutine() public IEnumerator CmdCantHaveCoroutine()

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdDuplicateName : NetworkBehaviour
{ {
[Command] [Command]
public void CmdCantHaveSameName(int abc) {} public void CmdCantHaveSameName(int abc) {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdGenericParam : NetworkBehaviour
{ {
[Command] [Command]
public void CmdCantHaveGeneric<T>() {} public void CmdCantHaveGeneric<T>() {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdParamAbstract : NetworkBehaviour
{ {
public abstract class AbstractClass public abstract class AbstractClass
{ {

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdParamComponent : NetworkBehaviour
{ {
public class ComponentClass : UnityEngine.Component public class ComponentClass : UnityEngine.Component
{ {

View File

@ -2,7 +2,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdParamNetworkConnection : NetworkBehaviour
{ {
[Command] [Command]
public void CmdCantHaveParamOptional(NetworkConnection monkeyCon) {} public void CmdCantHaveParamOptional(NetworkConnection monkeyCon) {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdParamOptional : NetworkBehaviour
{ {
[Command] [Command]
public void CmdCantHaveParamOptional(int monkeys = 12) {} public void CmdCantHaveParamOptional(int monkeys = 12) {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdParamOut : NetworkBehaviour
{ {
[Command] [Command]
public void CmdCantHaveParamOut(out int monkeys) public void CmdCantHaveParamOut(out int monkeys)

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdParamRef : NetworkBehaviour
{ {
[Command] [Command]
public void CmdCantHaveParamRef(ref int monkeys) {} public void CmdCantHaveParamRef(ref int monkeys) {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourCmdVoidReturn : NetworkBehaviour
{ {
[Command] [Command]
public int CmdCantHaveNonVoidReturn() public int CmdCantHaveNonVoidReturn()

View File

@ -3,7 +3,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer<T> : NetworkBehaviour class NetworkBehaviourGeneric<T> : NetworkBehaviour
{ {
T genericsNotAllowed; T genericsNotAllowed;
} }

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcCoroutine : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public IEnumerator TargetRpcCantHaveCoroutine() public IEnumerator TargetRpcCantHaveCoroutine()

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcDuplicateName : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public void TargetRpcCantHaveSameName(NetworkConnection monkeyCon, int abc) {} public void TargetRpcCantHaveSameName(NetworkConnection monkeyCon, int abc) {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcGenericParam : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public void TargetRpcCantHaveGeneric<T>() {} public void TargetRpcCantHaveGeneric<T>() {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcParamAbstract : NetworkBehaviour
{ {
public abstract class AbstractClass public abstract class AbstractClass
{ {

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcParamComponent : NetworkBehaviour
{ {
public class ComponentClass : UnityEngine.Component public class ComponentClass : UnityEngine.Component
{ {

View File

@ -2,7 +2,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcParamNetworkConnection : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public void TargetRpcCantHaveParamOptional(NetworkConnection monkeyCon) {} public void TargetRpcCantHaveParamOptional(NetworkConnection monkeyCon) {}

View File

@ -2,7 +2,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcParamNetworkConnectionNotFirst : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public void TargetRpcCantHaveParamOptional(int abc, NetworkConnection monkeyCon) {} public void TargetRpcCantHaveParamOptional(int abc, NetworkConnection monkeyCon) {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcParamOptional : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public void TargetRpcCantHaveParamOptional(NetworkConnection monkeyCon, int monkeys = 12) {} public void TargetRpcCantHaveParamOptional(NetworkConnection monkeyCon, int monkeys = 12) {}

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcParamOut : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public void TargetRpcCantHaveParamOut(NetworkConnection monkeyCon, out int monkeys) public void TargetRpcCantHaveParamOut(NetworkConnection monkeyCon, out int monkeys)

View File

@ -4,7 +4,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcParamRef : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public void TargetRpcCantHaveParamRef(NetworkConnection monkeyCon, ref int monkeys) {} public void TargetRpcCantHaveParamRef(NetworkConnection monkeyCon, ref int monkeys) {}

View File

@ -5,7 +5,7 @@
namespace MirrorTest namespace MirrorTest
{ {
class MirrorTestPlayer : NetworkBehaviour class NetworkBehaviourTargetRpcVoidReturn : NetworkBehaviour
{ {
[TargetRpc] [TargetRpc]
public int TargetRpcCantHaveNonVoidReturn() public int TargetRpcCantHaveNonVoidReturn()