コード例 #1
0
        public void WeekdayConstructor_SettingLegalDay_CorrectBool()
        {
            //arrange
            bool checkLegalDay = false;
            int  month         = 2;
            int  day           = 29;
            int  year          = 1993;
            //act
            Weekday newWeekday = new Weekday(month, day, year);

            //assert
            Assert.Equal(checkLegalDay, newWeekday.GetLegalDay());
        }