Skip to content

Commit

Permalink
* Add non-existing file test
Browse files Browse the repository at this point in the history
* Rename solution files
  • Loading branch information
BullyWiiPlaza committed Jun 26, 2021
1 parent 0c84a1a commit 3d640fc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions DLL-Dependencies-Parser-Tests/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@

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

BOOST_AUTO_TEST_CASE(test_non_existing_file_path)
{
try
{
dll_references_resolver references_resolver;
references_resolver.executable_file_path = test_files_directory / "non-existing.exe";
references_resolver.resolve_references();
BOOST_REQUIRE(false);
}
catch(std::exception &)
{
BOOST_REQUIRE(true);
}
}

BOOST_AUTO_TEST_CASE(test_utf8_file_path)
{
dll_references_resolver references_resolver;
Expand Down
2 changes: 1 addition & 1 deletion PEParsing.sln → DLL-Dependencies-Parser.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30907.101
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DLL-Dependencies-Parser", "PEParsing.vcxproj", "{EBDE9607-4D9A-488F-BCA9-B34E815E8A22}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DLL-Dependencies-Parser", "DLL-Dependencies-Parser.vcxproj", "{EBDE9607-4D9A-488F-BCA9-B34E815E8A22}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DLL-Dependencies-Parser-Tests", "DLL-Dependencies-Parser-Tests\DLL-Dependencies-Parser-Tests.vcxproj", "{28291861-3341-4A30-80D9-8A6843B3A86C}"
EndProject
Expand Down
2 changes: 1 addition & 1 deletion PEParsing.vcxproj → DLL-Dependencies-Parser.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{ebde9607-4d9a-488f-bca9-b34e815e8a22}</ProjectGuid>
<RootNamespace>PEParsing</RootNamespace>
<RootNamespace>DLL-Dependencies-Parser</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>DLL-Dependencies-Parser</ProjectName>
</PropertyGroup>
Expand Down
File renamed without changes.

0 comments on commit 3d640fc

Please sign in to comment.