Invalid json test cases + strings validation (#1558)

* added tests for invalid json types
* guid strings validation
* device id validation
This commit is contained in:
Seraphima Zykova
2020-03-17 00:29:13 +03:00
committed by GitHub
parent 1fc67984a2
commit f49727e0b6
7 changed files with 2482 additions and 2105 deletions

View File

@@ -16,6 +16,11 @@ namespace JSONHelpers
{
constexpr int MAX_ZONE_COUNT = 50;
#if defined(UNIT_TESTS)
bool isValidGuid(const std::wstring& str);
bool isValidDeviceId(const std::wstring& str);
#endif
enum class ZoneSetLayoutType : int
{
Blank = -1,