示例#1
0
        public void ToInt64()
        {
            var converter = ConverterFactory.Create <int, long>();

            Assert.Equal(ManualConverter.Int32ToInt64(0), converter(0));
            Assert.Equal(ManualConverter.Int32ToInt64(1), converter(1));
            Assert.Equal(ManualConverter.Int32ToInt64(-1), converter(-1));
            Assert.Equal(ManualConverter.Int32ToInt64(Int32.MinValue), converter(Int32.MinValue));
            Assert.Equal(ManualConverter.Int32ToInt64(Int32.MaxValue), converter(Int32.MaxValue));
        }