Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public void true_results_in_visible()
        {
            IValueConverter converter = new BooleanToVisibleConverter();

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

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