1- // Copyright (c) Six Labors and contributors.
1+ // Copyright (c) Six Labors and contributors.
22// Licensed under the Apache License, Version 2.0.
33
44using System ;
@@ -28,34 +28,34 @@ public void FillPolygon_Solid<TPixel>(TestImageProvider<TPixel> provider, string
2828 new Vector2 ( 10 , 10 ) , new Vector2 ( 200 , 150 ) , new Vector2 ( 50 , 300 )
2929 } ;
3030 Color color = TestUtils . GetColorByName ( colorName ) . WithAlpha ( alpha ) ;
31-
32- GraphicsOptions options = new GraphicsOptions ( antialias ) ;
31+
32+ var options = new GraphicsOptions ( antialias ) ;
3333
3434 string aa = antialias ? "" : "_NoAntialias" ;
3535 FormattableString outputDetails = $ "{ colorName } _A{ alpha } { aa } ";
36-
36+
3737 provider . RunValidatingProcessorTest (
3838 c => c . FillPolygon ( options , color , simplePath ) ,
3939 outputDetails ,
4040 appendSourceFileOrDescription : false ) ;
4141 }
42-
42+
4343 [ Theory ]
4444 [ WithBasicTestPatternImages ( 200 , 200 , PixelTypes . Rgba32 ) ]
4545 public void FillPolygon_Concave < TPixel > ( TestImageProvider < TPixel > provider )
4646 where TPixel : struct , IPixel < TPixel >
4747 {
4848 var points = new SixLabors . Primitives . PointF [ ]
4949 {
50- new Vector2 ( 8 , 8 ) ,
51- new Vector2 ( 64 , 8 ) ,
52- new Vector2 ( 64 , 64 ) ,
50+ new Vector2 ( 8 , 8 ) ,
51+ new Vector2 ( 64 , 8 ) ,
52+ new Vector2 ( 64 , 64 ) ,
5353 new Vector2 ( 120 , 64 ) ,
54- new Vector2 ( 120 , 120 ) ,
54+ new Vector2 ( 120 , 120 ) ,
5555 new Vector2 ( 8 , 120 )
5656 } ;
57-
58- Color color = Color . LightGreen ;
57+
58+ var color = Color . LightGreen ;
5959
6060 provider . RunValidatingProcessorTest (
6161 c => c . FillPolygon ( color , points ) ,
@@ -72,15 +72,15 @@ public void FillPolygon_Pattern<TPixel>(TestImageProvider<TPixel> provider)
7272 {
7373 new Vector2 ( 10 , 10 ) , new Vector2 ( 200 , 150 ) , new Vector2 ( 50 , 300 )
7474 } ;
75- Color color = Color . Yellow ;
75+ var color = Color . Yellow ;
7676
7777 var brush = Brushes . Horizontal ( color ) ;
78-
78+
7979 provider . RunValidatingProcessorTest (
8080 c => c . FillPolygon ( brush , simplePath ) ,
8181 appendSourceFileOrDescription : false ) ;
8282 }
83-
83+
8484 [ Theory ]
8585 [ WithBasicTestPatternImages ( 250 , 350 , PixelTypes . Rgba32 , TestImages . Png . Ducky ) ]
8686 [ WithBasicTestPatternImages ( 250 , 350 , PixelTypes . Rgba32 , TestImages . Bmp . Car ) ]
@@ -95,7 +95,7 @@ public void FillPolygon_ImageBrush<TPixel>(TestImageProvider<TPixel> provider, s
9595 using ( Image < TPixel > brushImage = Image . Load < TPixel > ( TestFile . Create ( brushImageName ) . Bytes ) )
9696 {
9797 var brush = new ImageBrush ( brushImage ) ;
98-
98+
9999 provider . RunValidatingProcessorTest (
100100 c => c . FillPolygon ( brush , simplePath ) ,
101101 System . IO . Path . GetFileNameWithoutExtension ( brushImageName ) ,
@@ -109,13 +109,13 @@ public void Fill_RectangularPolygon<TPixel>(TestImageProvider<TPixel> provider)
109109 where TPixel : struct , IPixel < TPixel >
110110 {
111111 var polygon = new SixLabors . Shapes . RectangularPolygon ( 10 , 10 , 190 , 140 ) ;
112- Color color = Color . White ;
112+ var color = Color . White ;
113113
114114 provider . RunValidatingProcessorTest (
115115 c => c . Fill ( color , polygon ) ,
116- appendSourceFileOrDescription : false ) ;
116+ appendSourceFileOrDescription : false ) ;
117117 }
118-
118+
119119 [ Theory ]
120120 [ WithBasicTestPatternImages ( 200 , 200 , PixelTypes . Rgba32 , 3 , 50 , 0f ) ]
121121 [ WithBasicTestPatternImages ( 200 , 200 , PixelTypes . Rgba32 , 3 , 60 , 20f ) ]
@@ -127,7 +127,7 @@ public void Fill_RegularPolygon<TPixel>(TestImageProvider<TPixel> provider, int
127127 {
128128 float angle = GeometryUtilities . DegreeToRadian ( angleDeg ) ;
129129 var polygon = new RegularPolygon ( 100 , 100 , vertices , radius , angle ) ;
130- Color color = Color . Yellow ;
130+ var color = Color . Yellow ;
131131
132132 FormattableString testOutput = $ "V({ vertices } )_R({ radius } )_Ang({ angleDeg } )";
133133 provider . RunValidatingProcessorTest (
@@ -143,7 +143,7 @@ public void Fill_EllipsePolygon<TPixel>(TestImageProvider<TPixel> provider)
143143 where TPixel : struct , IPixel < TPixel >
144144 {
145145 var polygon = new EllipsePolygon ( 100 , 100 , 80 , 120 ) ;
146- Color color = Color . Azure ;
146+ var color = Color . Azure ;
147147
148148 provider . RunValidatingProcessorTest (
149149 c => c . Fill ( color , polygon ) ,
0 commit comments