示例#1
0
        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));
        }
示例#2
0
文件: Pesel.cs 项目: mjgasior/Fulbert
 public Pesel(string personalIdString)
 {
     _personalIdString = personalIdString;
     _peselNumbers     = PeselParser.GetPeselNumbers(personalIdString);
     IsAWoman          = IsEven(_peselNumbers[9]);
 }