Ejemplo n.º 1
0
        public void ToSByte()
        {
            var converter = ConverterFactory.Create <int, sbyte>();

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