Exemplo n.º 1
0
        public void Convert()
        {
            var converter = new NullOrEmptyStringToVisibilityConverter
            {
                WhenNullOrEmpty = Visibility.Visible,
                Else            = Visibility.Hidden,
            };
            var convert = ((IValueConverter)converter).Convert(null, null, null, null);

            Assert.AreEqual(Visibility.Visible, convert);
        }
Exemplo n.º 2
0
        public void Convert()
        {
            ModernUIHelper.isInDesignMode = true;
            var converter = new NullOrEmptyStringToVisibilityConverter
            {
                WhenNullOrEmpty = Visibility.Visible,
                Else            = Visibility.Hidden
            };
            var convert = ((IValueConverter)converter).Convert(null, null, null, null);

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