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

            dataItem.SetDate(day, month, year);
            Assert.Throws <ArgumentException>(() => dataItem.SetMonth(newMonth));
        }
예제 #2
0
        public void ManipulateFormatDataMonthSuccess(int day, int month, int year, int newMonth)
        {
            var dataItem = new FormatDataItem();

            dataItem.SetDate(day, month, year);
            Assert.DoesNotThrow(() => dataItem.SetMonth(newMonth));
        }