예제 #1
0
        public void ManipulateFormatYearSuccess(int day, int month, int year, int newYear)
        {
            var dataItem = new FormatDataItem();

            dataItem.SetDate(day, month, year);
            Assert.DoesNotThrow(() => dataItem.SetYear(newYear));
        }
예제 #2
0
        public void ManipulateFormatDataYearFail(int day, int month, int year, int newYear)
        {
            var dataItem = new FormatDataItem();

            dataItem.SetDate(day, month, year);
            Assert.Throws <ArgumentException>(() => dataItem.SetYear(newYear));
        }