示例#1
0
 public void InputHaveZero()
 {
     Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2, 3, 4, 0"));
 }
示例#2
0
 public void InputHaveSameNum()
 {
     Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2, 3, 4, 1"));
 }
示例#3
0
 public void normalNumbers_SpaceAndcomma()
 {
     Assert.AreEqual(new int[] { 1, 2, 3, 4, 5 }, Lottery.ValidateBet(5, 90, "5 , 3, 1  4,2"));
 }
示例#4
0
 public void inValidInputNumRange()
 {
     Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2, 3, 4, 95"));
 }
示例#5
0
 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"));
 }
示例#6
0
 public void inValidInput()
 {
     Assert.AreEqual(null, Lottery.ValidateBet(5, 90, "1, 2; 3, 4, 5"));
 }
示例#7
0
 public void normalNumbers_space()
 {
     Assert.AreEqual(new int[] { 1, 2, 3, 4, 5 }, Lottery.ValidateBet(5, 90, "1 2 3 4 5"));
 }