コード例 #1
0
        public void HandlePreRequestHandler_CriticalException_Tests()
        {
            // setup for tests
            HttpContextBase    context = new MockHttpContext();
            PerformanceMonitor pm      = new PerformanceMonitor();

            // Critical Exception Handling
            pm.HandlePreRequestHandler(null);
        }
コード例 #2
0
        public void HandlePreRequestHandler_Stopwatch_Tests()
        {
            // setup for tests
            HttpContextBase    context = new MockHttpContext();
            PerformanceMonitor pm      = new PerformanceMonitor();

            pm.HandlePreRequestHandler(context);

            // Stopwatch tests
            Pre_Stopwatch_Tests(context, "handler_timer");
        }