public void ShouldPassWithInOutRef() { ISignatureTestTarget target = GetTarget(); string two; float three = 1.0f; target.MethodWithInOutByrefParams(1, out two, ref three, 5.0M); Assert.AreEqual("owt", two); Assert.AreEqual(3.0f, three); }
public void ShouldPassWithOutParams() { ISignatureTestTarget target = GetTarget(); int first; string second; target.MethodWithOutParams(out first, out second); Assert.AreEqual(1, first); Assert.AreEqual("two", second); }
public void ShouldPassWithVarArgs() { ISignatureTestTarget target = GetTarget(); target.MethodWithVarArgs(1, "two", "two and a half", "two and three quarters"); }
public void ShouldPassWithSimpleInputs() { ISignatureTestTarget target = GetTarget(); target.MethodWithSimpleInputs(1, "two"); }
public void ShouldPassWithNoParameters() { ISignatureTestTarget target = GetTarget(); target.MethodWithNoParameters(); }