From d839ddfb24b046ad65b288711497c8f743a176a8 Mon Sep 17 00:00:00 2001 From: Coen Munckhof Date: Tue, 29 May 2018 20:56:50 +0200 Subject: [PATCH 1/2] Update documentation on Guard methods. --- src/ImageSharp/Common/Helpers/DebugGuard.cs | 4 ++-- src/ImageSharp/Common/Helpers/Guard.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ImageSharp/Common/Helpers/DebugGuard.cs b/src/ImageSharp/Common/Helpers/DebugGuard.cs index e64075db7a..6dcd0fd270 100644 --- a/src/ImageSharp/Common/Helpers/DebugGuard.cs +++ b/src/ImageSharp/Common/Helpers/DebugGuard.cs @@ -189,7 +189,7 @@ namespace SixLabors.ImageSharp /// The 'other' span to compare 'target' to. /// The name of the parameter that is to be checked. /// - /// is true + /// has a different size than /// [Conditional("DEBUG")] public static void MustBeSameSized(Span target, Span other, string parameterName) @@ -209,7 +209,7 @@ namespace SixLabors.ImageSharp /// The 'minSpan' span to compare 'target' to. /// The name of the parameter that is to be checked. /// - /// is true + /// has less items than /// [Conditional("DEBUG")] public static void MustBeSizedAtLeast(Span target, Span minSpan, string parameterName) diff --git a/src/ImageSharp/Common/Helpers/Guard.cs b/src/ImageSharp/Common/Helpers/Guard.cs index 9258beb368..011d7fdaac 100644 --- a/src/ImageSharp/Common/Helpers/Guard.cs +++ b/src/ImageSharp/Common/Helpers/Guard.cs @@ -207,14 +207,14 @@ namespace SixLabors.ImageSharp } /// - /// Verifies, that the `source` span has the length of 'minSpan', or longer. + /// Verifies, that the `source` span has the length of 'minLength', or longer. /// /// The element type of the spans /// The source span. /// The minimum length. /// The name of the parameter that is to be checked. /// - /// is true + /// has less than items /// public static void MustBeSizedAtLeast(ReadOnlySpan source, int minLength, string parameterName) { @@ -225,14 +225,14 @@ namespace SixLabors.ImageSharp } /// - /// Verifies, that the `source` span has the length of 'minSpan', or longer. + /// Verifies, that the `source` span has the length of 'minLength', or longer. /// /// The element type of the spans /// The target span. /// The minimum length. /// The name of the parameter that is to be checked. /// - /// is true + /// has less than items /// public static void MustBeSizedAtLeast(Span source, int minLength, string parameterName) { From 161a6fbb601f555796127ed926c078b1d1906f0b Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Wed, 30 May 2018 18:25:14 +1000 Subject: [PATCH 2/2] Update dependencies --- ImageSharp.ruleset | 2 ++ src/ImageSharp.Drawing/ImageSharp.Drawing.csproj | 2 +- src/ImageSharp/ImageSharp.csproj | 10 +++++----- .../ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj | 6 +++--- tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj | 2 +- tests/ImageSharp.Tests/ImageSharp.Tests.csproj | 6 +++--- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/ImageSharp.ruleset b/ImageSharp.ruleset index 3567dc4b9e..d318b75c2e 100644 --- a/ImageSharp.ruleset +++ b/ImageSharp.ruleset @@ -9,5 +9,7 @@ + + \ No newline at end of file diff --git a/src/ImageSharp.Drawing/ImageSharp.Drawing.csproj b/src/ImageSharp.Drawing/ImageSharp.Drawing.csproj index 662448c855..30ca57b596 100644 --- a/src/ImageSharp.Drawing/ImageSharp.Drawing.csproj +++ b/src/ImageSharp.Drawing/ImageSharp.Drawing.csproj @@ -40,7 +40,7 @@ - + All diff --git a/src/ImageSharp/ImageSharp.csproj b/src/ImageSharp/ImageSharp.csproj index 0c793d4bc3..b1934faa6f 100644 --- a/src/ImageSharp/ImageSharp.csproj +++ b/src/ImageSharp/ImageSharp.csproj @@ -37,17 +37,17 @@ - + All - - - + + + - + ..\..\ImageSharp.ruleset diff --git a/tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj b/tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj index 9dbd680efd..9a58f350ac 100644 --- a/tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj +++ b/tests/ImageSharp.Benchmarks/ImageSharp.Benchmarks.csproj @@ -16,9 +16,9 @@ - - - + + + diff --git a/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj b/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj index 266b905a04..245af5289c 100644 --- a/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj +++ b/tests/ImageSharp.Sandbox46/ImageSharp.Sandbox46.csproj @@ -20,7 +20,7 @@ - + diff --git a/tests/ImageSharp.Tests/ImageSharp.Tests.csproj b/tests/ImageSharp.Tests/ImageSharp.Tests.csproj index e00f3ed716..139df39725 100644 --- a/tests/ImageSharp.Tests/ImageSharp.Tests.csproj +++ b/tests/ImageSharp.Tests/ImageSharp.Tests.csproj @@ -26,12 +26,12 @@ - - + + - +