From c48b9338e742fd8b9ad5caeccec7a02f623fdf6d Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Thu, 30 Nov 2023 09:04:15 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Kevin B --- .../Extensions/SystemLinqExtensionsTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IntelliTect.Multitool.Tests/Extensions/SystemLinqExtensionsTests.cs b/IntelliTect.Multitool.Tests/Extensions/SystemLinqExtensionsTests.cs index c458703..45916b5 100644 --- a/IntelliTect.Multitool.Tests/Extensions/SystemLinqExtensionsTests.cs +++ b/IntelliTect.Multitool.Tests/Extensions/SystemLinqExtensionsTests.cs @@ -4,13 +4,13 @@ namespace IntelliTect.Multitool.Extensions.Tests; public class SystemLinqExtensionsTests { - private static readonly List stringsWithSomeNullValues = ["Hello", null, "World", null, "!"]; + private static readonly List _stringsWithSomeNullValues = ["Hello", null, "World", null, "!"]; [Fact] public void WhereNotNull_ReturnsOnlyNonNullValues() { IEnumerable nonNullableStringType = stringsWithSomeNullValues.WhereNotNull(); Assert.All(stringsWithSomeNullValues.WhereNotNull(), s => Assert.NotNull(s)); - Assert.Equal(new List { "Hello", "World", "!" }, nonNullableStringType); + Assert.Equal(["Hello", "World", "!" ], nonNullableStringType); } }