From 28eb40145f69655fd9649f9dbd2c056d353f95e2 Mon Sep 17 00:00:00 2001 From: dirk Date: Fri, 26 Aug 2016 10:30:57 +0200 Subject: [PATCH] Fixed check for message in Guard.IsTrue and Guard.IsFalse Former-commit-id: ab939ab1a09d5e7452fba067ad3247bb6c56c2d3 Former-commit-id: 2a1278a2f53cc94353fe7260f017a2d0ca4caace Former-commit-id: e7a7466c02934551c49820fcb04b8b781af2c4fc --- src/ImageProcessorCore/Common/Helpers/Guard.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ImageProcessorCore/Common/Helpers/Guard.cs b/src/ImageProcessorCore/Common/Helpers/Guard.cs index 4e8c764f7..4807d17af 100644 --- a/src/ImageProcessorCore/Common/Helpers/Guard.cs +++ b/src/ImageProcessorCore/Common/Helpers/Guard.cs @@ -148,7 +148,7 @@ namespace ImageProcessorCore /// The maximum value. /// The name of the parameter that is to be checked. /// The type of the value. - /// + /// /// is less than the minimum value of greater than the maximum value. /// public static void MustBeBetweenOrEqualTo(TValue value, TValue min, TValue max, string parameterName) @@ -173,14 +173,14 @@ namespace ImageProcessorCore /// /// The error message, if any to add to the exception. /// - /// + /// /// is null /// public static void IsTrue(bool target, string parameterName, string message = "") { if (!target) { - if (string.IsNullOrWhiteSpace(message)) + if (!string.IsNullOrWhiteSpace(message)) { throw new ArgumentException(parameterName, message); } @@ -203,7 +203,7 @@ namespace ImageProcessorCore { if (target) { - if (string.IsNullOrWhiteSpace(message)) + if (!string.IsNullOrWhiteSpace(message)) { throw new ArgumentException(parameterName, message); }