//
using System;
+using System.IO;
class Miss1 : Missing.Foo1 {
}
return 1;
}
+ internal static int check_file_not_found (TestDel d){
+ try {
+ d ();
+ } catch (FileNotFoundException ex){
+ return 0;
+ }
+ return 1;
+ }
+
internal static int check_missing_field (TestDel d) {
try {
d ();
return 1;
}
+
//
// Base instructions
//
return check_type_load (new TestDel (missing_cpobj));
}
+ public static int test_0_missing_type_on_parameter () {
+ return check_type_load (new TestDel (missing_external_type_reference_on_parameter));
+ }
public static int test_0_initobj () {
return check_type_load (new TestDel (missing_initobj));
}
return check_type_load (new TestDel (missing_unbox_any));
}
+#if false
+ // Bummer: we regressed! I should have put this before
+ public static int test_0_missing_assembly_in_fieldref () {
+ return check_file_not_found (new TestDel (missing_assembly_in_fieldref));
+ }
+#endif
+
+ public static int test_0_missing_assembly_in_call () {
+ return check_missing_method (new TestDel (missing_assembly_in_call));
+ }
+
+ public static int test_0_missing_assembly_in_newobj () {
+ return check_missing_method (new TestDel (missing_assembly_in_newobj));
+ }
+
//
// Missing classes referenced from metadata
//