Skip to content

Commit 3d640fc

Browse files
committed
* Add non-existing file test
* Rename solution files
1 parent 0c84a1a commit 3d640fc

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

DLL-Dependencies-Parser-Tests/Main.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@
66

77
std::filesystem::path test_files_directory = "Test Files";
88

9+
BOOST_AUTO_TEST_CASE(test_non_existing_file_path)
10+
{
11+
try
12+
{
13+
dll_references_resolver references_resolver;
14+
references_resolver.executable_file_path = test_files_directory / "non-existing.exe";
15+
references_resolver.resolve_references();
16+
BOOST_REQUIRE(false);
17+
}
18+
catch(std::exception &)
19+
{
20+
BOOST_REQUIRE(true);
21+
}
22+
}
23+
924
BOOST_AUTO_TEST_CASE(test_utf8_file_path)
1025
{
1126
dll_references_resolver references_resolver;

PEParsing.sln renamed to DLL-Dependencies-Parser.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.30907.101
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DLL-Dependencies-Parser", "PEParsing.vcxproj", "{EBDE9607-4D9A-488F-BCA9-B34E815E8A22}"
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DLL-Dependencies-Parser", "DLL-Dependencies-Parser.vcxproj", "{EBDE9607-4D9A-488F-BCA9-B34E815E8A22}"
77
EndProject
88
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DLL-Dependencies-Parser-Tests", "DLL-Dependencies-Parser-Tests\DLL-Dependencies-Parser-Tests.vcxproj", "{28291861-3341-4A30-80D9-8A6843B3A86C}"
99
EndProject

PEParsing.vcxproj renamed to DLL-Dependencies-Parser.vcxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<VCProjectVersion>16.0</VCProjectVersion>
2323
<Keyword>Win32Proj</Keyword>
2424
<ProjectGuid>{ebde9607-4d9a-488f-bca9-b34e815e8a22}</ProjectGuid>
25-
<RootNamespace>PEParsing</RootNamespace>
25+
<RootNamespace>DLL-Dependencies-Parser</RootNamespace>
2626
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
2727
<ProjectName>DLL-Dependencies-Parser</ProjectName>
2828
</PropertyGroup>
File renamed without changes.

0 commit comments

Comments
 (0)