Example #1
0
        /// <summary>
        /// </summary>
        /// <param name="assembly"></param>
        /// <returns></returns>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="assembly"/> is <see langword="null"/>.</para>
        /// </exception>
        public static ProgramsCache FromAssembly(Assembly assembly)
        {
            if (assembly == null)
            {
                throw new ArgumentNullException("assembly");
            }

            ProgramsCache cache = new ProgramsCache();

            cache._programs = ProgramLoader.LoadProgramsFromAssembly(assembly);
            return(cache);
        }
Example #2
0
        public void LoadProgramsFromAssemblyTest()
        {
            IList <ProgramDescriptor> programs = ProgramLoader.LoadProgramsFromAssembly(Assembly.GetExecutingAssembly());

            LoadProgramsInternalTest(programs);
        }
Example #3
0
 public void LoadProgramFromAssemblyArgumentNullExceptionTest()
 {
     ProgramLoader.LoadProgramsFromAssembly(null);
 }