Пример #1
0
        public void SetAge()
        {
            using (PersonInfo info = new PersonInfo("David", 12))
            {
                Assert.Equal(12, info.Age());
                Assert.True(info.IsMinor());

                info.SetAge(22);
                Assert.Equal(22, info.Age());
                Assert.False(info.IsMinor());
            }
        }