[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
1 changed files with 1 additions and 1 deletions

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]