Ejemplo n.º 1
0
        public static void CallWriteTextWithCodeLineAfterDisposing()
        {
            CodeDocument document = null;

            using (document = new CodeDocument(0, 0)) { }

            Assert.Throws <ObjectDisposedException>(() => document.WriteText(null as CodeLine));
        }
Ejemplo n.º 2
0
        public static void CallWriteTextWithCodeLineAfterDisposing()
        {
            CodeDocument document = null;

            using (document = new CodeDocument(0, 0)) { }

            Assert.Throws<ObjectDisposedException>(() => document.WriteText(null as CodeLine));
        }
Ejemplo n.º 3
0
        public static void CallWriteTextWithCodeLineILGeneratorISymbolDocumentWriterAfterDisposing()
        {
            CodeDocument document = null;

            using (document = new CodeDocument(0, 0)) { }

            Assert.Throws <ObjectDisposedException>(() => document.WriteText(null as CodeLine,
                                                                             null as ILGenerator, null as ISymbolDocumentWriter));
        }
Ejemplo n.º 4
0
        public static void CallWriteTextWithListOfCodeLineILGeneratorISymbolDocumentWriterAfterDisposing()
        {
            CodeDocument document = null;

            using (document = new CodeDocument(0, 0)) { }

            Assert.Throws<ObjectDisposedException>(() => document.WriteText(null as List<CodeLine>,
                null as ILGenerator, null as ISymbolDocumentWriter));
        }
Ejemplo n.º 5
0
 public static void WriteMultipleLinesWithDifferentDebuggableStates()
 {
     using (var document = new CodeDocument(0, 0))
     {
         document.WriteText(new List <CodeLine>()
         {
             new CodeLine("x", true),
             new CodeLine("x", false),
             new CodeLine("x", true)
         }, null, null);
     }
 }
Ejemplo n.º 6
0
 public static void WriteMultipleLinesWithDifferentDebuggableStates()
 {
     using (var document = new CodeDocument(0, 0))
     {
         document.WriteText(new List<CodeLine>()
         {
             new CodeLine("x", true),
             new CodeLine("x", false),
             new CodeLine("x", true)
         }, null, null);
     }
 }