@@ -68,7 +68,7 @@ public void GetScreenshotAsBinary()
6868 [ Test ]
6969 public void ShouldCaptureScreenshotOfCurrentViewport ( )
7070 {
71- #if NETCOREAPP3_1 || NETSTANDARD2_1 || NET5_0
71+ #if NETCOREAPP3_1 || NET6_0
7272 Assert . Ignore ( "Skipping test: this framework can not process colors." ) ;
7373#endif
7474
@@ -96,7 +96,7 @@ public void ShouldCaptureScreenshotOfCurrentViewport()
9696 [ Test ]
9797 public void ShouldTakeScreenshotsOfAnElement ( )
9898 {
99- #if NETCOREAPP3_1 || NETSTANDARD2_1 || NET5_0
99+ #if NETCOREAPP3_1 || NET6_0
100100 Assert . Ignore ( "Skipping test: this framework can not process colors." ) ;
101101#endif
102102
@@ -122,7 +122,7 @@ public void ShouldTakeScreenshotsOfAnElement()
122122 [ Test ]
123123 public void ShouldCaptureScreenshotAtFramePage ( )
124124 {
125- #if NETCOREAPP3_1 || NETSTANDARD2_1 || NET5_0
125+ #if NETCOREAPP3_1 || NET6_0
126126 Assert . Ignore ( "Skipping test: this framework can not process colors." ) ;
127127#endif
128128
@@ -164,7 +164,7 @@ public void ShouldCaptureScreenshotAtFramePage()
164164 [ Test ]
165165 public void ShouldCaptureScreenshotAtIFramePage ( )
166166 {
167- #if NETCOREAPP3_1 || NETSTANDARD2_1 || NET5_0
167+ #if NETCOREAPP3_1 || NET6_0
168168 Assert . Ignore ( "Skipping test: this framework can not process colors." ) ;
169169#endif
170170
@@ -204,7 +204,7 @@ public void ShouldCaptureScreenshotAtIFramePage()
204204 [ IgnoreBrowser ( Browser . Firefox , "Color comparisons fail on Firefox" ) ]
205205 public void ShouldCaptureScreenshotAtFramePageAfterSwitching ( )
206206 {
207- #if NETCOREAPP3_1 || NETSTANDARD2_1 || NET5_0
207+ #if NETCOREAPP3_1 || NET6_0
208208 Assert . Ignore ( "Skipping test: this framework can not process colors." ) ;
209209#endif
210210
@@ -242,7 +242,7 @@ public void ShouldCaptureScreenshotAtFramePageAfterSwitching()
242242 [ IgnoreBrowser ( Browser . Firefox , "Color comparisons fail on Firefox" ) ]
243243 public void ShouldCaptureScreenshotAtIFramePageAfterSwitching ( )
244244 {
245- #if NETCOREAPP3_1 || NETSTANDARD2_1 || NET5_0
245+ #if NETCOREAPP3_1 || NET6_0
246246 Assert . Ignore ( "Skipping test: this framework can not process colors." ) ;
247247#endif
248248
@@ -318,7 +318,7 @@ private HashSet<string> ScanActualColors(Screenshot screenshot, int stepX, int s
318318 {
319319 HashSet < string > colors = new HashSet < string > ( ) ;
320320
321- #if ! NETCOREAPP3_1 && ! NETSTANDARD2_1 && ! NET5_0
321+ #if ! NETCOREAPP3_1 && ! NET6_0
322322 try
323323 {
324324 Image image = Image . FromStream ( new MemoryStream ( screenshot . AsByteArray ) ) ;
@@ -352,7 +352,7 @@ private Color GetPixelColor(Screenshot screenshot, int x, int y)
352352 {
353353 Color pixelColor = Color . Black ;
354354
355- #if ! NETCOREAPP3_1 && ! NETSTANDARD2_1 && ! NET5_0
355+ #if ! NETCOREAPP3_1 && ! NET6_0
356356 Image image = Image . FromStream ( new MemoryStream ( screenshot . AsByteArray ) ) ;
357357 Bitmap bitmap = new Bitmap ( image ) ;
358358 pixelColor = bitmap . GetPixel ( 1 , 1 ) ;
0 commit comments