Beispiel #1
0
        public void GetMax_EmptyArrayPassed_ThrowsException()
        {
            Exception exception = null;

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