The classic first application "Hello, World!" with xtd::tunit::console_unit_test class.
#include <xtd/xtd.tunit>
#include <string>
using namespace std;
namespace unit_tests {
class test_class_(hello_world_test) {
public:
string s =
"Hello, World!";
valid::are_equal(13, s.size());
assert::are_equal("Hello, World!", s);
}
string s = {
'H',
'e',
'l',
'l',
'o',
',',
' ',
'W',
'o',
'r',
'l',
'd',
'!'};
valid::are_equal(13, s.size());
string_assert::starts_with("Hello,", s);
string_assert::ends_with(" World!", s);
}
};
}
auto main()->int {
}