public void CanResizeWindow()
 {
     GraphicsWindow wnd = new GraphicsWindow("", 128, 128);
     wnd.ResizeTo(200, 100);
     Assert.AreEqual(200, wnd.Width);
     Assert.AreEqual(100, wnd.Height);
 }
        public void GraphicsResizeWithWindow()
        {
            GraphicsWindow wnd = new GraphicsWindow("", 128, 128);
            wnd.ResizeTo(256, 128);

            Graphics.BeginFrame();
            Graphics.Clear(1.0f, 1.0f, 1.0f, 1.0f);
            Graphics.EndFrame();
            Graphics.Swap();

            Bitmap image = wnd.GrabScreen();
            Color color = image.GetPixel(250, 1);
            Assert.AreEqual(Color.FromArgb(0xff, 0xff, 0xff, 0xff), color);
        }