// Copyright (c) 2020 Egor Tensin // This file is part of the "winapi-common" project. // For details, see https://github.com/egor-tensin/winapi-common. // Distributed under the MIT License. #include #include #include BOOST_AUTO_TEST_SUITE(handle_tests) BOOST_AUTO_TEST_CASE(null) { { winapi::Handle h{NULL}; h.close(); BOOST_TEST(true, "NULL handle closed successfully"); } { winapi::Handle h{INVALID_HANDLE_VALUE}; h.close(); BOOST_TEST(true, "INVALID_HANDLE_VALUE handle closed successfully"); } } BOOST_AUTO_TEST_SUITE_END()