Lost all left subtrees in Remove method: FindParent(largestValue.Value).Right = null;

The Problem Code Snippet { BinaryTreeNode<T> largestValue = nodeToRemove.Left; while (largestValue.Right != null) { largestValue = largestValue.Right; ...

Id #17144 | Release: None | Updated: Nov 18 at 4:13 AM by Chiyu | Created: Nov 18 at 4:13 AM by Chiyu

Remove method of Heap throws IndexOutOfRangeException

public void RemoveThrowsIndexOutOfRangeException4001281575269() { Heap<int> heap; bool b; heap = new Heap<int>(); b = heap.Remove(0); }

Id #11793 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by sthumma | Created: Aug 20, 2010 at 5:14 AM by sthumma

AddBefore of DoublyLinkedList throws NullReferenceException

1. public void AddBeforeThrowsNullReferenceException6181281577058() { DoublyLinkedList<int> doublyLinkedList; doublyLinkedList = new DoublyLinkedList<int>(); doublyLinke...

Id #11792 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by sthumma | Created: Aug 20, 2010 at 5:13 AM by sthumma

AddAfter of DoublyLinkedList throws NullReferenceException

public void AddAfter101281577093() { DoublyLinkedList<int> doublyLinkedList; doublyLinkedList = new DoublyLinkedList<int>(); doublyLinkedList.AddLast(0); DoublyL...

Id #11791 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by sthumma | Created: Aug 20, 2010 at 5:12 AM by sthumma

CopyTo of BinarySearchTree throws ArgumentException

public void CopyToThrowsArgumentException3051281576371() { BinarySearchTree<int> binarySearchTree; binarySearchTree = new BinarySearchTree<int>(); binarySearchTree.Add(0...

Id #11790 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by sthumma | Created: Aug 20, 2010 at 5:10 AM by sthumma

NullReferenceExceptions in BinarySearchTree

Following test cases throw NullReferenceExceptions BinarySearchTree.     public void RemoveThrowsNullReferenceException4301281576193() { BinarySearchTree<int> binarySearchTree; bool b; ...

Id #11789 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by sthumma | Created: Aug 20, 2010 at 5:05 AM by sthumma

FormatException thrown by public methods in Algorithms namespace

1. public void ToBinaryThrowsFormatException1771281578009() { int i; i = Numbers.ToBinary(0); }   2.   public void ToOctalThrowsFormatException1771281578040() { int i; ...

Id #11788 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by sthumma | Created: Aug 20, 2010 at 5:01 AM by sthumma

IndexOutOfRangeException thrown by public methods in Algorithms namespace

Following test cases throw IndexOutOfRangeException.     public void RadixSortThrowsIndexOutOfRangeException4131281576033() { IList<string> iList; string[] ss = new string[2]; ss[0] =...

Id #11787 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by sthumma | Created: Aug 20, 2010 at 5:00 AM by sthumma

Overflow exceptions thrown in many classes from Algorithms namespace

Invoking public methods in Numbers class throws overflow exceptions due to not handling of specific scenarios as follows:   Number.Fibonacci(int.MaxValue) Numbers.GreatestCommonDenominator(-1, int...

Id #11786 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by sthumma | Created: Aug 20, 2010 at 4:49 AM by sthumma

Return value not as expected. SinglyLinkedList class, Remove method

When the SinglyLinkedList<string> contains {“”,null} and item to remove is “\0”, Remove method returns true, when the expected return value is false.

Id #8858 | Release: None | Updated: Feb 13, 2013 at 11:21 PM by mrmarri | Created: Sep 27, 2009 at 8:29 PM by mrmarri