mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
22 lines
437 B
C++
22 lines
437 B
C++
#include "CppUnitTest.h"
|
|
#include "JsonArray.h"
|
|
|
|
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
|
|
|
namespace JsonGeneratorTests
|
|
{
|
|
TEST_CLASS(JsonArrayTests)
|
|
{
|
|
public:
|
|
|
|
TEST_METHOD(EmptyArray)
|
|
{
|
|
JsonArray arr;
|
|
|
|
char buffer[256];
|
|
arr.writeTo(buffer, sizeof(buffer));
|
|
|
|
Assert::AreEqual("[]", buffer);
|
|
}
|
|
};
|
|
} |