From d53e8d996fcfb9141a89ebf8230115aebe5263fd Mon Sep 17 00:00:00 2001 From: ITaluone <44049228+ITaluone@users.noreply.github.com> Date: Tue, 5 Apr 2022 12:41:57 +0200 Subject: [PATCH] Delete unused Guard to improve code coverage (#1871) --- Src/FluentAssertions/Common/Guard.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Src/FluentAssertions/Common/Guard.cs b/Src/FluentAssertions/Common/Guard.cs index fdfb97520b..c6e2e4c15b 100644 --- a/Src/FluentAssertions/Common/Guard.cs +++ b/Src/FluentAssertions/Common/Guard.cs @@ -55,14 +55,6 @@ public static void ThrowIfArgumentContainsNull(IEnumerable values, string } } - public static void ThrowIfArgumentContainsNull(IEnumerable values, string paramName, string message) - { - if (values.Any(t => t is null)) - { - throw new ArgumentNullException(paramName, message); - } - } - public static void ThrowIfArgumentIsEmpty(IEnumerable values, string paramName, string message) { if (!values.Any())