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