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 TestInt0()
        {
            var input = 0;

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

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

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

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

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

            Assert.AreEqual(Visibility.Visible, 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);
        }