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 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_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 ConvertBack_Converts_To_Unset()
        {
            var conv = new NullEmptyCollapsedConverter();

            var result = conv.ConvertBack(Visibility.Collapsed, typeof(object), null, CultureInfo.CurrentCulture);

            Assert.AreEqual(DependencyProperty.UnsetValue, result, "No longer an unsupported operation?");
        }
        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);
        }