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)); } }
public void IsValid_Valid_ReturnsTrue(string number) { Assert.IsTrue(TurkishIdNumber.IsValid(number)); }
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))); }