public void DebuggerHiddenVariable()
{
TestModule ("test.exe", module => {
var type = module.GetType ("Program");
var method = type.GetMethod ("Main");
var scope = method.DebugInformation.Scope;
Assert.IsTrue (scope.HasVariables);
var variables = scope.Variables;
Assert.AreEqual ("CS$1$0000", variables [0].Name);
Assert.IsTrue (variables [0].IsDebuggerHidden);
Assert.AreEqual ("CS$4$0001", variables [1].Name);
Assert.IsTrue (variables [1].IsDebuggerHidden);
Assert.AreEqual (1, scope.Scopes.Count);
scope = scope.Scopes [0];
variables = scope.Variables;
Assert.AreEqual ("i", variables [0].Name);
Assert.IsFalse (variables [0].IsDebuggerHidden);
}, readOnly: Platform.OnMono, symbolReaderProvider: typeof(PdbReaderProvider), symbolWriterProvider: typeof(PdbWriterProvider));
}