Esempio n. 1
0
 public void CourseShouldThrowExceptionWithEmptyName()
 {
     var course = new Course(string.Empty);
 }
Esempio n. 2
0
 public void CourseShouldThrowExceptionWithNullName()
 {
     var course = new Course(null);
 }
Esempio n. 3
0
        public void CourseShoulReturnNameCorrectly()
        {
            var course = new Course("HQC");

            Assert.AreEqual("HQC", course.Name);
        }
Esempio n. 4
0
 public void CourseShoudNotThrowError()
 {
     var course = new Course("HQC");
 }
Esempio n. 5
0
        public void ShouldThrowAnArgumentNullExceptionWhenNullIsPassedToRemoveStudentMethod()
        {
            Course testCourse = new Course("Test");

            testCourse.RemoveStudent(null);
        }
Esempio n. 6
0
        public void CourseTitleShouldBeSetCorrectlyWhenValidArgumentIsPassed()
        {
            Course testCourse = new Course("Valid Title");

            Assert.AreEqual("Valid Title", testCourse.Title, "Valid title should be set correctly");
        }
Esempio n. 7
0
 public void CourseShouldThrowAnArgumentExceptionIfTitleIsEmpty()
 {
     Course testCourse = new Course(string.Empty);
 }
Esempio n. 8
0
 public void CourseShouldThrowAnArgumentExceptionIfTitleIsNull()
 {
     Course testCourse = new Course(null);
 }