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