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)); }
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)); }