Esempio n. 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void shouldBeAbleToDropFromList()
        internal virtual void ShouldBeAbleToDropFromList()
        {
            // Given
            ListValue inner = list(longValue(5L), longValue(6L), longValue(7L), longValue(8L), longValue(9L), longValue(10L), longValue(11L));

            // When
            ListValue drop = inner.Drop(4);

            // Then
            ListValue expected = list(longValue(9L), longValue(10L), longValue(11L));

            assertEquals(expected, drop);
            assertEquals(expected.GetHashCode(), drop.GetHashCode());
            assertArrayEquals(expected.AsArray(), drop.AsArray());
            assertTrue(iteratorsEqual(expected.GetEnumerator(), drop.GetEnumerator()));
        }