public void GetMax_EmptyArrayPassed_ThrowsException() { Exception exception = null; try { MaxValueInArray.GetMax(); } catch (Exception ex) { exception = ex; } Assert.IsNotNull(exception); }
public void GetMax_ArrayWithMaxof194_Returns194() { int[] input = new int[] { 0, 58, 8, 92, 194, 2 }; Assert.AreEqual(194, MaxValueInArray.GetMax(input)); }