예제 #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGoForwardsWhenStartingFromNonZero2()
        public virtual void ShouldGoForwardsWhenStartingFromNonZero2()
        {
            // GIVEN
            RecordIdIterator ids = RecordIdIterator.forwards(34, 66, withBatchSize(DEFAULT, 10));

            // THEN
            AssertIds(ids, Array(34, 35, 36, 37, 38, 39), Array(40, 41, 42, 43, 44, 45, 46, 47, 48, 49), Array(50, 51, 52, 53, 54, 55, 56, 57, 58, 59), Array(60, 61, 62, 63, 64, 65));
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldGoForwardsWhenStartingFromNonZero()
        public virtual void ShouldGoForwardsWhenStartingFromNonZero()
        {
            // GIVEN
            RecordIdIterator ids = RecordIdIterator.forwards(1, 12, withBatchSize(DEFAULT, 10));

            // THEN
            AssertIds(ids, Array(1, 2, 3, 4, 5, 6, 7, 8, 9), Array(10, 11));
        }