コード例 #1
0
        public AphidTypeConverter ConstructorTest(AphidInterpreter interpreter)
        {
            AphidTypeConverter target = new AphidTypeConverter(interpreter);

            return(target);
            // TODO: add assertions to method AphidTypeConverterTest.ConstructorTest(AphidInterpreter)
        }
コード例 #2
0
        public bool CanDecimalFitTest(decimal value, Type targetType)
        {
            bool result = AphidTypeConverter.CanDecimalFit(value, targetType);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.CanDecimalFitTest(Decimal, Type)
        }
コード例 #3
0
        public IEnumerable <object> BoxValueTypeEnumerableTest(IEnumerable valueTypeSource)
        {
            IEnumerable <object> result = AphidTypeConverter.BoxValueTypeEnumerable(valueTypeSource);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.BoxValueTypeEnumerableTest(IEnumerable)
        }
コード例 #4
0
        public uint ToUInt32Test(decimal value)
        {
            uint result = AphidTypeConverter.ToUInt32(value);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ToUInt32Test(Decimal)
        }
コード例 #5
0
        public ulong ToUInt64Test(decimal value)
        {
            ulong result = AphidTypeConverter.ToUInt64(value);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ToUInt64Test(Decimal)
        }
コード例 #6
0
        public short ToInt16Test(decimal value)
        {
            short result = AphidTypeConverter.ToInt16(value);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ToInt16Test(Decimal)
        }
コード例 #7
0
        public sbyte ToSByteTest(decimal value)
        {
            sbyte result = AphidTypeConverter.ToSByte(value);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ToSByteTest(Decimal)
        }
コード例 #8
0
        public float ToFloatTest(decimal value)
        {
            float result = AphidTypeConverter.ToFloat(value);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ToFloatTest(Decimal)
        }
コード例 #9
0
        public object ConvertTest02(MethodBase opMethod, object argument)
        {
            object result = AphidTypeConverter.Convert(opMethod, argument);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ConvertTest02(MethodBase, Object)
        }
コード例 #10
0
        public double ToDoubleTest(decimal value)
        {
            double result = AphidTypeConverter.ToDouble(value);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ToDoubleTest(Decimal)
        }
コード例 #11
0
        public bool IsNumberTest(Type targetType)
        {
            bool result = AphidTypeConverter.IsNumber(targetType);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.IsNumberTest(Type)
        }
コード例 #12
0
        public object ConvertTest04(Type targetType, decimal value)
        {
            object result = AphidTypeConverter.Convert(targetType, value);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ConvertTest04(Type, Decimal)
        }
コード例 #13
0
 public object[] ConvertTest(
     [PexAssumeUnderTest] AphidTypeConverter target,
     AphidInteropMethodArg[] args,
     Type[] genericArguments
     )
 {
     object[] result = target.Convert(args, genericArguments);
     return(result);
     // TODO: add assertions to method AphidTypeConverterTest.ConvertTest(AphidTypeConverter, AphidInteropMethodArg[], Type[])
 }
コード例 #14
0
        public bool CanConvertArrayTest(
            object value,
            Type valueType,
            Type targetType
            )
        {
            bool result = AphidTypeConverter.CanConvertArray(value, valueType, targetType);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.CanConvertArrayTest(Object, Type, Type)
        }
コード例 #15
0
        public object ConvertArrayTest(
            Type targetType,
            Type srcArrayType,
            Array srcArray
            )
        {
            object result = AphidTypeConverter.ConvertArray(targetType, srcArrayType, srcArray);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ConvertArrayTest(Type, Type, Array)
        }
コード例 #16
0
        public AphidConversionInfo CanConvertTest(
            [PexAssumeUnderTest] AphidTypeConverter target01,
            AphidInteropMethodArg interopArg,
            object val,
            Type target
            )
        {
            AphidConversionInfo result = target01.CanConvert(interopArg, val, target);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.CanConvertTest(AphidTypeConverter, AphidInteropMethodArg, Object, Type)
        }
コード例 #17
0
        public object ConvertTest03(
            [PexAssumeUnderTest] AphidTypeConverter target,
            Type targetType,
            object srcValue,
            Type[] genericArguments
            )
        {
            object result = target.Convert(targetType, srcValue, genericArguments);

            return(result);
            // TODO: add assertions to method AphidTypeConverterTest.ConvertTest03(AphidTypeConverter, Type, Object, Type[])
        }