Ejemplo n.º 1
0
 public void TestCheckIfStringIsIntegerAndPositive()
 {
     Assert.IsTrue(ServicesHelper.CheckIfInteger("3"));
 }
Ejemplo n.º 2
0
 public void TestCheckIfStringIsIntegerAndPositiveWhenStringIsEmpty()
 {
     Assert.IsFalse(ServicesHelper.CheckIfInteger(String.Empty));
 }
Ejemplo n.º 3
0
 public void TestCheckIfStringIsIntegerAndPositiveWhenResultIsNegative()
 {
     Assert.IsFalse(ServicesHelper.CheckIfInteger("-3"));
 }
Ejemplo n.º 4
0
 public void TestCheckIfStringIsIntegerAndPositiveWhenStringIsNull()
 {
     Assert.IsFalse(ServicesHelper.CheckIfInteger(null));
 }