public void FridayTo5() { string weekday = "FR"; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(5, weekdayInt); }
public void SaturdayTo6() { string weekday = "SA"; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(6, weekdayInt); }
public void WednesdayTo3() { string weekday = "WE"; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(3, weekdayInt); }
public void ThursdayTo4() { string weekday = "TH"; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(4, weekdayInt); }
public void Test1toMO() { int weekdayInt = 1; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual("MO", weekday); }
public void TuesdayTo2() { string weekday = "TU"; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(2, weekdayInt); }
public void InvalidNegative1() { int weekdayInt = -1; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual(string.Empty, weekday); }
public void SundayTo0() { string weekday = "SU"; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(0, weekdayInt); }
public void Test5toFR() { int weekdayInt = 5; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual("FR", weekday); }
public void Test6toSA() { int weekdayInt = 6; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual("SA", weekday); }
public void Test4toTH() { int weekdayInt = 4; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual("TH", weekday); }
public void Test3toWE() { int weekdayInt = 3; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual("WE", weekday); }
public void Test2toTU() { int weekdayInt = 2; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual("TU", weekday); }
public void InvalidNull() { string weekday = null; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(-1, weekdayInt); }
public void Invalid27() { int weekdayInt = 27; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual(string.Empty, weekday); }
public void InvalidEmpty() { string weekday = string.Empty; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(-1, weekdayInt); }
public void MondayTo1() { string weekday = "MO"; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(1, weekdayInt); }
public void InvalidWrong() { string weekday = "bad"; int weekdayInt = WeekdayConverter.Convert(weekday); Assert.AreEqual(-1, weekdayInt); }
public void Test0toSU() { int weekdayInt = 0; string weekday = WeekdayConverter.Convert(weekdayInt); Assert.AreEqual("SU", weekday); }