public GrahamConvexHullTest( )
{
// prepare 0st list
pointsList0.Add( new IntPoint( 0, 0 ) );
// prepare 1st list
pointsList1.Add( new IntPoint( 0, 0 ) );
pointsList1.Add( new IntPoint( 100, 0 ) );
// prepare 2nd list
pointsList2.AddRange( pointsList1 );
pointsList2.Add( new IntPoint( 100, 100 ) );
// prepare 3rd list
pointsList3.AddRange( pointsList2 );
pointsList3.Add( new IntPoint( 0, 100 ) );
// prepare 4th list
pointsList4.AddRange( pointsList2 );
pointsList4.Add( new IntPoint( 60, 40 ) );
// prepare 5th list
pointsList5.AddRange( pointsList3 );
pointsList5.Add( new IntPoint( 50, 50 ) );
// prepare 6th list
pointsList6.AddRange( pointsList3 );
pointsList6.Add( new IntPoint( 0, 0 ) );
// prepare 7th list
pointsList7.AddRange( pointsList3 );
pointsList7.AddRange( pointsList3 );
// prepare 8th list
pointsList8.AddRange( pointsList3 );
pointsList8.Add( new IntPoint( 50, -10 ) );
pointsList8.Add( new IntPoint( 110, 50 ) );
pointsList8.Add( new IntPoint( 50, 110 ) );
expectedHull8.AddRange( pointsList3 );
expectedHull8.Insert( 1, new IntPoint( 50, -10 ) );
expectedHull8.Insert( 3, new IntPoint( 110, 50 ) );
expectedHull8.Insert( 5, new IntPoint( 50, 110 ) );
// prepare 9th list
pointsList9.AddRange( pointsList8 );
pointsList9.Add( new IntPoint( 50, 10 ) );
pointsList9.Add( new IntPoint( 90, 50 ) );
pointsList9.Add( new IntPoint( 50, 90 ) );
pointsList9.Add( new IntPoint( 10, 50 ) );
// now prepare list of tests
pointsLists.Add( pointsList0 );
pointsLists.Add( pointsList1 );
pointsLists.Add( pointsList2 );
pointsLists.Add( pointsList3 );
expectedHulls.AddRange( pointsLists );
pointsLists.Add( pointsList4 );
expectedHulls.Add( pointsList2 );
pointsLists.Add( pointsList5 );
expectedHulls.Add( pointsList3 );
pointsLists.Add( pointsList6 );
expectedHulls.Add( pointsList3 );
pointsLists.Add( pointsList7 );
expectedHulls.Add( pointsList3 );
pointsLists.Add( pointsList8 );
expectedHulls.Add( expectedHull8 );
pointsLists.Add( pointsList9 );
expectedHulls.Add( expectedHull8 );
}