source: branches/work_304/FileSystemUtilTest.cpp @ 326

Revision 326, 542 bytes checked in by jls17, 6 years ago (diff)
Line 
1#include "ARInsideTest.h"
2#include "FileSystemUtil.h"
3
4TEST(FileSystemUtil, IsDots_WithDots_Test)
5{
6        ASSERT_EQ(true, FileSystemUtil::IsDots("."));
7        ASSERT_EQ(true, FileSystemUtil::IsDots(".."));
8}
9
10TEST(FileSystemUtil, IsDots_WithoutDots_Test)
11{
12        ASSERT_EQ(false, FileSystemUtil::IsDots("testfile"));
13}
14
15TEST(FileSystemUtil, GetExecutableDirectory)
16{
17        string directory = FileSystemUtil::GetExecutableDirectory(argv_0);
18        directory = FileSystemUtil::GetRealPathName(directory);
19        cout << "CurrentDir: " << directory << endl;
20}
Note: See TracBrowser for help on using the repository browser.