public void ConvertBackTest()
 {
     TickConverter target = new TickConverter();
     object value = null;
     Type[] targetTypes = new Type[] { typeof(double) };
     object parameter = null;
     CultureInfo culture = CultureInfo.CurrentCulture;
     target.ConvertBack(value, targetTypes, parameter, culture);
 }
 public void ConvertTest()
 {
     TickConverter target = new TickConverter();
     object[] values = new object[2];
     Collection<double> doubleValues = new Collection<double>();
     for (double value = 0; value <= 100; value++)
     {
         doubleValues.Add(value * 0.01);
     }
     values[0] = 46;
     values[1] = doubleValues;
     Type targetType = typeof(int);
     object parameter = null;
     CultureInfo culture = CultureInfo.CurrentCulture;
     object expected = "0.45";
     object actual;
     actual = target.Convert(values, targetType, parameter, culture);
     Assert.AreEqual(expected, actual);
 }
 public void ConvertNullTest()
 {
     TickConverter target = new TickConverter();
     object[] values = null;
     Assert.IsNull(target.Convert(values, typeof(int), null, CultureInfo.CurrentCulture));
 }