Skip to content

Commit 83792ae

Browse files
author
Gonzalo Diaz
committed
[Hacker Rank]: Warmup: Mini-Max Sum. Test coverage increased.
1 parent 73f2e7c commit 83792ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

algorithm-exercises-csharp-test/src/hackerrank/warmup/MiniMaxSum.Test.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@ public void testMiniMaxSum()
2525
Assert.AreEqual(test.expected, result);
2626
}
2727
}
28+
29+
[TestMethod]
30+
public void testMiniMaxSumEmptyInput()
31+
{
32+
Assert.ThrowsException<ArgumentException>(() => MiniMaxSum.miniMaxSum([]));
33+
}
2834
}
2935

0 commit comments

Comments
 (0)