예제 #1
0
        public static void CallWriteTextWithCodeLineAfterDisposing()
        {
            CodeDocument document = null;

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

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

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

            Assert.Throws<ObjectDisposedException>(() => document.WriteText(null as CodeLine));
        }
예제 #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));
        }
예제 #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));
        }
예제 #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);
     }
 }
예제 #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);
     }
 }