Пример #1
0
        public void WriteRawValue()
        {
            AssertException.Throws<JsonWriterException>(() =>
            {
                MemoryStream ms = new MemoryStream();
                BsonWriter writer = new BsonWriter(ms);

                writer.WriteStartArray();
                writer.WriteRawValue("fail");
            }, "Cannot write raw JSON as BSON. Path ''.");
        }