Ejemplo n.º 1
0
        public void UsesMultipleConverters()
        {
            var converter = new GroupConverter();

            converter.Add(new MathOperationConverter(MathOperator.Add));
            converter.Add(new MathOperationConverter(MathOperator.Subtract));

            Assert.Equal(5, converter.Convert(5, typeof(int), 1, null));
        }