Esempio n. 1
0
        public void Should_convert_Visible_Visibility_back_to_true()
        {
            var boolean = new BooleanToVisibilityConverter().ConvertBack(Visibility.Visible, null, null, null);

            Assert.AreEqual(true, boolean);
        }
Esempio n. 2
0
        public void Should_convert_false_to_Collapsed_Visibility()
        {
            var visibility = new BooleanToVisibilityConverter().Convert(false, null, null, null);

            Assert.AreEqual(Visibility.Collapsed, visibility);
        }
Esempio n. 3
0
        public void Should_convert_true_to_Visible_Visibility()
        {
            var visiblity = new BooleanToVisibilityConverter().Convert(true,null,null, null);

            Assert.AreEqual(Visibility.Visible, visiblity);
        }
Esempio n. 4
0
        public void Should_convert_Collapsed_Visibility_back_to_false()
        {
            var boolean = new BooleanToVisibilityConverter().ConvertBack(Visibility.Collapsed, null, null, null);

            Assert.AreEqual(false, boolean);
        }