public void checkCloseArrayCharacter() { JsonValueWriter writer = new JsonValueWriter(); writer.CloseArray(); // then Assert.That(writer.ToString(), Is.EqualTo("]")); }
internal override void WriteJSONString(JsonValueWriter writer) { writer.OpenArray(); int writtenElements = 0; foreach (JsonValue value in jsonValues) { if (writtenElements++ > 0) { writer.InsertElementSeperator(); } value.WriteJSONString(writer); } writer.CloseArray(); }