Esempio n. 1
0
        public void IntInRangeToVisibilityConverter_ConvertBack_ThrowsNotImplementedException()
        {
            //------------Setup for test--------------------------
            var converter = new IntInRangeToVisibilityConverter();

            //------------Execute Test---------------------------
            var result = converter.ConvertBack(null, new[] { typeof(int) }, null, CultureInfo.CurrentCulture);

            //------------Assert Results-------------------------
        }
Esempio n. 2
0
        void Verify_Convert(object[] values, Visibility expectedVisibility)
        {
            //------------Setup for test--------------------------
            var converter = new IntInRangeToVisibilityConverter();

            //------------Execute Test---------------------------
            var result = converter.Convert(values, typeof(int), null, CultureInfo.CurrentCulture);

            //------------Assert Results-------------------------
            Assert.AreEqual(expectedVisibility, result);
        }