Esempio n. 1
0
        public void GetCourseStudentInfo()
        {
            Student pesho = new Student("Pepito", 10101);
            pesho.AddCourse(new Course("Pottary"));

            StringBuilder actualResult = new StringBuilder();
            actualResult.AppendLine(pesho.DisplayCourseInfoToConsoleAndReturnValue());

            StringBuilder expectedResult = new StringBuilder();
            expectedResult.AppendLine("Pepito is attending:");
            expectedResult.AppendFormat("Course name: Pottary");
            expectedResult.AppendLine();
            Assert.AreEqual(expectedResult, expectedResult);
        }