1
Vote

NullReferenceExceptions in BinarySearchTree

description

Following test cases throw NullReferenceExceptions BinarySearchTree.
 
  1.  
    public void RemoveThrowsNullReferenceException4301281576193()
    {
        BinarySearchTree<int> binarySearchTree;
        bool b;
        binarySearchTree = new BinarySearchTree<int>();
        binarySearchTree.Add(134217985);
        binarySearchTree.Add(0);
        b = binarySearchTree.Remove(134217985);
    }
     
    2.
     
    public void RemoveThrowsNullReferenceException541281576193()
    {
        BinarySearchTree<int> binarySearchTree;
        bool b;
        binarySearchTree = new BinarySearchTree<int>();
        binarySearchTree.Add(-2109603803);
        binarySearchTree.Add(16);
        binarySearchTree.Remove(0);
        b = binarySearchTree.Remove(-2109603803);
    }
     
    3.
     
    public void RemoveThrowsNullReferenceException8101281576193()
    {
        BinarySearchTree<int> binarySearchTree;
        bool b;
        binarySearchTree = new BinarySearchTree<int>();
        binarySearchTree.Add(0);
        binarySearchTree.Add(0);
        binarySearchTree.Add(0);
        b = binarySearchTree.Remove(0);
    }

comments