mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-09 23:25:43 +00:00
Fix nullability of AsEnumerable return type
This commit is contained in:
parent
e2a496face
commit
199b82b9a6
@ -5,7 +5,7 @@ using X10D.Core;
|
||||
namespace X10D.Tests.Core;
|
||||
|
||||
[TestClass]
|
||||
public partial class EnumerableTests
|
||||
public class EnumerableTests
|
||||
{
|
||||
[TestMethod]
|
||||
[DataRow(1)]
|
||||
@ -13,7 +13,7 @@ public partial class EnumerableTests
|
||||
[DataRow(true)]
|
||||
public void AsEnumerable(object o)
|
||||
{
|
||||
IEnumerable<object> array = o.AsEnumerable().ToArray(); // prevent multiple enumeration of IEnumerable
|
||||
IEnumerable<object?> array = o.AsEnumerable().ToArray(); // prevent multiple enumeration of IEnumerable
|
||||
Assert.IsNotNull(array);
|
||||
Assert.IsTrue(array.Count() == 1);
|
||||
Assert.AreEqual(o, array.ElementAt(0));
|
||||
|
Loading…
Reference in New Issue
Block a user