示例#1
0
        public void testPreviousSemesterEmpty()
        {
            ScsBO  sbo    = new ScsBO();
            string result = sbo.previousTerm("");;

            Assert.AreEqual("Fall2017", result);
        }
示例#2
0
        public void testPreviousSemesterMisstakeSemester()
        {
            ScsBO  sbo    = new ScsBO();
            string result = sbo.previousTerm("Spr2018");;

            Assert.AreEqual("Fall2017", result);
        }
示例#3
0
        public void testPreviousSemesterIsNull()
        {
            ScsBO  sbo    = new ScsBO();
            string result = sbo.previousTerm(null);;

            Assert.IsNull(result);
        }
示例#4
0
        public void testPreviousSemesterInputNumberNagative()
        {
            ScsBO  sbo    = new ScsBO();
            string result = sbo.previousTerm("-9");;

            Assert.AreEqual("Fall2017", result);
        }
示例#5
0
        public void testPreviousSemesterOneYear()
        {
            ScsBO  sbo    = new ScsBO();
            string result = sbo.previousTerm("Fall2018");;

            Assert.AreEqual("Summer2018", result);
        }