Ejemplo n.º 1
0
        public void is_in_partial_positive()
        {
            var currentChain = new CurrentChain(theChain, null);

            currentChain.Push(theSecondChain);
            currentChain.IsInPartial().ShouldBeTrue();

            currentChain.Push(theThirdChain);
            currentChain.IsInPartial().ShouldBeTrue();

            currentChain.Pop();
            currentChain.IsInPartial().ShouldBeTrue();
        }
Ejemplo n.º 2
0
        public void is_in_partial_negative_after_popping_the_last_child()
        {
            var currentChain = new CurrentChain(theChain, null);

            currentChain.Push(theSecondChain);
            currentChain.Push(theThirdChain);

            currentChain.Pop();
            currentChain.Pop();

            currentChain.IsInPartial().ShouldBeFalse();
        }
Ejemplo n.º 3
0
        public void is_in_partial_negative()
        {
            var currentChain = new CurrentChain(theChain, null);

            currentChain.IsInPartial().ShouldBeFalse();
        }