Example #1
0
        /// <summary>
        /// Declares a variable within the application under test using the specified information.
        /// </summary>
        /// <param name="newInfo">Variable in the application</param>
        /// <param name="operationTypeInfo">
        /// Operation type information.
        /// Used to call operation of the same name of a parent class when two or more overloads exist for the indicated operation.
        /// In many cases, an overload can be resolved using the parameters without specifying an OperationTypeInfo.
        /// </param>
        /// <returns>Variable in the application.</returns>
#else
        /// <summary>
        /// テスト対象アプリケーション内に指定の生成情報で生成されたオブジェクトを格納する変数を宣言します。
        /// </summary>
        /// <param name="newInfo">生成情報。</param>
        /// <param name="operationTypeInfo">操作タイプ情報。(オーバーロードの解決等に使用します。)</param>
        /// <returns>アプリケーション内変数。</returns>
#endif
        public AppVar Dim(NewInfo newInfo, OperationTypeInfo operationTypeInfo)
        {
            if (newInfo == null)
            {
                throw new ArgumentNullException("newInfo");
            }
            return(Invoke(ProtocolType.VarNew, operationTypeInfo, newInfo.TypeFullName, newInfo.Arguments));
        }
Example #2
0
        /// <summary>
        /// Declares a variable within the application under test using the specified information.
        /// </summary>
        /// <param name="newInfo">Object generation information</param>
        /// <returns>Variable in the application.</returns>
#else
        /// <summary>
        /// テスト対象アプリケーション内に指定の生成情報で生成されたオブジェクトを格納する変数を宣言します。
        /// </summary>
        /// <param name="newInfo">生成情報。</param>
        /// <returns>アプリケーション内変数。</returns>
#endif
        public AppVar Dim(NewInfo newInfo)
        {
            if (newInfo == null)
            {
                return(Dim());//特殊処理。空の変数宣言 Dim(object obj)と混同しないための処理。
            }
            return(Invoke(ProtocolType.VarNew, null, newInfo.TypeFullName, newInfo.Arguments));
        }
Example #3
0
 public AppVar Dim(NewInfo newInfo, OperationTypeInfo operationTypeInfo)
 {
     if (newInfo == null)
     {
         throw new ArgumentNullException("newInfo");
     }
     return Invoke(ProtocolType.VarNew, operationTypeInfo, newInfo.TypeFullName, newInfo.Arguments);
 }
Example #4
0
 public AppVar Dim(NewInfo newInfo)
 {
     if (newInfo == null)
     {
         return Dim();//特殊処理。空の変数宣言 Dim(object obj)と混同しないための処理。
     }
     return Invoke(ProtocolType.VarNew, null, newInfo.TypeFullName, newInfo.Arguments);
 }