public void InputHaveZero() { Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2, 3, 4, 0")); }
public void InputHaveSameNum() { Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2, 3, 4, 1")); }
public void normalNumbers_SpaceAndcomma() { Assert.AreEqual(new int[] { 1, 2, 3, 4, 5 }, Lottery.ValidateBet(5, 90, "5 , 3, 1 4,2")); }
public void inValidInputNumRange() { Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2, 3, 4, 95")); }
public void inValidInputCount() { Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2, 3, 4")); Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2, 3, 4,5 6")); }
public void inValidInput() { Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2; 3, 4, 5")); }
public void normalNumbers_space() { Assert.AreEqual(new int[] { 1, 2, 3, 4, 5 }, Lottery.ValidateBet(5, 90, "1 2 3 4 5")); }