Example #1
0
        public void GetConverterForDouble()
        {
            var converter = TypeConverterFactory.CreateTypeConverter(typeof(double));

            Assert.IsInstanceOfType(converter, typeof(DoubleConverter));
        }
Example #2
0
        public void GetConverterForChar()
        {
            var converter = TypeConverterFactory.CreateTypeConverter(typeof(char));

            Assert.IsInstanceOfType(converter, typeof(CharConverter));
        }
Example #3
0
        public void GetConverterForDecimal()
        {
            var converter = TypeConverterFactory.CreateTypeConverter(typeof(decimal));

            Assert.IsInstanceOfType(converter, typeof(DecimalConverter));
        }
Example #4
0
        public void GetConverterForByte()
        {
            var converter = TypeConverterFactory.CreateTypeConverter(typeof(byte));

            Assert.IsInstanceOfType(converter, typeof(ByteConverter));
        }
Example #5
0
        public void GetConverterForUInt64()
        {
            var converter = TypeConverterFactory.CreateTypeConverter(typeof(ulong));

            Assert.IsInstanceOfType(converter, typeof(UInt64Converter));
        }
Example #6
0
        public void GetConverterForUInt16()
        {
            var converter = TypeConverterFactory.CreateTypeConverter(typeof(ushort));

            Assert.IsInstanceOfType(converter, typeof(UInt16Converter));
        }
Example #7
0
        public void GetConverterForString()
        {
            var converter = TypeConverterFactory.CreateTypeConverter(typeof(string));

            Assert.IsInstanceOfType(converter, typeof(StringConverter));
        }
Example #8
0
        public void GetConverterForUnknownTypeTest()
        {
            var converter = TypeConverterFactory.CreateTypeConverter(typeof(TestClass));

            Assert.IsInstanceOfType(converter, typeof(DefaultTypeConverter));
        }