public void ConvertBackTest(double output, double parameter)
 {
     var converter = new MultiplyConverter();
     Assert.Equal(
         output / parameter,
         converter.ConvertBack(output, parameter, CultureInfo.InvariantCulture));
 }
Exemplo n.º 2
0
        public void ConvertBack_10_Parameter5()
        {
            var converter = new MultiplyConverter();

            Assert.AreEqual(2d, converter.ConvertBack(10, typeof(int), "5", (CultureInfo)null));
        }
Exemplo n.º 3
0
        public void ConvertBack_0_Parameter5()
        {
            var converter = new MultiplyConverter();

            Assert.AreEqual(double.PositiveInfinity, converter.ConvertBack(5, typeof(int), "0", (CultureInfo)null));
        }