public void New_range(IRangeConverter c) { Assert.Equal(c.Range(0, 2).ToArray(), c.ToArrayOf(new[] { 0, 1, 2 })); }
public void Range_with_step(IRangeConverter c) { Assert.Equal(c.Range(0, 4, 2).ToArray(), c.ToArrayOf(new[] { 0, 2, 4 })); }
public void New_negative_range(IRangeConverter c) { Assert.Equal(c.Range(0, -2).ToArray(), c.ToArrayOf(new[] { 0, -1, -2 })); }