public void OneNodeTreesTest() { FillFirstOneNodeTree(); FillSecondOneNodeTree(); Assert.IsTrue(FirstBinaryTree.Equals(FirstBinaryTree)); Assert.IsFalse(FirstBinaryTree.Equals(SecondBinaryTree)); }
public void CompareTreeWithNullTest() { FillFirstBinaryTree(); Assert.IsFalse(FirstBinaryTree.Equals(null)); }
public void TreesWithDifferentStructureTest() { FillFirstBinaryTree(); FillSecondBinaryTreeWithAnotherStructure(); Assert.IsFalse(FirstBinaryTree.Equals(EqualFirstBinaryTree)); }
public void DiffrentTreeObjectWithEquallyDataTest() { FillFirstBinaryTree(); FillEqualFirstBinaryTree(); Assert.IsTrue(FirstBinaryTree.Equals(EqualFirstBinaryTree)); }
public void DifferentObjectWithDifferentDataEqualityTest() { FillFirstBinaryTree(); FillSecondBinaryTree(); Assert.IsFalse(FirstBinaryTree.Equals(SecondBinaryTree)); }
public void SameTreeObjectEqualityTest() { FillFirstBinaryTree(); Assert.IsTrue(FirstBinaryTree.Equals(FirstBinaryTree)); }