示例#1
0
        public void TestEnumerate([Range(0, 5)] int startIndex,
                                  [Range(0, 5)] int count)
        {
            var section  = new LogFileSection(startIndex, count);
            var expected = Enumerable.Range(startIndex, count).Select(x => (LogLineIndex)x).ToArray();

            section.Should().Equal(expected);
        }