diff --git a/tests/xtd.tunit.unit_tests/src/assert_unit_tests/register_assert_unit_test.h b/tests/xtd.tunit.unit_tests/src/assert_unit_tests/register_assert_unit_test.h index 0fc23288b90..24f0083ae05 100644 --- a/tests/xtd.tunit.unit_tests/src/assert_unit_tests/register_assert_unit_test.h +++ b/tests/xtd.tunit.unit_tests/src/assert_unit_tests/register_assert_unit_test.h @@ -33,20 +33,22 @@ namespace assert_unit_tests { return xtd::startup::safe_run(xtd::delegate([] { xtd::exception::enable_stack_trace(false); xtd::tunit::test::__internal_tunit_unit_tests_mode__ = reinterpret_cast("internal_tests"); - std::cout << "Start unit tests" << std::endl; + std::cout << "Run tests:" << std::endl; try { for (auto assert_unit_test : assert_unit_tests::register_assert_unit_test::assert_unit_tests) assert_unit_test.method(assert_unit_test.name); } catch (...) { - std::cout << "end unit tests" << std::endl; - std::cout << std::endl << xtd::foreground_color(xtd::console_color::dark_red) << "FAILED TEST" << xtd::reset_color() << std::endl; + std::cout << std::endl << "Test results:" << std::endl; + std::cout << xtd::foreground_color(xtd::console_color::dark_red) << "FAILED TEST" << xtd::reset_color() << std::endl; + std::cout << "End" << std::endl; std::cout << std::endl; return 1; } - std::cout << "end unit tests" << std::endl; - std::cout << std::endl << xtd::foreground_color(xtd::console_color::dark_green) << "SUCCEED " << xtd::reset_color() << assert_unit_tests::register_assert_unit_test::assert_unit_tests.size() << " tests." << std::endl; - if (ignore_test_count) std::cout << std::endl << "You have " << ignore_test_count << " ignored test" << (ignore_test_count < 2 ? "" : "s") << std::endl; + std::cout << std::endl << "Test results:" << std::endl; + std::cout << xtd::foreground_color(xtd::console_color::dark_green) << " SUCCEED " << xtd::reset_color() << assert_unit_tests::register_assert_unit_test::assert_unit_tests.size() << " tests." << std::endl; + if (ignore_test_count) std::cout << std::endl << " You have " << ignore_test_count << " ignored test" << (ignore_test_count < 2 ? "" : "s") << std::endl; + std::cout << "End" << std::endl; std::cout << std::endl; return 0; }));