Exemplo n.º 1
0
        public void EnvironmentUserName()
        {
            var output = Console.Out;

            _environment = new EnvironmentWrap();
            SpeedTesting.Do(output, 5, 2000,
                            (r) => environment_username(r),
                            (r) => environment_username_wrapper(r));
        }
Exemplo n.º 2
0
        public void ThroughtputTime()
        {
            var tester1 = new FirstCallTester(Console.Out);
            var tester2 = new FirstCallTester(Console.Out);

            var real  = CreateRealProxy(tester1);
            var unity = CreateUnityInerceptor(tester2);

            SpeedTesting.Do(Console.Out, 5, 10000, (r) => RealTime(r, real), (r) => UnityTime(r, unity));
        }
Exemplo n.º 3
0
        public void DateTimeNow_callManyTimes()
        {
            var output = Console.Out;

            _dateTime = new DateTimeSystem();


            SpeedTesting.Do(output, 5, 200000,
                            (r) => date_time_now(r),
                            (r) => date_time_now_wapper(r));
        }