Пример #1
0
        public void testGetCentury()
        {
            sut = new Fodselsnummer("01016666609");
            Assert.Equal("18", sut.getCentury());

            sut = new Fodselsnummer("01016633301");
            Assert.Equal("19", sut.getCentury());

            sut = new Fodselsnummer("01019196697");
            Assert.Equal("19", sut.getCentury());

            sut = new Fodselsnummer("01013366671");
            Assert.Equal("20", sut.getCentury());

            // DNumber...
            sut = new Fodselsnummer("41016666609");
            Assert.Equal("18", sut.getCentury());

            sut = new Fodselsnummer("01015466609");
            Assert.Equal("18", sut.getCentury());

            sut = new Fodselsnummer("41016633301");
            Assert.Equal("19", sut.getCentury());

            sut = new Fodselsnummer("41019196697");
            Assert.Equal("19", sut.getCentury());

            sut = new Fodselsnummer("41013366671");
            Assert.Equal("20", sut.getCentury());
        }