20#include <boost/test/unit_test.hpp>
25#include <wx/filename.h>
42 file = tempFile.
Path();
43 BOOST_CHECK( wxFileName::DirExists(
directory ) );
44 BOOST_CHECK( wxFileName::FileExists( file ) );
46 wxFFile content( wxFileName(
directory, wxS(
"content" ) ).GetFullPath(), wxS(
"w" ) );
50 BOOST_CHECK( !wxFileName::DirExists(
directory ) );
51 BOOST_CHECK( !wxFileName::FileExists( file ) );
A temporary file or directory that is removed when the object goes out of scope.
bool MakeFile(const wxString &aPrefix)
Create an empty file with a unique name after aPrefix.
bool MakeDirectory(const wxString &aPrefix)
Create an empty directory with a unique name after aPrefix.
const wxString & Path() const
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()