示例#1
0
        public void ThrowsArgumentOutOfRangeException()
        {
            var count = -1;

            Assert.Throws <ArgumentOutOfRangeException>(() => ReLinq.Range(1, count));
        }
示例#2
0
        public void ReturnsElementsInRange()
        {
            var sequence = ReLinq.Range(2, 3);

            CollectionAssert.AreEqual(new int[] { 2, 3, 4 }, sequence);
        }