public void TestCBlockUsingIDisposable() { _w.WriteLine("// will open a C block"); using (_w.WithCBlock("void MyMethod()")) { _w.WriteLine("int i = 0;"); } Assert.AreEqual(expected_C, _w.GetContents()); }