TestHashGenerator.cpp 482 B

12345678910111213141516171819202122232425
  1. #include "stdafx.h"
  2. #include "CppUnitTest.h"
  3. using namespace Microsoft::VisualStudio::CppUnitTestFramework;
  4. namespace ArduinoJsonParserTests
  5. {
  6. TEST_CLASS(TestHashGenerator)
  7. {
  8. public:
  9. TEST_METHOD(TestMethod1)
  10. {
  11. JsonArray<5> arr;
  12. arr.Add(1);
  13. arr.Add("Hi!");
  14. JsonHashTable<4> hash;
  15. hash.Add("key1", 1);
  16. hash.Add("key2", "Hello!");
  17. hash.Add("key3", arr);
  18. }
  19. };
  20. }