Esempio 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);
        }
Esempio 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);
        }