mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
remove targetrpc first parameter networkconnection test because it's optional now
This commit is contained in:
parent
672711637f
commit
8f8856d320
@ -425,14 +425,6 @@ public void NetworkBehaviourTargetRpcParamNetworkConnection()
|
||||
Assert.That(m_weaverErrors.Count, Is.EqualTo(0));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void NetworkBehaviourTargetRpcParamNetworkConnectionNotFirst()
|
||||
{
|
||||
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
|
||||
Assert.That(m_weaverErrors.Count, Is.EqualTo(1));
|
||||
Assert.That(m_weaverErrors[0], Does.Match("Target Rpc .* first parameter must be a NetworkConnection"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void NetworkBehaviourTargetRpcDuplicateName()
|
||||
{
|
||||
@ -651,22 +643,6 @@ public void TargetRpcCantBeStatic()
|
||||
Assert.That(m_weaverErrors.Count, Is.EqualTo(1));
|
||||
Assert.That(m_weaverErrors[0], Does.Match("TargetRpc function .* cant be a static method"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TargetRpcNetworkConnectionMissing()
|
||||
{
|
||||
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
|
||||
Assert.That(m_weaverErrors.Count, Is.EqualTo(1));
|
||||
Assert.That(m_weaverErrors[0], Does.Match("Target Rpc function .* must have a NetworkConnection as the first parameter"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TargetRpcNetworkConnectionNotFirst()
|
||||
{
|
||||
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
|
||||
Assert.That(m_weaverErrors.Count, Is.EqualTo(1));
|
||||
Assert.That(m_weaverErrors[0], Does.Match("Target Rpc function .* first parameter must be a NetworkConnection"));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region TargetRpc tests
|
||||
|
Loading…
Reference in New Issue
Block a user