Shows how to use xtd.tunit assert methods like xtd::tunit::assert in a xtd.console or xtd.forms application.
#include <xtd/xtd>
class program {
public:
static auto main() {
auto items = array {10, 20, 30};
tunit::assert::is_greater_or_equal(items.count(), 4, "The items count is less than 4");
println(items[3]);
}
};
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168