public void AddCourse_CheckIfAddedCourseCanBeFound_CourseCanBeFoundByNameIsTrue() { Degree coursesList = new Degree("MATH"); coursesList.AddCourse(testCourse1); Assert.IsTrue(coursesList.CheckForCourseByName("Math 101")); }
public void AddCourse_CheckIfCorrectClassWasAdded_ReturnValueEqualsOne() { Degree coursesList = new Degree("MATH"); coursesList.AddCourse(testCourse1); Assert.AreEqual(1, coursesList.CourseCount()); }
static void Main(string[] args) { var InformationTechnology = new Uprogram("Information Technology"); var Bachelor = new Degree("Bachelor"); InformationTechnology.AddDegree(Bachelor); var ProgrammingWithC = new Course("Programming With C#"); Bachelor.AddCourse(ProgrammingWithC); //inside course var Jim = new Student("Jim"); var Nancy = new Student("Nancy"); var Oscar = new Student("Oscar"); var Dawson = new Teacher("Mr. Dawson"); ProgrammingWithC.AddStudent(Jim); ProgrammingWithC.AddStudent(Oscar); ProgrammingWithC.AddStudent(Nancy); InformationTechnology.DisplayInfo(); }