static public void InsertTestMethod() { tracer.StartTrace(); TestEZ.Test(); Thread.Sleep(10); tracer.StopTrace(); }
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); }
static public void Test(int i) { tracer.StartTrace(); i++; TestEZ.Test(); if (i < 2) { Test(i); } tracer.StopTrace(); }
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); }