Ejemplo n.º 1
0
        public void WriteSymbolWithSymbolTableOutOfRange()
        {
            var datagram = SymTabUtils.DatagramWithOutOfRangeSymbolsInSymbolTable();

            var memStream    = new MemoryStream();
            var binaryWriter = IonBinaryWriterBuilder.Build(memStream);

            // Should throw exception as sid 12 in datagram exceeds the max ID of the symbol table currently in scope
            datagram.WriteTo(binaryWriter);
            binaryWriter.Finish();
        }
Ejemplo n.º 2
0
        public void WriteSymbolWithSymbolTableOutOfRange()
        {
            var datagram = SymTabUtils.DatagramWithOutOfRangeSymbolsInSymbolTable();

            var sw         = new StringWriter();
            var textWriter = IonTextWriterBuilder.Build(sw);

            // Should throw exception as sid 12 in datagram exceeds the max ID of the symbol table currently in scope
            datagram.WriteTo(textWriter);
            textWriter.Finish();
        }