public void Swap_WithEmptyList_ExpectsSameList() { var actual = LIST_EMPTY; actual.Swap(INDEX_RIGHTA, INDEX_RIGHTB); True(LIST_EMPTY.SequenceEqual(actual)); }
public void PartitionBy_WithEmptyListAndEmptyCount_Throws() => Throws <ArgumentOutOfRangeException>( () => LIST_EMPTY.PartitionBy(0).ToList());
public void PartitionBy_WithEmptyListAndNegativeCount_Throws() => Throws <ArgumentOutOfRangeException>( () => LIST_EMPTY.PartitionBy(-COUNT_ANY).ToList());