public void T02_GetHtmlForName_TeacherWithDetails_ShouldReturnNoLink()
        {
            // Arrange
            TeacherWithDetail teacher = new TeacherWithDetail("TeacherA", "MO", "12.EH", "10:00-10:50", "3", "1234", 999);
            // Act
            string html = teacher.GetHtmlForName();

            // Assert
            Assert.AreEqual("<a href=\"?id=999\">TeacherA</a>", html);
        }
Beispiel #2
0
        public void T02_GetHtmlForName_TeacherWithDetails_ShouldReturnNoLink()
        {
            // Arrange
            TeacherWithDetail teacher = new TeacherWithDetail("TeacherA", "MO", "10:00-10:50", "3", "1234", 999);
            // Act
            string html = teacher.GetHtmlForName();

            // Assert
            Assert.AreEqual("<a href=\"https://www.htl-leonding.at/kontakt/lehrer-innen/visitenkarte/?id=999\">TeacherA</a>\n", html);
        }