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