public void GivenAnInvalidArray_ShouldReturnNull(int[] array) { // Arrange // Act var result = FindSecondLargestNumberService.Find(array); // Assert Assert.IsNull(result); }
public void GivenAnArray_ShouldReturnExpected(int[] array, int expected) { // Arrange // Act var result = FindSecondLargestNumberService.Find(array); // Assert Assert.AreEqual(expected, result); }