public void ConvertBackTest()
        {
            var converter = new DoubleToIntegerConverter();
            const double DoubleValue = 12.34;
            var expectedValue = (int)Math.Round(DoubleValue);

            var actual = converter.ConvertBack(DoubleValue, null, null, CultureInfo.InvariantCulture);

            Assert.IsTrue(actual is int);
            Assert.AreEqual(expectedValue, actual);
        }
 public void WhenCalledConvertBack_ReturnsRoundedValue()
 {
     const double value = 123.4567;
     var doubleToIntegerConverter = new DoubleToIntegerConverter();
     Assert.AreEqual(123, doubleToIntegerConverter.ConvertBack(value, null, null, null));
 }