public void HighestDoWhileLoopTest() { int[] nums = { -5 }; var result = Highest.HighestDoWhileLoop(nums); Assert.AreEqual(-5, result); }
public void WhenTheArrayIsAllTheSameHighestDoWhileLoopReturnsMax() { int[] nums = { 10, 10, 10, 10 }; var result = Highest.HighestDoWhileLoop(nums); Assert.AreEqual(10, result); }
public void HighestDoWhileLoopTest() { int[] nums = { 10, 6, 22, 17, 3 }; var result = Highest.HighestDoWhileLoop(nums); Assert.AreEqual(22, result); }
public void WhenTheArrayIsOnlyNegativeHighestDoWhileLoop() { int[] nums = { -1, -50, -100, -20 }; var result = Highest.HighestDoWhileLoop(nums); Assert.AreEqual(-1, result); }
public void WhenTheArrayIsEmptyHighestDoWhilehLoopReturnsMin() { int[] nums = { }; var result = Highest.HighestDoWhileLoop(nums); Assert.AreEqual(int.MinValue, result); }
public void HighestDoWhileLoopTest() { int[] nums = { -10, -6, -22, -17, -3 }; var result = Highest.HighestDoWhileLoop(nums); Assert.AreEqual(-3, result); }
public void HighestDoWhileLoopTest(int[] nums, int expected) { var result = Highest.HighestDoWhileLoop(nums); Assert.AreEqual(expected, result); }
public void HighestDoWhileLoopTest() { int[] nums = {}; Assert.Throws <Exception>(() => Highest.HighestDoWhileLoop(nums)); }