Exemplo n.º 1
0
        public void WriteData_Test()
        {
            IStreamFilter[]   filters = _usefilters;
            PDFIndirectObject indobj  = new PDFIndirectObject(this);
            PDFStream         stream  = new StreamProxy(filters, indobj);
            PDFWriter         writer  = null;

            try
            {
                stream.WriteData(writer);
                Assert.Fail("Expected an exception to be raised for PDFStream.WriteData()");
            }
            catch (NotSupportedException)
            {
                //Should raise an exception
            }
            stream.Dispose();
            indobj.Dispose();
        }