remove targetrpc first parameter networkconnection test because it's optional now

This commit is contained in:
vis2k 2019-03-18 13:07:30 +01:00
parent 672711637f
commit 8f8856d320

View File

@ -425,14 +425,6 @@ public void NetworkBehaviourTargetRpcParamNetworkConnection()
Assert.That(m_weaverErrors.Count, Is.EqualTo(0)); 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] [Test]
public void NetworkBehaviourTargetRpcDuplicateName() public void NetworkBehaviourTargetRpcDuplicateName()
{ {
@ -651,22 +643,6 @@ public void TargetRpcCantBeStatic()
Assert.That(m_weaverErrors.Count, Is.EqualTo(1)); Assert.That(m_weaverErrors.Count, Is.EqualTo(1));
Assert.That(m_weaverErrors[0], Does.Match("TargetRpc function .* cant be a static method")); 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 #endregion
#region TargetRpc tests #region TargetRpc tests