Пример #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);
        }
Пример #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);
        }