public void Is_birthday_valid() { // Arrange int[] birthdayDigits = new int[] { 7, 6, 0, 4, 3, 0 }; DateTime birthday = new DateTime(1976, 4, 30); // Act DateTime peselBirthday = PeselParser.GetBirthday(birthdayDigits); // Assert Assert.That(peselBirthday.Date, Is.EqualTo(birthday.Date)); }
public DateTime GetBirthday() { return(PeselParser.GetBirthday(_peselNumbers)); }