Skip to content

Commit

Permalink
Use xtd::diagnostics::stack_frame::current as default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Oct 17, 2024
1 parent bf65c38 commit 694c5a3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/xtd.tunit.manual_tests/src/manual_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ namespace xtd {
/// @endcond

public:
void that(bool condition) {assert::is_true(condition);}
void that(bool condition, const xtd::diagnostics::stack_frame& stack_frame) {assert::is_true(condition, stack_frame);}
void that(bool condition, const xtd::string& message) {assert::is_true(condition, message);}
void that(bool condition, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame) {assert::is_true(condition, message, stack_frame);}
void that(bool condition, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()) {assert::is_true(condition, stack_frame);}
void that(bool condition, const xtd::string& message, const xtd::diagnostics::stack_frame& stack_frame = xtd::diagnostics::stack_frame::current()) {assert::is_true(condition, message, stack_frame);}

template<typename ...args_t>
void that(bool condition, const xtd::string& message, args_t... args) {
Expand Down

0 comments on commit 694c5a3

Please sign in to comment.