示例#1
0
        protected override void Before_all_tests()
        {
            base.Before_all_tests();

            var classUnderTest = new ClassUnderTest();
            var testType = classUnderTest.GetType();
            var methodUnderTest = testType.GetMethod("PassingMethodUnderTest");

            _methodTester = new MethodTester(methodUnderTest, testType);
            _methodTesterMonitor = new MethodTesterMonitor(_methodTester);
            _methodTester.Initialize();
        }
示例#2
0
        protected override void Before_all_tests()
        {
            base.Before_all_tests();

            var classUnderTest  = new ClassUnderTest();
            var testType        = classUnderTest.GetType();
            var methodUnderTest = testType.GetMethod("PassingMethodUnderTest");

            _methodTester        = new MethodTester(methodUnderTest, testType);
            _methodTesterMonitor = new MethodTesterMonitor(_methodTester);
            _methodTester.Initialize();
        }