Esempio n. 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();
        }
Esempio n. 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();
        }