Convert() public method

Converts a value.
public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object The value produced by the binding source.
targetType System.Type The type of the binding target property.
parameter object The converter parameter to use.
culture System The culture to use in the converter.
return object
        public void Null_With_Not_Param_Converts_To_Visible()
        {
            var conv = new NullEmptyCollapsedConverter();

            var result = conv.Convert(null, typeof(Visibility), "not", CultureInfo.CurrentCulture);

            Assert.AreEqual(Visibility.Visible, result);
        }
        public void Any_Object_With_Not_Param_Converts_To_Collapsed()
        {
            var conv = new NullEmptyCollapsedConverter();

            var result = conv.Convert(new { blah = "blah" }, typeof(Visibility), "not", CultureInfo.CurrentCulture);

            Assert.AreEqual(Visibility.Collapsed, result);
        }
        public void Null_Converts_To_Collapsed()
        {
            var conv = new NullEmptyCollapsedConverter();

            var result = conv.Convert(null, typeof(Visibility), null, CultureInfo.CurrentCulture);

            Assert.AreEqual(Visibility.Collapsed, result);
        }
        public void Any_Object_Converts_To_Visible()
        {
            var conv = new NullEmptyCollapsedConverter();

            var result = conv.Convert(new { blah = "blah" }, typeof(Visibility), null, CultureInfo.CurrentCulture);

            Assert.AreEqual(Visibility.Visible, result);
        }