示例#1
0
 public void IsValid_Invalid_ReturnsFalse()
 {
     foreach (var number in validNumbers)
     {
         Assert.IsTrue(TurkishIdNumber.IsValid(number));
     }
 }
        void IsValidInt_Invalid_ReturnsFalse(string number)
        {
            long value;

            if (long.TryParse(number, out value))
            {
                Assert.IsFalse(TurkishIdNumber.IsValid(value));
            }
        }
示例#3
0
 public void IsValid_Valid_ReturnsTrue(string number)
 {
     Assert.IsTrue(TurkishIdNumber.IsValid(number));
 }
示例#4
0
 public void IsValid_Invalid_ReturnsFalse(string number)
 {
     Assert.IsFalse(TurkishIdNumber.IsValid(number));
 }
 void IsValidInt_Valid_ReturnsTrue(string number)
 {
     Assert.IsTrue(TurkishIdNumber.IsValid(long.Parse(number)));
 }