public void RunCompositeRunTwice() { TestTraceListener trace = new TestTraceListener(); Log.AddListener(trace); TestPlan target = getTestTestPlan(); target.Open(); target.Execute(); target.Execute(); target.Close(); Log.RemoveListener(trace); trace.AssertErrors(); TestTestStep step = target.Steps[0] as TestTestStep; Assert.AreEqual(2, step.PrePlanRunCount, "PrePlanRun was not called the correct number of times."); Assert.AreEqual(2, step.PostPlanRunCount, "PostPlanRun was not called the correct number of times."); }