예제 #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();
        }
예제 #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();
        }
예제 #3
0
 public void is_in_partial_negative()
 {
     var currentChain = new CurrentChain(theChain, null);
     currentChain.IsInPartial().ShouldBeFalse();
 }