Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void addAllElements()
        public virtual void AddAllElements()
        {
            MutableLongDiffSetsImpl diffSet = CreateDiffSet();

            diffSet.AddAll(newSetWith(7L, 8L));
            diffSet.AddAll(newSetWith(9L, 10L));

            assertEquals(asSet(7L, 8L, 9L, 10L), toSet(diffSet.Added));
        }
Пример #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void addedAndRemovedElementsDelta()
        public virtual void AddedAndRemovedElementsDelta()
        {
            MutableLongDiffSetsImpl diffSet = CreateDiffSet();

            assertEquals(0, diffSet.Delta());

            diffSet.AddAll(newSetWith(7L, 8L));
            diffSet.AddAll(newSetWith(9L, 10L));
            assertEquals(4, diffSet.Delta());

            diffSet.RemoveAll(newSetWith(8L, 9L));
            assertEquals(2, diffSet.Delta());
        }