Example #1
0
        public void InactiveChildNotEndedAgain()
        {
            var parallel  = new Parallel();
            var childNode = new EventTrackingNode(NodeState.Inactive);

            parallel.Children.Add(childNode);

            parallel.End();

            Assert.IsFalse(childNode.HasEnded);
        }
Example #2
0
        public void ActiveChildGetsEnded()
        {
            var parallel  = new Parallel();
            var childNode = new EventTrackingNode(NodeState.Active);

            parallel.Children.Add(childNode);

            parallel.End();

            Assert.IsTrue(childNode.HasEnded);
        }