Example #1
0
        internal static void FindLoadedTypes_IgnoresReflectError(Fake <Assembly> assembly, ReflectionTypeLoadException error)
        {
            assembly.Setup(d => d.GetExportedTypes(), Behavior.Throw(error));

            TypeExtensions.FindLoadedTypes(assembly.Dummy).Assert().IsEmpty();
        }
Example #2
0
        internal static void FindLoadedTypes_IgnoresMissingAssembly(Fake <Assembly> assembly, FileNotFoundException error)
        {
            assembly.Setup(d => d.GetExportedTypes(), Behavior.Throw(error));

            TypeExtensions.FindLoadedTypes(assembly.Dummy).Assert().IsEmpty();
        }