test_that("Testing method createModalFeedback() for WrongFeedback class", { sut <- new ("ModalFeedback",outcome_identifier = "FEEDBACKMODAL", show = TRUE, identifier = "incorrect", title = "Feedback wrong name", content = list("

Text Feedback wrong

") ) example <-"

Text Feedback wrong

" sut <- xml2::read_xml(toString(createModalFeedback(sut))) expected <- xml2::read_xml(example) expect_equal(sut, expected) }) test_that("Testing method createResponseCondition() for WrongFeedback class", { sut <- new("WrongFeedback", outcome_identifier = "FEEDBACKMODAL", show = FALSE, title = "Feedback wrong name", content = list("

Text Feedback wrong

") ) example <-" incorrect incorrect " sut <- toString(htmltools::tag("additionalTag", list(createResponseCondition(sut)))) sut <- xml2::read_xml(sut) expected <- xml2::read_xml(example) expect_equal(sut, expected) })