public void InactiveChildNotEndedAgain() { var parallel = new Parallel(); var childNode = new EventTrackingNode(NodeState.Inactive); parallel.Children.Add(childNode); parallel.End(); Assert.IsFalse(childNode.HasEnded); }
public void ActiveChildGetsEnded() { var parallel = new Parallel(); var childNode = new EventTrackingNode(NodeState.Active); parallel.Children.Add(childNode); parallel.End(); Assert.IsTrue(childNode.HasEnded); }