public void ConvertTest(double input, double parameter) { var converter = new MultiplyConverter(); Assert.Equal( input * parameter, converter.Convert(input, parameter, CultureInfo.InvariantCulture)); }
public void Convert_2_Parameter5() { var converter = new MultiplyConverter(); Assert.AreEqual(10d, converter.Convert(2, typeof(int), "5", (CultureInfo)null)); }
public void Convert_5_Parameter0() { var converter = new MultiplyConverter(); Assert.AreEqual(0d, converter.Convert(5, typeof(int), "0", (CultureInfo)null)); }
public void Convert_Null() { var converter = new MultiplyConverter(); Assert.AreEqual(0d, converter.Convert(null, typeof(int), null, (CultureInfo)null)); }