Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Sep 24, 2024
1 parent d4cf9e1 commit 241638d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,21 +337,21 @@ namespace xtd::tests {
} catch(const argument_null_exception& e) {
exception = e;
}
assert::are_equal("The value cannot be an empty string. (Parameter '')", exception.message(), csf_);
assert::are_equal("The value cannot be null. (Parameter '')", exception.message(), csf_);

try {
argument_null_exception::throw_if_null(null, "null");
} catch(const argument_null_exception& e) {
exception = e;
}
assert::are_equal("The value cannot be an empty string. (Parameter 'null')", exception.message(), csf_);
assert::are_equal("The value cannot be null. (Parameter 'null')", exception.message(), csf_);

try {
argument_null_exception::throw_if_null(null, "null", csf_);
} catch(const argument_null_exception& e) {
exception = e;
}
assert::are_equal("The value cannot be an empty string. (Parameter 'null')", exception.message(), csf_);
assert::are_equal("The value cannot be null. (Parameter 'null')", exception.message(), csf_);
}
};
}

0 comments on commit 241638d

Please sign in to comment.