diff options
author | Jb Evain <jb@evain.net> | 2017-08-31 00:27:28 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2017-08-31 00:27:28 +0300 |
commit | 6ca33bf7fad842a056f4ab0c766d7399d7553f8e (patch) | |
tree | 81e0ec674d21d55970d015f025cf9d74170d7a28 /Test/Mono.Cecil.Tests | |
parent | bc39bebc7111662ebcf12952c6a634ab6141ae28 (diff) |
No write, only read
Diffstat (limited to 'Test/Mono.Cecil.Tests')
-rw-r--r-- | Test/Mono.Cecil.Tests/PortablePdbTests.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Test/Mono.Cecil.Tests/PortablePdbTests.cs b/Test/Mono.Cecil.Tests/PortablePdbTests.cs index 208c277..2e73eec 100644 --- a/Test/Mono.Cecil.Tests/PortablePdbTests.cs +++ b/Test/Mono.Cecil.Tests/PortablePdbTests.cs @@ -409,14 +409,14 @@ namespace Mono.Cecil.Tests { [Test] public void InvalidConstantRecord () { - TestModule ("mylib.dll", module => { + using (var module = GetResourceModule ("mylib.dll", new ReaderParameters { SymbolReaderProvider = new PortablePdbReaderProvider () })) { var type = module.GetType ("mylib.Say"); var method = type.GetMethod ("hello"); var symbol = method.DebugInformation; Assert.IsNotNull (symbol); Assert.AreEqual (0, symbol.Scope.Constants.Count); - }, symbolReaderProvider: typeof (PortablePdbReaderProvider), symbolWriterProvider: typeof (PortablePdbWriterProvider)); + } } [Test] |