diff --git a/tests/SIL.Machine.Tests/Utils/EnumberableExtensionTests.cs b/tests/SIL.Machine.Tests/Utils/EnumberableExtensionTests.cs new file mode 100644 index 000000000..7524087e1 --- /dev/null +++ b/tests/SIL.Machine.Tests/Utils/EnumberableExtensionTests.cs @@ -0,0 +1,23 @@ +using NUnit.Framework; + +namespace SIL.Machine.Utils; + +[TestFixture] +public class EnumerableExtensionTests +{ + [Test] + public void ZipMany_None() + { + var seqs = new List>(); + IEnumerable result = seqs.ZipMany(x => x.Sum()); + Assert.That(result, Is.Empty); + } + + [Test] + public void ZipMany_Two() + { + var seqs = new List> { new[] { 1, 2, 3 }, new[] { 4, 5, 6 } }; + IEnumerable result = seqs.ZipMany(x => x.Sum()); + Assert.That(result, Is.EqualTo(new[] { 5, 7, 9 })); + } +}