Boundary testing values focuses on testing the boundary values of your program, like class invariants implemented using if statements, etc.
Example: class Student: A student has a name, which must be at least 2 characters long.
We must then test Student using the following test cases
Further reading http://extremesoftwaretesting.com/Techniques/BoundaryValues.html
In this exercise you must program a class LineSegment, which is basically two points x1 and x2, where x1 <= x2.
x1 and x2 should be of type int.
Make one method and test it (with good coverage) before you start making the next method.
You can do test-first or test-after as you like, but you must test one method before you implement the next method
In this exercise you must program a class LineSegmentDouble. This is very similar to LineSegment, except that x1 and x2 are now double (not int).
In Visual Studio make a copy of the LineSegment class, rename it LineSegmentDouble, and adapt it to use double.
Do the same with the LineSegmentTest class.
In the test class you must use a special version of Assert.equals(expected, actual, delta), where delta is a very small number (like 0.00001).
Now lets add another dimension: Make a class Rectangle (x1, x2, y1, y2)
The rectangle has to oppisite corners (x1, y1) and (x2, y2).
Similar methods as LineSegment - and testing!
Add yet another dimension: Make a class Box(x1, x2, y1, y2, z1, z2)