public void Calculate_EmptyTree_ReturnsZero() { var expectedValue = 0; var actualValue = BSTCost.Calculate(null); Assert.AreEqual(expectedValue, actualValue); }
public void Calculate_Test3() { var root = TestValues1[3]; var value2 = TestValues1[2]; var value3 = TestValues1[0]; var value4 = TestValues1[1]; var bst = new BST(root); bst.Add(value2); bst.Add(value3); bst.Add(value4); var expectedValue = 63; var calculatedValue = BSTCost.Calculate(bst); Assert.AreEqual(expectedValue, calculatedValue); }