예제 #1
0
        public void ConvertTest001_IsNotNull()
        {
            Visibility expected = Visibility.Visible;
            object     param    = null;

            ObjectToVisibilty converter = new ObjectToVisibilty();

            object result = converter.Convert(
                new object(),
                null,
                param,
                CultureInfo.CurrentCulture);

            Assert.AreEqual(expected, result);
        }
예제 #2
0
        public void ConvertTest004_IsNOTNullReversed()
        {
            Visibility expected = Visibility.Collapsed;
            object     param    = "NOT";

            object valueToCOnvert = new object();

            ObjectToVisibilty converter = new ObjectToVisibilty();

            object result = converter.Convert(
                valueToCOnvert,
                null,
                param,
                CultureInfo.CurrentCulture);

            Assert.AreEqual(expected, result);
        }