public void CheckOpenArrayCharacter()
        {
            JsonValueWriter writer = new JsonValueWriter();

            writer.OpenArray();

            // then
            Assert.That(writer.ToString(), Is.EqualTo("["));
        }
Example #2
0
        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();
        }