Exemplo n.º 1
0
        public void YearQuarter_ToFriendlyName_UpperBound()
        {
            string expected = "Spring 2259";
            string actual   = YearQuarter.ToFriendlyName("Z894");

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void YearQuarter_ToFriendlyName_Success()
        {
            string expected = "Spring 2011";
            string actual   = YearQuarter.ToFriendlyName("B014");

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void YearQuarter_ToFriendlyName_InvalidQuarter()
        {
            YearQuarter.ToFriendlyName("B019");

            Assert.Fail("Did not throw expected exception");
        }
Exemplo n.º 4
0
        public void YearQuarter_ToFriendlyName_NullString()
        {
            YearQuarter.ToFriendlyName(null);

            Assert.Fail("Did not throw expected exception");
        }
Exemplo n.º 5
0
        public void YearQuarter_ToFriendlyName_EmptyString()
        {
            YearQuarter.ToFriendlyName(string.Empty);

            Assert.Fail("Did not throw expected exception");
        }
Exemplo n.º 6
0
        public void YearQuarter_ToFriendlyName_StringTooLong()
        {
            YearQuarter.ToFriendlyName("B0142");

            Assert.Fail("Did not throw expected exception");
        }