1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +00:00

[ci skip] fix(test): force enumeration of lazy enumerable

This commit is contained in:
Oliver Booth 2023-03-31 15:11:50 +01:00
parent 38112f07ac
commit 4cd669a200
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025

View File

@ -34,7 +34,7 @@ public class EnumerableTests
public void ConcatOne_ShouldThrowArgumentNullException_GivenNullSource() public void ConcatOne_ShouldThrowArgumentNullException_GivenNullSource()
{ {
IEnumerable<string>? source = null; IEnumerable<string>? source = null;
Assert.ThrowsException<ArgumentNullException>(() => source!.ConcatOne("Foobar")); Assert.ThrowsException<ArgumentNullException>(() => source!.ConcatOne("Foobar").ToArray());
} }
[TestMethod] [TestMethod]