Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void nextArray()
        public virtual void NextArray()
        {
            HashSet <Type> seen = new HashSet <Type>(_types);

            for (int i = 0; i < ITERATIONS; i++)
            {
                ArrayValue arrayValue = RandomValues.nextArray();
                assertThat(arrayValue.Length(), greaterThanOrEqualTo(1));
                AnyValue value = arrayValue.Value(0);
                AssertKnownType(value.GetType(), _types);
                MarkSeen(value.GetType(), seen);
            }

            assertThat(seen, empty());
        }