예제 #1
0
        public void SuccessTests(string rangeStr, int[] expected)
        {
            DashRange range  = new DashRange(rangeStr);
            var       actual = range.AsEnumerable();

            Assert.Equal(expected, actual);
        }
예제 #2
0
 public void FailureTests(string rangeStr)
 {
     Assert.Throws <RangeException>(() =>
     {
         var range  = new DashRange(rangeStr);
         var actual = range.AsEnumerable();
     });
 }