Boundary conditions

Oct 21, 2010 at 4:06 PM

Hi moderators

I was going through your code project. I started with Algorithms/Numbers.cs. Some of the boundary cases have not been checked. Please go through the list and consider applying them.

I am enlisting a few here. More to come.

1. Fibonacci, GCD, Tobinary, ToOctal methods have to check for integer overflow if given the max value of integer.

2. ToBinary, ToOctal methods need to check what will happen if the number is zero (0).