Skip to content

Commit

Permalink
Update test dependencies
Browse files Browse the repository at this point in the history
Small C#13 modification
  • Loading branch information
monoman committed Nov 21, 2024
1 parent ddd6d96 commit 42809bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<NoWarn>$(NoWarn);NU1507</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="NUnit" Version="4.2.2" />
<PackageVersion Include="NUnit.Analyzers" Version="4.3.0" />
<PackageVersion Include="NUnit.Analyzers" Version="4.4.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageVersion Include="System.Drawing.Common" Version="8.0.10" />
</ItemGroup>
Expand Down
8 changes: 3 additions & 5 deletions SvgNet/ImplementedGraphics/SVGGraphics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public SvgGraphics(Color backgroundColor) {
public Point RenderingOrigin { get => throw new SvgGdiNotImplementedException("get_RenderingOrigin"); set { } }

public SmoothingMode SmoothingMode {

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Only auto-implemented properties can have initializers.

Check failure on line 142 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Only auto-implemented properties can have initializers.
get => _smoothingMode;
get;

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / build

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial

Check failure on line 143 in SvgNet/ImplementedGraphics/SVGGraphics.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'SvgGraphics.SmoothingMode.get' must declare a body because it is not marked abstract, extern, or partial
set {
switch (value) {
case SmoothingMode.Invalid:
Expand All @@ -160,9 +160,9 @@ public SmoothingMode SmoothingMode {
default:
_cur.Style.Set("shape-rendering", "auto"); break;
}
_smoothingMode = value;
field = value;
}
}
} = SmoothingMode.Invalid;

/// <summary>
/// Get is not implemented (throws an exception).
Expand Down Expand Up @@ -1384,8 +1384,6 @@ public void SetClip(RectangleF rect) {
private readonly MatrixStack _transforms;
private SvgStyledTransformedElement _cur;

private SmoothingMode _smoothingMode = SmoothingMode.Invalid;

private static void AddHatchBrushDetails(SvgPatternElement patty, SvgColor col, HatchStyle hs) {
SvgStyledTransformedElement l1 = null;
SvgStyledTransformedElement l2 = null;
Expand Down

0 comments on commit 42809bb

Please sign in to comment.