-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from olegsych/develop
v0.1.48. - Remove static fail variable and the need to include implementation.cpp in the NuGet package, which was always displayed by the projects consuming the package. - Add Usage section to the readme.md .
- Loading branch information
Showing
30 changed files
with
619 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.*sdf | ||
*.user | ||
*.suo | ||
*.VC.opendb | ||
/ipch | ||
/.vs | ||
/packages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ deploy: | |
|
||
nuget: | ||
project_feed: true | ||
disable_publish_on_pr: true | ||
account_feed: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <CppUnitTest.h> | ||
|
||
namespace simply { namespace assert { namespace framework | ||
{ | ||
struct cpp_unit_test | ||
{ | ||
static void fail(const std::wstring& message) | ||
{ | ||
std::wstring separated_message { L"\n" + message }; | ||
Microsoft::VisualStudio::CppUnitTestFramework::Assert::Fail(separated_message.c_str()); | ||
} | ||
}; | ||
|
||
using default = cpp_unit_test; | ||
}}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,35 @@ | ||
#pragma once | ||
|
||
#include <functional> | ||
#include <string> | ||
#include <type_traits> | ||
|
||
namespace simply { namespace assert { namespace implementation | ||
namespace simply { namespace assert { namespace implementation | ||
{ | ||
extern std::function<void(const std::wstring&)> fail; | ||
}}} | ||
template<typename t> | ||
typename std::enable_if<!std::is_reference<t>::value, const std::string>::type | ||
type_name() | ||
{ | ||
std::string result { typeid(t).name() }; | ||
|
||
if (std::is_const<t>()) | ||
{ | ||
result.insert(0, "const "); | ||
} | ||
|
||
if (std::is_volatile<t>()) | ||
{ | ||
result.insert(0, "volatile "); | ||
} | ||
|
||
return result; | ||
} | ||
|
||
template<typename t> | ||
typename std::enable_if<std::is_reference<t>::value, const std::string>::type | ||
type_name() | ||
{ | ||
std::string result = type_name<std::remove_reference<t>::type>(); | ||
result.append("&"); | ||
return result; | ||
} | ||
}}} |
Oops, something went wrong.