Exemple #1
0
        public void ShouldPassWithInOutRef()
        {
            SignatureTestTarget 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);
        }
Exemple #2
0
        public void ShouldPassWithOutParams()
        {
            SignatureTestTarget target = GetTarget();
            int    first;
            string second;

            target.MethodWithOutParams(out first, out second);
            Assert.AreEqual(1, first);
            Assert.AreEqual("two", second);
        }
Exemple #3
0
        public void ShouldPassWithVarArgs()
        {
            SignatureTestTarget target = GetTarget();

            target.MethodWithVarArgs(1, "two", "two and a half", "two and three quarters");
        }
Exemple #4
0
        public void ShouldPassWithSimpleInputs()
        {
            SignatureTestTarget target = GetTarget();

            target.MethodWithSimpleInputs(1, "two");
        }
Exemple #5
0
        public void ShouldPassWithNoParameters()
        {
            SignatureTestTarget target = GetTarget();

            target.MethodWithNoParameters();
        }