Skip to content

Commit c8dc1b5

Browse files
author
Andrii Siriak
committed
Update System.Drawing.Common
1 parent 60a8513 commit c8dc1b5

File tree

7 files changed

+14
-2
lines changed

7 files changed

+14
-2
lines changed

Algorithms.Tests/Other/FloodFillTest.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
using System;
22
using System.Drawing;
3+
using System.Runtime.Versioning;
34
using FluentAssertions;
45
using NUnit.Framework;
56

67
namespace Algorithms.Tests.Other;
78

8-
public static class Tests
9+
[SupportedOSPlatform("windows")]
10+
public static class FloodFillTests
911
{
1012
private static readonly Color Black = Color.FromArgb(255, 0, 0, 0);
1113
private static readonly Color Green = Color.FromArgb(255, 0, 255, 0);

Algorithms.Tests/Other/KochSnowflakeTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
using System.Collections.Generic;
33
using System.Drawing;
44
using System.Numerics;
5+
using System.Runtime.Versioning;
56
using Algorithms.Other;
67
using FluentAssertions;
78
using NUnit.Framework;
89

910
namespace Algorithms.Tests.Other;
1011

12+
[SupportedOSPlatform("windows")]
1113
public static class KochSnowflakeTest
1214
{
1315
[Test]

Algorithms.Tests/Other/MandelbrotTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
using System;
22
using System.Drawing;
3+
using System.Runtime.Versioning;
34
using Algorithms.Other;
45
using NUnit.Framework;
56

67
namespace Algorithms.Tests.Other;
78

9+
[SupportedOSPlatform("windows")]
810
public static class MandelbrotTest
911
{
1012
[Test]

Algorithms/Algorithms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<PrivateAssets>all</PrivateAssets>
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2222
</PackageReference>
23-
<PackageReference Include="System.Drawing.Common" Version="5.0.3" />
23+
<PackageReference Include="System.Drawing.Common" Version="8.0.1" />
2424
</ItemGroup>
2525

2626
<ItemGroup>

Algorithms/Other/FloodFill.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Drawing;
4+
using System.Runtime.Versioning;
45

56
namespace Algorithms.Other;
67

@@ -12,6 +13,7 @@ namespace Algorithms.Other;
1213
/// (description adapted from https://en.wikipedia.org/wiki/Flood_fill)
1314
/// (see also: https://www.techiedelight.com/flood-fill-algorithm/).
1415
/// </summary>
16+
[SupportedOSPlatform("windows")]
1517
public static class FloodFill
1618
{
1719
private static readonly List<(int xOffset, int yOffset)> Neighbors = new() { (-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1, 0), (1, 1) };

Algorithms/Other/KochSnowflake.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections.Generic;
33
using System.Drawing;
44
using System.Numerics;
5+
using System.Runtime.Versioning;
56

67
namespace Algorithms.Other;
78

@@ -21,6 +22,7 @@ namespace Algorithms.Other;
2122
/// Processing language, see https://natureofcode.com/book/chapter-8-fractals/
2223
/// #84-the-koch-curve-and-the-arraylist-technique ).
2324
/// </summary>
25+
[SupportedOSPlatform("windows")]
2426
public static class KochSnowflake
2527
{
2628
/// <summary>

Algorithms/Other/Mandelbrot.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Drawing;
3+
using System.Runtime.Versioning;
34

45
namespace Algorithms.Other;
56

@@ -20,6 +21,7 @@ namespace Algorithms.Other;
2021
/// (description adapted from https://en.wikipedia.org/wiki/Mandelbrot_set)
2122
/// (see also https://en.wikipedia.org/wiki/Plotting_algorithms_for_the_Mandelbrot_set).
2223
/// </summary>
24+
[SupportedOSPlatform("windows")]
2325
public static class Mandelbrot
2426
{
2527
/// <summary>

0 commit comments

Comments
 (0)