示例#1
0
 static public void InsertTestMethod()
 {
     tracer.StartTrace();
     TestEZ.Test();
     Thread.Sleep(10);
     tracer.StopTrace();
 }
示例#2
0
        public void TestEZMethod()
        {
            TestEZ.Test();
            var actual   = tracer.GetTraceResult().Theards[Thread.CurrentThread.ManagedThreadId].Methods[0];
            var expected = new MethodTraceResult();

            expected.MethodName      = "Test";
            expected.MethodClassName = "TestEZ";
            CheckAreEqual(expected, actual);
        }
示例#3
0
 static public void Test(int i)
 {
     tracer.StartTrace();
     i++;
     TestEZ.Test();
     if (i < 2)
     {
         Test(i);
     }
     tracer.StopTrace();
 }
示例#4
0
        public void TestRowMethod()
        {
            TestEZ.Test();
            TestEZ.Test();
            TestEZ.Test();
            var actual   = tracer.GetTraceResult().Theards[Thread.CurrentThread.ManagedThreadId].Methods.Count;
            var expected = new MethodTraceResult();

            expected.Methods.Add(new MethodTraceResult());
            expected.Methods.Add(new MethodTraceResult());
            expected.Methods.Add(new MethodTraceResult());
            Assert.AreEqual(expected.Methods.Count, actual);
        }