aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/test/unit_tests/error.cpp
blob: 10eb8b4cc69514eb51864fadd4e7dc5a1061b027 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                               
#include <pdb/all.hpp>

#include <boost/test/unit_test.hpp>

#include <windows.h>

#include <string>

BOOST_AUTO_TEST_SUITE(error_tests)

BOOST_AUTO_TEST_CASE(file_not_found) {
    const std::string actual{pdb::error::windows(ERROR_FILE_NOT_FOUND).what()};
    BOOST_TEST(actual == "The system cannot find the file specified.");
}

BOOST_AUTO_TEST_SUITE_END()