public void WhenCalledConvertBack_ReturnsCorrectValueType()
 {
     const double value = 123.4567;
     var doubleToDecimalConverter = new DoubleToDecimalConverter();
     Assert.IsInstanceOfType(doubleToDecimalConverter.ConvertBack(value, null, null, null), typeof(decimal));
     Assert.AreEqual((decimal)value, doubleToDecimalConverter.ConvertBack(value, null, null, null));
 }
        public void ConvertBackTest()
        {
            var converter = new DoubleToDecimalConverter();
            const double DoubleValue = 12.34;
            const decimal DecimalValue = (decimal)DoubleValue;

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

            Assert.IsTrue(actual is decimal);
            Assert.AreEqual(DecimalValue, actual);
        }