public static void CallWriteTextWithCodeLineAfterDisposing() { CodeDocument document = null; using (document = new CodeDocument(0, 0)) { } Assert.Throws <ObjectDisposedException>(() => document.WriteText(null as CodeLine)); }
public static void CallWriteTextWithCodeLineAfterDisposing() { CodeDocument document = null; using (document = new CodeDocument(0, 0)) { } Assert.Throws<ObjectDisposedException>(() => document.WriteText(null as CodeLine)); }
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)); }
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)); }
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); } }
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); } }