You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.47
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
parent
88ff76fe28
commit
e46a49ecf1
@@ -59,6 +59,9 @@ namespace Mono.Cecil.Tests {
|
||||
[Test]
|
||||
public void Retargetable ()
|
||||
{
|
||||
if (Platform.OnCoreClr)
|
||||
return;
|
||||
|
||||
TestModule ("RetargetableExample.dll", module => {
|
||||
var type = module.Types [1];
|
||||
var property = type.Properties [0];
|
||||
@@ -76,6 +79,9 @@ namespace Mono.Cecil.Tests {
|
||||
[Test]
|
||||
public void SystemRuntime ()
|
||||
{
|
||||
if (Platform.OnCoreClr)
|
||||
return;
|
||||
|
||||
TestModule ("System.Runtime.dll", module => {
|
||||
Assert.AreEqual ("System.Runtime", module.Assembly.Name.Name);
|
||||
Assert.AreEqual (1, module.AssemblyReferences.Count);
|
||||
@@ -83,5 +89,19 @@ namespace Mono.Cecil.Tests {
|
||||
Assert.AreEqual (module.AssemblyReferences [0], module.TypeSystem.CoreLibrary);
|
||||
}, verify: !Platform.OnMono);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void MismatchedLibraryAndSymbols_DoNotThrow ()
|
||||
{
|
||||
// SQLite-net.dll (from nuget) shiped with mismatched symbol files, but throwIfNoSymbol did not prevent it from throwing
|
||||
var readerParms = new ReaderParameters {
|
||||
ReadSymbols = true,
|
||||
SymbolReaderProvider = new Cil.DefaultSymbolReaderProvider (throwIfNoSymbol: false)
|
||||
};
|
||||
|
||||
using (var module = GetResourceModule ("SQLite-net.dll", readerParms)) {
|
||||
Assert.Null (module.SymbolReader);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user