@@ -753,6 +753,8 @@ public void ShouldRippleUncheckCorrectly()
753
753
var bNode = testTree . CreatedTreeNodes [ 4 ] ;
754
754
var cNode = testTree . CreatedTreeNodes [ 5 ] ;
755
755
756
+ // Initial state, everything unchecked
757
+
756
758
Assert . AreEqual ( CheckState . Empty , rootNode . CheckState ) ;
757
759
Assert . AreEqual ( CheckState . Empty , parentNode . CheckState ) ;
758
760
Assert . AreEqual ( CheckState . Empty , aNode . CheckState ) ;
@@ -761,6 +763,8 @@ public void ShouldRippleUncheckCorrectly()
761
763
762
764
testTree . ToggleNodeChecked ( 1 , rootNode ) ;
763
765
766
+ // Checked the root node, everything checked
767
+
764
768
Assert . AreEqual ( CheckState . Checked , rootNode . CheckState ) ;
765
769
Assert . AreEqual ( CheckState . Checked , parentNode . CheckState ) ;
766
770
Assert . AreEqual ( CheckState . Checked , aNode . CheckState ) ;
@@ -770,6 +774,8 @@ public void ShouldRippleUncheckCorrectly()
770
774
testTreeListener . Received ( 3 ) . AddCheckedNode ( Arg . Any < TestTreeNode > ( ) ) ;
771
775
testTreeListener . ClearReceivedCalls ( ) ;
772
776
777
+ // Unchecked c.txt, c.txt unchecked, parents mixed
778
+
773
779
testTree . ToggleNodeChecked ( 5 , cNode ) ;
774
780
775
781
Assert . AreEqual ( CheckState . Mixed , rootNode . CheckState ) ;
@@ -783,6 +789,8 @@ public void ShouldRippleUncheckCorrectly()
783
789
784
790
testTree . ToggleNodeChecked ( 5 , cNode ) ;
785
791
792
+ // Checked c.txt, everything checked
793
+
786
794
Assert . AreEqual ( CheckState . Checked , rootNode . CheckState ) ;
787
795
Assert . AreEqual ( CheckState . Checked , parentNode . CheckState ) ;
788
796
Assert . AreEqual ( CheckState . Checked , aNode . CheckState ) ;
0 commit comments