public void Get_right_numbers_from_string_PESEL() { // Arrange string peselString = "02070803628"; int[] peselDigits = new int[] { 0, 2, 0, 7, 0, 8, 0, 3, 6, 2, 8 }; // Act int[] resultDigits = PeselParser.GetPeselNumbers(peselString); // Assert Assert.That(peselDigits, Is.EqualTo(resultDigits)); }
public Pesel(string personalIdString) { _personalIdString = personalIdString; _peselNumbers = PeselParser.GetPeselNumbers(personalIdString); IsAWoman = IsEven(_peselNumbers[9]); }