public void TestString()
        {
            var input = "test";

            VisibilityConverter converter = new VisibilityConverter();
            Visibility result = (Visibility)converter.Convert(input, typeof(Visibility), null, null);

            Assert.AreEqual(Visibility.Visible, result);
        }
        public void TestStringEmpty()
        {
            var input = "";

            VisibilityConverter converter = new VisibilityConverter();
            Visibility result = (Visibility)converter.Convert(input, typeof(Visibility), null, null);

            Assert.AreEqual(Visibility.Collapsed, result);
        }
        public void TestBoolFalse()
        {
            var input = false;

            VisibilityConverter converter = new VisibilityConverter();
            Visibility result = (Visibility)converter.Convert(input, typeof(Visibility), null, null);

            Assert.AreEqual(Visibility.Collapsed, result);
        }
        public void TestVisibiliyCollapsed()
        {
            Visibility input = Visibility.Collapsed;

            VisibilityConverter converter = new VisibilityConverter();
            Visibility result = (Visibility)converter.Convert(input, typeof(Visibility), null, null);

            Assert.AreEqual(Visibility.Collapsed, result);
        }
        public void TestObjectNotNull()
        {
            object input = new VisibilityConverter();

            VisibilityConverter converter = new VisibilityConverter();
            Visibility result = (Visibility)converter.Convert(input, typeof(Visibility), null, null);

            Assert.AreEqual(Visibility.Visible, result);
        }
        public void TestFilledIntCollection()
        {
          IEnumerable<int> input = new List<int>() { 1,2,3 };

          VisibilityConverter converter = new VisibilityConverter();
          Visibility result = (Visibility)converter.Convert(input, typeof(Visibility), null, null);

          Assert.AreEqual(Visibility.Visible, result);
        }
        public void TestFilledCollection()
        {
          IEnumerable<string> input = new List<string>() { "test" } ;

          VisibilityConverter converter = new VisibilityConverter();
          Visibility result = (Visibility)converter.Convert(input, typeof(Visibility), null, null);

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