public void ThenTheGormanicDateIsCorrectlyRenderedAsString(int gregorianYear, int gregorianMonth, int gregorianDay, string expectedWording) { var gregorianDate = new DateTime(gregorianYear, gregorianMonth, gregorianDay, new GregorianCalendar()); var gormanicDate = new GormanicDate(gregorianDate); Assert.That(gormanicDate.ToString(), Is.EqualTo(expectedWording)); }
public void ThenTheIntermissionIsDetermined(int gregorianYear, int gregorianMonth, int gregorianDay, bool expectIntermission) { var gregorianDate = new DateTime(gregorianYear, gregorianMonth, gregorianDay, new GregorianCalendar()); var gormanicDate = new GormanicDate(gregorianDate); Assert.That(gormanicDate.IsIntermission, Is.EqualTo(expectIntermission)); }
public void ThenTheDateIsConvertedCorrectly(int gregorianYear, int gregorianMonth, int gregorianDay, int expectedYear, string expectedMonth, int expectedDay) { var gregorianDate = new DateTime(gregorianYear, gregorianMonth, gregorianDay, new GregorianCalendar()); var gormanicDate = new GormanicDate(gregorianDate); Assert.That(gormanicDate.Year, Is.EqualTo(gregorianDate.Year)); Assert.That(gormanicDate.MonthName, Is.EqualTo(expectedMonth)); Assert.That(gormanicDate.Day, Is.EqualTo(expectedDay)); }
public void ThenTheNextDayIsGivenCorrectly() { var gregorianDate = new DateTime(2016, 1, 31, new GregorianCalendar()); var gormanicDate = new GormanicDate(gregorianDate); // todo: finish this maybe }
public void ThenTheGormanicDateIsValidatedCorrectly(int gregorianYear, int gregorianMonth, int gregorianDay, bool isValid) { Assert.That(GormanicDate.IsValid(gregorianYear, gregorianMonth, gregorianDay), Is.EqualTo(isValid)); }
public void ThenTheGormanicDayOfTheYearIsCorrect() { Assert.That(GormanicDate.DayOfTheYear(_date), Is.EqualTo(31)); }