Convert() public method

public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object
        public void WhenConvertCalledWithDifferentValueThenVisibilityWhenNotEqualReturned()
        {
            // Arrange
            var expected = Visibility.Collapsed;

            var value = DummyEnum.Value2;
            var converterParameter = DummyEnum.Value1;

            var target = new EnumVisibilityConverter();
            target.VisibilityWhenNotEqual = Visibility.Collapsed;

            // Act
            var actual = target.Convert(value, typeof(Visibility), converterParameter, CultureInfo.InvariantCulture);

            // Assert
            Assert.AreEqual(expected, actual);
        }