コード例 #1
0
ファイル: 12DecimalToTest.cs プロジェクト: usausa/Work-Net
        public void ToInt32()
        {
            var converter = ConverterFactory.Create <decimal, int>();

            Assert.Equal(ManualConverter.DecimalToInt32(0m), converter(0m));
            Assert.Equal(ManualConverter.DecimalToInt32(1m), converter(1m));
            Assert.Equal(ManualConverter.DecimalToInt32(-1m), converter(-1m));
            //Assert.Equal(ManualConverter.DecimalToInt32(Decimal.MinValue), converter(Decimal.MinValue));
            //Assert.Equal(ManualConverter.DecimalToInt32(Decimal.MaxValue), converter(Decimal.MaxValue));
        }