コード例 #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 OperatorsCache FromAssembly(Assembly assembly)
        {
            if (assembly == null)
            {
                throw new ArgumentNullException("assembly");
            }

            OperatorsCache cache = new OperatorsCache();

            cache._operators = OperatorLoader.LoadOperatorsFromAssembly(assembly);
            return(cache);
        }
コード例 #2
0
        public void LoadOperatorsFromAssemblyTest()
        {
            Dictionary <String, OperatorDescriptor> operators = OperatorLoader.LoadOperatorsFromAssembly(Assembly.GetExecutingAssembly());

            LoadOperatorsInternalTest(operators);
        }
コード例 #3
0
 public void LoadOperatorsFromAssemblyArgumentNullExceptionTest()
 {
     OperatorLoader.LoadOperatorsFromAssembly(null);
 }