public void CorrectlySetsColorAndRectangle() { this.operations.Fill(this.color, this.rectangle); FillRegionProcessor <Rgba32> processor = this.Verify <FillRegionProcessor <Rgba32> >(); Assert.Equal(GraphicsOptions.Default, processor.Options); ShapeRegion region = Assert.IsType <ShapeRegion>(processor.Region); Shapes.RectangularePolygon rect = Assert.IsType <Shapes.RectangularePolygon>(region.Shape); Assert.Equal(rect.Location.X, this.rectangle.X); Assert.Equal(rect.Location.Y, this.rectangle.Y); Assert.Equal(rect.Size.Width, this.rectangle.Width); Assert.Equal(rect.Size.Height, this.rectangle.Height); SolidBrush <Rgba32> brush = Assert.IsType <SolidBrush <Rgba32> >(processor.Brush); Assert.Equal(this.color, brush.Color); }