From 199b82b9a6d5293dfdafe4f2eb4f8421af037acc Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 24 Apr 2022 10:29:04 +0100 Subject: [PATCH] Fix nullability of AsEnumerable return type --- X10D.Tests/src/Core/EnumerableTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/X10D.Tests/src/Core/EnumerableTests.cs b/X10D.Tests/src/Core/EnumerableTests.cs index 13fd78a..1011ba9 100644 --- a/X10D.Tests/src/Core/EnumerableTests.cs +++ b/X10D.Tests/src/Core/EnumerableTests.cs @@ -5,7 +5,7 @@ using X10D.Core; namespace X10D.Tests.Core; [TestClass] -public partial class EnumerableTests +public class EnumerableTests { [TestMethod] [DataRow(1)] @@ -13,12 +13,12 @@ public partial class EnumerableTests [DataRow(true)] public void AsEnumerable(object o) { - IEnumerable array = o.AsEnumerable().ToArray(); // prevent multiple enumeration of IEnumerable + IEnumerable array = o.AsEnumerable().ToArray(); // prevent multiple enumeration of IEnumerable Assert.IsNotNull(array); Assert.IsTrue(array.Count() == 1); Assert.AreEqual(o, array.ElementAt(0)); } - + [TestMethod] [DataRow(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)] public void Shuffled(params int[] source)