Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void nextValueOfTypes()
        public virtual void NextValueOfTypes()
        {
            ValueType[]    allTypes  = ValueType.values();
            ValueType[]    including = RandomValues.selection(allTypes, 1, allTypes.Length, false);
            HashSet <Type> seen      = new HashSet <Type>();

            foreach (ValueType type in including)
            {
                seen.Add(type.valueClass);
            }
            for (int i = 0; i < ITERATIONS; i++)
            {
                Value value = RandomValues.nextValueOfTypes(including);
                AssertValueAmongTypes(including, value);
                MarkSeen(value.GetType(), seen);
            }
            assertThat(seen, empty());
        }