Ejemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void freeze()
        internal virtual void Freeze()
        {
            _set.addAll(1, 2, 3, 100, 200, 300);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.eclipse.collections.api.set.primitive.LongSet frozen = set.freeze();
            LongSet frozen = _set.freeze();

            assertEquals(_set, frozen);
            assertEquals(6, _set.size());
            assertEquals(6, frozen.size());

            _set.removeAll(1, 100);
            assertNotEquals(_set, frozen);
            assertEquals(4, _set.size());
            assertEquals(6, frozen.size());
        }