public void SingleNumber_WhenGivenInput_ReturnsExpectedResult(int[] input, int result) { var actual = SingleNumber.Solution(input); Assert.AreEqual(result, actual); }
public void SingleNumber_WhenNullInput_Returns_0() { Assert.AreEqual(0, SingleNumber.Solution(null)); }
public void SingleNumber_WhenGivenInputOfLength1_Returns_Expected() { Assert.AreEqual(25, SingleNumber.Solution(new int[] { 25 })); }