public static void GetTypeByNameCaseSensitiveTypeloadFailure()
{
RemoteInvokeOptions options = new RemoteInvokeOptions();
RemoteInvoke(() =>
{
//Type load failure due to case sensitive search of type Ptogram
string test3 = "System.Collections.Generic.Dictionary`2[[Program, TestLoadAssembly], [program, TestLoadAssembly]]";
Assert.Throws<TypeLoadException>(() =>
Type.GetType(test3,
assemblyloader,
typeloader,
true,
false //case sensitive
));
//non throwing version
Type t2 = Type.GetType(test3,
assemblyloader,
typeloader,
false, //no throw
false
);
Assert.Null(t2);
return SuccessExitCode;
}, options).Dispose();
}