public void YearQuarter_ToFriendlyName_UpperBound() { string expected = "Spring 2259"; string actual = YearQuarter.ToFriendlyName("Z894"); Assert.AreEqual(expected, actual); }
public void YearQuarter_ToFriendlyName_Success() { string expected = "Spring 2011"; string actual = YearQuarter.ToFriendlyName("B014"); Assert.AreEqual(expected, actual); }
public void YearQuarter_ToFriendlyName_InvalidQuarter() { YearQuarter.ToFriendlyName("B019"); Assert.Fail("Did not throw expected exception"); }
public void YearQuarter_ToFriendlyName_NullString() { YearQuarter.ToFriendlyName(null); Assert.Fail("Did not throw expected exception"); }
public void YearQuarter_ToFriendlyName_EmptyString() { YearQuarter.ToFriendlyName(string.Empty); Assert.Fail("Did not throw expected exception"); }
public void YearQuarter_ToFriendlyName_StringTooLong() { YearQuarter.ToFriendlyName("B0142"); Assert.Fail("Did not throw expected exception"); }