1 /* 2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz> 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef JSON_WRITER_TEST_H 6 #define JSON_WRITER_TEST_H 7 8 9 #include <TestCase.h> 10 #include <TestSuite.h> 11 12 #include <DataIO.h> 13 14 class Sample; 15 16 17 class JsonTextWriterTest : public CppUnit::TestCase { 18 public: 19 JsonTextWriterTest(); 20 virtual ~JsonTextWriterTest(); 21 22 void TestArrayA(); 23 void TestObjectA(); 24 void TestObjectAForPerformance(); 25 void TestDouble(); 26 void TestInteger(); 27 void TestFalse(); 28 void TestString(); 29 30 static void AddTests(BTestSuite& suite); 31 private: 32 void TestStringGeneric(const char *input, 33 const char *expectedOut); 34 35 }; 36 37 38 #endif // JSON_WRITER_TEST_H 39