Imported Upstream version 5.16.0.113

Former-commit-id: 2bcc375d35c32f5e7df9471e4d4c4ad1a42644a2
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-08-18 08:20:11 +00:00
parent 14c2d0c196
commit 2f73666fb6
43 changed files with 57 additions and 34 deletions

View File

@ -1287,6 +1287,22 @@ namespace MonoTests.System.Reflection
} catch (NotImplementedException){
}
}
[Test]
[ExpectedException (typeof (ArgumentException))]
public void LoadFileRelativeThrows ()
{
Assembly.LoadFile (Path.Combine ("non-existent", "relative", "path.dll"));
}
[Test]
[ExpectedException (typeof (FileNotFoundException))]
public void LoadFileAbsoluteNotFoundThrows ()
{
// have to use GetFullPath so we get C:\... on Windows
var abspath = Path.GetFullPath (Path.Combine ("non-existent", "absolute", "path.dll"));
Assembly.LoadFile (abspath);
}
}
public class TestDefinedTypes