public void WhenTheArrayIsAllTheSameHighestForLoopReturnsMax() { int[] nums = { 10, 10, 10, 10 }; var result = Highest.HighestForLoop(nums); Assert.AreEqual(10, result); }
public void HighestForLoopTest() { int[] nums = { 1, 3 }; var result = Highest.HighestForLoop(nums); Assert.AreEqual(-5, result); }
public void WhenTheArrayIsOnlyNegativeHighestForLoop() { int[] nums = { -1, -50, -100, -20 }; var result = Highest.HighestForLoop(nums); Assert.AreEqual(-1, result); }
public void WhenTheArrayIsEmptyHighestForLoopReturnsMin() { int[] nums = { }; var result = Highest.HighestForLoop(nums); Assert.AreEqual(int.MinValue, result); }
public void HighestForLoopTest() { int[] nums = { -10, -6, -22, -17, -3 }; var result = Highest.HighestForLoop(nums); Assert.AreEqual(-3, result); }
public void HighestForLoopTest(int[] nums, int expected) { var result = Highest.HighestForLoop(nums); Assert.AreEqual(expected, result); }
public void HighestForLoopTest() { int[] nums = {}; Assert.Throws <Exception>(() => Highest.HighestForLoop(nums)); }