Exemplo n.º 1
0
        public void Swap_WithEmptyList_ExpectsSameList()
        {
            var actual = LIST_EMPTY;

            actual.Swap(INDEX_RIGHTA, INDEX_RIGHTB);

            True(LIST_EMPTY.SequenceEqual(actual));
        }
Exemplo n.º 2
0
 public void PartitionBy_WithEmptyListAndEmptyCount_Throws()
 => Throws <ArgumentOutOfRangeException>(
     () => LIST_EMPTY.PartitionBy(0).ToList());
Exemplo n.º 3
0
 public void PartitionBy_WithEmptyListAndNegativeCount_Throws()
 => Throws <ArgumentOutOfRangeException>(
     () => LIST_EMPTY.PartitionBy(-COUNT_ANY).ToList());