public void TestAddingOffset(
     double input,
     double parameter)
 {
     var converter = new AddOffsetConverter();
     Assert.Equal(input + parameter, converter.Convert(input, parameter, CultureInfo.InvariantCulture));
 }
        public void ConvertTheory(int value, double offset)
        {
            var addOffsetConverter = new AddOffsetConverter();
            var nonGenericConverter = addOffsetConverter as IValueConverter;

            Assert.Equal(
                nonGenericConverter.Convert(value, typeof(double), offset, CultureInfo.InvariantCulture), 
                addOffsetConverter.Convert(value, offset, CultureInfo.InvariantCulture));
            Assert.Equal(
                nonGenericConverter.ConvertBack(value, typeof(double), offset, CultureInfo.InvariantCulture), 
                addOffsetConverter.ConvertBack(value, offset, CultureInfo.InvariantCulture));
        }
 public void Convert()
 {
     var addOffsetConverter = new AddOffsetConverter();
     var converterAsValueConverter = addOffsetConverter as IValueConverter;
     Assert.Equal(
         converterAsValueConverter.Convert(
             15,
             typeof(double),
             3,
             CultureInfo.InvariantCulture),
         addOffsetConverter.Convert(
             15,
             3,
             CultureInfo.InvariantCulture));
     
 }