C#: Update qltests.

This commit is contained in:
Calum Grant
2019-11-12 18:12:19 +00:00
parent a2e0ae1e79
commit 051dd6b3dc
8 changed files with 73 additions and 72 deletions

View File

@@ -78,14 +78,14 @@ class Test
xmlDoc.Load(xmlReader);
// GOOD: Passed to a library. This is only detected in CIL.
Console.SetOut(new StreamWriter("output.txt"));
DisposalTests.Class1.Dispose(new StreamWriter("output.txt"));
// GOOD: Disposed automatically.
using var c2 = new Timer(TimerProc);
// GOOD: ownership taken via ??
StringReader source = null;
using(XmlReader.Create(source ?? new StringReader("xml"), null))
using (XmlReader.Create(source ?? new StringReader("xml"), null))
;
return null;

File diff suppressed because one or more lines are too long