Пример #1
0
        public void Dnr_ParsesDate()
        {
            var dnr = new Dnr("64106255294");

            Assert.That(dnr.Date, Is.EqualTo(new DateTime(1862, 10, 24)));
        }
Пример #2
0
        public void Dnr_IsValid_ForValidDnr()
        {
            var dnr = new Dnr("64106255294");

            Assert.That(() => dnr.Validate(), Throws.Nothing);
        }