public void Convert_IfTargetTypeIsNotVisibility_ReturnsUnsetValue()
        {
            // Arrange

            var target = new VisibilityCollapsedValueConverter();

            // Act

            var converted = target.Convert(true, typeof(object), null, CultureInfo.InvariantCulture);

            // Assert

            Assert.AreEqual(DependencyProperty.UnsetValue, converted);
        }
        public void Convert_IfParameterTypesAreCorrectAndValueIsNull_ReturnsUnsetValue()
        {
            // Arrange

            var target = new VisibilityCollapsedValueConverter();

            // Act

            var converted = target.Convert(null, typeof(Visibility), null, CultureInfo.InvariantCulture);

            // Assert

            Assert.AreEqual(DependencyProperty.UnsetValue, converted);
        }
        public void Convert_IfValueIsNotNullableBoolean_ReturnsUnsetValue()
        {
            // Arrange

            var target = new VisibilityCollapsedValueConverter();

            // Act

            var converted = target.Convert(5, typeof(Visibility), null, CultureInfo.InvariantCulture);

            // Assert

            Assert.AreEqual(DependencyProperty.UnsetValue, converted);
        }
        public void Convert_IfParameterTypesAreCorrectAndValueIsFalse_ReturnsCollapsedValue()
        {
            // Arrange

            var target = new VisibilityCollapsedValueConverter();

            // Act

            var converted = target.Convert(false, typeof(Visibility), null, CultureInfo.InvariantCulture);

            // Assert

            Assert.AreEqual(Visibility.Collapsed, converted);
        }