JsonArrayTests.cpp 437 B

12345678910111213141516171819202122
  1. #include "CppUnitTest.h"
  2. #include "JsonArray.h"
  3. using namespace Microsoft::VisualStudio::CppUnitTestFramework;
  4. namespace JsonGeneratorTests
  5. {
  6. TEST_CLASS(JsonArrayTests)
  7. {
  8. public:
  9. TEST_METHOD(EmptyArray)
  10. {
  11. JsonArray arr;
  12. char buffer[256];
  13. arr.writeTo(buffer, sizeof(buffer));
  14. Assert::AreEqual("[]", buffer);
  15. }
  16. };
  17. }