You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.113
Former-commit-id: 2bcc375d35c32f5e7df9471e4d4c4ad1a42644a2
This commit is contained in:
parent
14c2d0c196
commit
2f73666fb6
@ -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
|
||||
|
Reference in New Issue
Block a user