public void SuccessTests(string rangeStr, int[] expected) { DashRange range = new DashRange(rangeStr); var actual = range.AsEnumerable(); Assert.Equal(expected, actual); }
public void FailureTests(string rangeStr) { Assert.Throws <RangeException>(() => { var range = new DashRange(rangeStr); var actual = range.AsEnumerable(); }); }