public void Convert_TotalDurationIsNull()
        {
            var converter = new GapToMarginConverter();

            ((Thickness)
             (converter.Convert(new object[] { (long)(1), (double)(0), (double)(20) }, typeof(double), null,
                                CultureInfo.InvariantCulture))).Top.Should().Be(0.0);
        }
        public void Convert_AllValuesOk_ParameterSet()
        {
            var converter = new GapToMarginConverter();

            ((Thickness)
             (converter.Convert(new object[] { (long)(1), (double)(10), (double)(20) }, typeof(double), (long)(5),
                                CultureInfo.InvariantCulture))).Left.Should().Be(5.0);
        }
        public void Convert_ThirdValueDependencyPropertyUnset()
        {
            var converter = new GapToMarginConverter();

            ((Thickness)
             (converter.Convert(new[] { (long)(1), (double)(10), DependencyProperty.UnsetValue }, typeof(double), null,
                                CultureInfo.InvariantCulture))).Top.Should().Be(0.0);
        }
        public void Convert_AllValuesOk()
        {
            var converter = new GapToMarginConverter();

            ((Thickness)
             (converter.Convert(new object[] { (long)(1), (double)(10), (double)(20) }, typeof(double), null,
                                CultureInfo.InvariantCulture))).Top.Should().Be(2.0);
        }