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