xtd 0.2.0
Loading...
Searching...
No Matches

◆ exists_

#define exists_ (   ...)

#include <xtd.tunit/include/xtd/tunit/directory_assert.h>

Asserts that directory exists.

Parameters
expectedthe expected value.
actualthe actual value.
messageAn optional user message to display if the assertion fails. This message can be seen in the unit test results.
Remarks
Contains information about current file and current line.
Can be used with xtd::tunit::directory_assert, xtd::tunit::directory_assume and xtd::tunit::directory_valid classes.
Examples
std::ifstream f1("Test1.txt");
f1.close();
xtd::tunit::directory_assert::exists_("Test1.txt"); // test ok.
xtd::tunit::directory_assert::exists_("Test2.txt", "User message..."); // test error.