Esempio n. 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());
        }