Ejemplo n.º 1
0
        public void InvokeMethodAllInOne()
        {
            var instance = new MyClassOfMethods();
            var argument = new MyThirdClass();

            instance.InvokeMethodMatchingParameters(argument);
        }
Ejemplo n.º 2
0
        public void FactNoArgument()
        {
            var instance = new MyClassOfMethods();

            instance.MethodB();

            Test(instance, null);
        }
Ejemplo n.º 3
0
        public void FactInherited()
        {
            var instance = new MyClassOfMethods();
            var argument = new MyThirdClass();

            instance.MethodE(argument);

            Test(instance, argument);
        }
Ejemplo n.º 4
0
        public void FactEmbeddedAndDerived()
        {
            var instance = new MyClassOfMethods();
            var argument = new MyClass <ConstraintB>();

            instance.MethodE(argument);

            Test(instance, argument);
        }
Ejemplo n.º 5
0
        public void TestDerived()
        {
            var instance = new MyClassOfMethods();
            var argument = new ConstraintB();

            instance.MethodD(argument);

            Test(instance, argument);
        }
Ejemplo n.º 6
0
        public void FactNoGenericsButDerived()
        {
            var instance = new MyClassOfMethods();
            var argument = new ConstraintB();

            instance.MethodC(argument);

            Test(instance, argument);
        }
Ejemplo n.º 7
0
        public void Fact()
        {
            var instance = new MyClassOfMethods();
            var argument = new ConstraintA();

            instance.MethodD(argument);


            Test(instance, argument);
        }