static public void Test(Tracer tracer) { tracer.StartTrace(); TestEZ.Test(tracer); RecursionTest.Test(1, tracer); tracer.StopTrace(); }
public void TestRecMethod() { RecursionTest.Test(0, tracer); var actual = tracer.GetTraceResult().Theards[Thread.CurrentThread.ManagedThreadId].Methods[0]; var expected = new MethodTraceResult(); expected.MethodName = "Test"; expected.MethodClassName = "RecursionTest"; expected.Methods.Add(new MethodTraceResult()); expected.Methods[0].MethodClassName = "RecursionTest"; expected.Methods[0].MethodName = "Test"; try { CheckAreEqual(expected, actual); CheckAreEqual(expected.Methods[0], actual.Methods[0]); logger.Info(nameof(TestRecMethod) + " - passed"); } catch (Exception e) { logger.Error(e, nameof(TestRecMethod) + " - failed"); } }