示例#1
0
        public void Should_order_filters_correctly()
        {
            var instance = new TestLulz();
            var test     = new ReflectedTestMethod(instance.GetType().GetMethod("Test2"), instance);

            test.Run(new ExecutionContext());

            const string expected = "setup1 setup2 prefilter test2 postfilter teardown1 teardown2 ";

            Ass.That(Lulz, Is.EqualTo(expected));
        }
示例#2
0
        public void Should_setup_and_teardown_in_the_correct_order()
        {
            var instance = new TestLulz();
            var test     = new ReflectedTestMethod(instance.GetType().GetMethod("Test"), instance);

            test.Run(new ExecutionContext());

            const string expected = "prefilter setup1 setup2 test teardown1 teardown2 postfilter ";

            Ass.That(Lulz, Is.EqualTo(expected));
        }