예제 #1
0
        public void Swap_WithEmptyList_ExpectsSameList()
        {
            var actual = LIST_EMPTY;

            actual.Swap(INDEX_RIGHTA, INDEX_RIGHTB);

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