예제 #1
0
 public void OneNodeTreesTest()
 {
     FillFirstOneNodeTree();
     FillSecondOneNodeTree();
     Assert.IsTrue(FirstBinaryTree.Equals(FirstBinaryTree));
     Assert.IsFalse(FirstBinaryTree.Equals(SecondBinaryTree));
 }
예제 #2
0
 public void CompareTreeWithNullTest()
 {
     FillFirstBinaryTree();
     Assert.IsFalse(FirstBinaryTree.Equals(null));
 }
예제 #3
0
 public void TreesWithDifferentStructureTest()
 {
     FillFirstBinaryTree();
     FillSecondBinaryTreeWithAnotherStructure();
     Assert.IsFalse(FirstBinaryTree.Equals(EqualFirstBinaryTree));
 }
예제 #4
0
 public void DiffrentTreeObjectWithEquallyDataTest()
 {
     FillFirstBinaryTree();
     FillEqualFirstBinaryTree();
     Assert.IsTrue(FirstBinaryTree.Equals(EqualFirstBinaryTree));
 }
예제 #5
0
 public void DifferentObjectWithDifferentDataEqualityTest()
 {
     FillFirstBinaryTree();
     FillSecondBinaryTree();
     Assert.IsFalse(FirstBinaryTree.Equals(SecondBinaryTree));
 }
예제 #6
0
 public void SameTreeObjectEqualityTest()
 {
     FillFirstBinaryTree();
     Assert.IsTrue(FirstBinaryTree.Equals(FirstBinaryTree));
 }