public void TestSimpleConstructor()
        {
            MockedGraphicsDeviceService mockGraphicsDeviceService =
                new MockedGraphicsDeviceService();

            using (IDisposable keeper = mockGraphicsDeviceService.CreateDevice()) {
                WaterGrid theGrid = new WaterGrid(
                    mockGraphicsDeviceService.GraphicsDevice,
                    new Vector2(-10.0f, -10.0f), new Vector2(10.0f, 10.0f)
                    );
                theGrid.Dispose();
            }
        }
        public void TestRenderingProperties()
        {
            MockedGraphicsDeviceService mockGraphicsDeviceService =
                new MockedGraphicsDeviceService();

            using (IDisposable keeper = mockGraphicsDeviceService.CreateDevice()) {
                using (
                    WaterGrid theGrid = new WaterGrid(
                        mockGraphicsDeviceService.GraphicsDevice,
                        new Vector2(-10.0f, -10.0f), new Vector2(10.0f, 10.0f),
                        20, 20
                        )
                    ) {
                    Assert.IsNotNull(theGrid.VertexBuffer);
                    Assert.IsNotNull(theGrid.IndexBuffer);
                }
            }
        }
        public void TestStatisticalProperties()
        {
            MockedGraphicsDeviceService mockGraphicsDeviceService =
                new MockedGraphicsDeviceService();

            using (IDisposable keeper = mockGraphicsDeviceService.CreateDevice()) {
                using (
                    WaterGrid theGrid = new WaterGrid(
                        mockGraphicsDeviceService.GraphicsDevice,
                        new Vector2(-10.0f, -10.0f), new Vector2(10.0f, 10.0f),
                        4, 4
                        )
                    ) {
                    Assert.AreEqual(PrimitiveType.TriangleStrip, theGrid.PrimitiveType);
                    Assert.AreEqual(25, theGrid.VertexCount);    // 4x4 segments = 5x5 vertices
                    Assert.AreEqual(37, theGrid.IndexCount);     // pick a pen & paper and check it...
                    Assert.AreEqual(35, theGrid.PrimitiveCount); // 8 per row, 3 degenerate polys
                }
            }
        }