Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Xunit2MethodInfo"/> class.
        /// </summary>
        /// <param name="v3MethodInfo">The v3 method info to wrap.</param>
        public Xunit2MethodInfo(_IMethodInfo v3MethodInfo)
        {
            V3MethodInfo = Guard.ArgumentNotNull(nameof(v3MethodInfo), v3MethodInfo);

            ReturnType = new Xunit2TypeInfo(V3MethodInfo.ReturnType);
            Type       = new Xunit2TypeInfo(V3MethodInfo.Type);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="Xunit2ParameterInfo"/> class.
        /// </summary>
        /// <param name="v3ParameterInfo">The v3 parameter info to wrap.</param>
        public Xunit2ParameterInfo(_IParameterInfo v3ParameterInfo)
        {
            V3ParameterInfo = Guard.ArgumentNotNull(nameof(v3ParameterInfo), v3ParameterInfo);

            ParameterType = new Xunit2TypeInfo(V3ParameterInfo.ParameterType);
        }