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

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