Beispiel #1
0
        public void is_not_equal_when_has_different_child_nodes()
        {
            var items = new List <SimpleLongItem> {
                new SimpleLongItem(-1, 0),
                new SimpleLongItem(0, 1),
                new SimpleLongItem(0, 2),
                new SimpleLongItem(0, 3)
            };

            var node = items.ToRootTreeNodes <SimpleLongItem, long>()[0];

            items[3] = new SimpleLongItem(0, 10);
            var otherNode = items.ToRootTreeNodes <SimpleLongItem, long>()[0];

            Assert.False(node.IsDataCompletelyEqual(otherNode));
        }
 private bool Equals(SimpleLongItem other)
 {
     return((ParentId, Id, Title).Equals((other.ParentId, other.Id, other.Title)));
 }