Example #1
0
 def test_activate_JsonArray(self):
     a = wdj.JsonArray()
     self.assertEqual(a.Size, 0)
     self.assertEqual(a.ValueType, wdj.JsonValueType.Array)
     self.assertEqual(a.ToString(), "[]")
     self.assertEqual(a.Stringify(), "[]")
Example #2
0
 def test_JsonArray_str(self):
     a = wdj.JsonArray()
     self.assertEqual(str(a), "[]")
Example #3
0
 def test_invalid_param_count_instance(self):
     a = wdj.JsonArray()
     with self.assertRaises(TypeError):
         a.Append(10, 20)
Example #4
0
 def test_activate_JsonArray(self):
     a = wdj.JsonArray()
     self.assertEqual(a.get_Size(), 0)
     self.assertEqual(a.get_ValueType(), 4)
     self.assertEqual(a.ToString(), "[]")
     self.assertEqual(a.Stringify(), "[]")