Пример #1
0
        public void UninitializedAgeShouldBeNull()
        {
            var year = new Year();

            year.Age(DateTime.Now).ShouldBeNull();
        }
Пример #2
0
        public void FindAgeFromAYear()
        {
            var year = new Year(1920);

            year.Age(new Year(1980)).ShouldEqual(60);
        }
Пример #3
0
        public void FindAge()
        {
            var year = new Year(1985);

            year.Age(new DateTime(1995, 8, 25)).ShouldEqual(10);
        }