#include #include Ensure(failing_test_is_listed_by_xml_reporter) { assert_that(false); } Ensure(passing_test_is_listed_by_xml_reporter) { assert_that(true); } Ensure(percent_in_value_is_not_treated_as_format_directive_by_xml_reporter) { assert_that("a literal %d should survive", contains_string("absent")); } Ensure(error_message_gets_escaped_by_xml_reporter) { char *test_string = "\n" "\n" " I'm the content & have chars which have to be escaped, " "if put in outer XML.\n" ""; char *expected_string = "I'm not to be found!"; assert_that(test_string, contains_string(expected_string)); }