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

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

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