public void ConvertTest(double input, double parameter)
 {
     var converter = new MultiplyConverter();
     Assert.Equal(
         input * parameter, 
         converter.Convert(input, parameter, CultureInfo.InvariantCulture));
 }
Exemplo n.º 2
0
        public void Convert_2_Parameter5()
        {
            var converter = new MultiplyConverter();

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

            Assert.AreEqual(0d, converter.Convert(5, typeof(int), "0", (CultureInfo)null));
        }
Exemplo n.º 4
0
        public void Convert_Null()
        {
            var converter = new MultiplyConverter();

            Assert.AreEqual(0d, converter.Convert(null, typeof(int), null, (CultureInfo)null));
        }