public void DescendingSortType_Update_SequenceHasNumbers_ReturnsSequenceInReverseOrder() { var descendingSortType = new DescendingSortType(); decimal[] primarySequence = new decimal[] { 1, 2, 4, 3 }; decimal[] expectedSequence = new decimal[] { 3, 4, 2, 1 }; IEnumerable <decimal> updatedSequence = descendingSortType.Update(primarySequence); CollectionAssert.AreEqual(expectedSequence, updatedSequence.ToArray()); }
public void DescendingSortType_Update_SequenceIsNull_ThrowsArgumentNullException() { var descendingSortType = new DescendingSortType(); Assert.ThrowsException <ArgumentNullException>(() => descendingSortType.Update(null)); }