Unit tests examples

December 14, 2025 ยท View on GitHub

  • assert_syntax shows how to use xtd.tunit.
  • console_unit_test shows how to use xtd::tunit::console_unit_test class.
  • ostream_unit_test shows how to use xtd::tunit::ostream_unit_test class.

Build and run any project

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run -t any_project_name