Esempio n. 1
0
        public void RegisterTestCasesTo(TestDependencyRegistry registry)
        {
            registry.RegisterParameters(() => parameterised_test(1));
            registry.RegisterParameters(() => parameterised_test(2));
            registry.RegisterParameters(() => parameterised_test(3));
            registry.RegisterParameters(() => parameterised_test(4));

            registry.RegisterParameters(() => parameterised_test_with_enum(TestParameterEnum.First));
            registry.RegisterParameters(() => parameterised_test_with_enum(TestParameterEnum.Second));
        }
Esempio n. 2
0
        public void RegisterTestCasesTo(TestDependencyRegistry registry)
        {
            registry.RegisterParameters(() => I_do_stuff("case1", true));

            registry.RegisterParameters(() => I_do_stuff("case2", false));

            registry.RegisterParameters(() => I_do_stuff("case3", true));

            registry.RegisterParameters(() => I_do_stuff("case4", false));

            registry.RegisterParameters(() => I_do_stuff("case5", true));

            registry.RegisterParameters(() => I_do_stuff_and_return_bool("case6", true));

            registry.RegisterParameters(() => I_do_stuff_and_return_bool("case7", false));

            registry.RegisterParameters(() => I_do_stuff_and_return_task("case8", false));

            registry.RegisterParameters(() => I_do_stuff_and_return_task_of_bool("case9", false));

            registry.RegisterParameters(() => I_use_enum(ParameterizedTestEnum.ValueOne));

            registry.RegisterParameters(() => I_use_enum(ParameterizedTestEnum.ValueTwo));
        }