예제 #1
0
        public void false_results_in_visible_when_parameter_is_specified()
        {
            IValueConverter converter = new BooleanToVisibleConverter();

            Assert.That(converter.Convert(true, null, "false", null), Is.EqualTo(Visibility.Collapsed));
        }
예제 #2
0
        public void true_results_in_visible()
        {
            IValueConverter converter = new BooleanToVisibleConverter();

            Assert.That(converter.Convert(true, null, null, null), Is.EqualTo(Visibility.Visible));
        }
예제 #3
0
        public void false_results_in_collapsed()
        {
            IValueConverter converter = new BooleanToVisibleConverter();

            Assert.That(converter.Convert(false, null, null, null), Is.EqualTo(Visibility.Collapsed));
        }