public void SequencesTest2()
{
int[][] expected =
{
new int[] { 0, 0, 0 },
new int[] { 0, 0, 1 },
new int[] { 0, 1, 0 },
new int[] { 0, 1, 1 },
new int[] { 1, 0, 0 },
new int[] { 1, 0, 1 },
new int[] { 1, 1, 0 },
new int[] { 1, 1, 1 },
};
int i = 0;
foreach (int[] row in Combinatorics.Sequences(2, 3))
{
Assert.IsTrue(row.IsEqual(expected[i++]));
}
}