Example #1
0
        public void ShouldConvertNonZeroDecimalToCollapsed()
        {
            var converter = new ZeroToVisibilityConverter();

            var visibility = converter.Convert(1M, null, null, null);

            Assert.Equal(Visibility.Visible, visibility);
        }
Example #2
0
        public void ShouldConvertDecimalZeroToCollapsed()
        {
            var converter = new ZeroToVisibilityConverter();

            var visibility = converter.Convert(0M, null, null, null);

            Assert.Equal(Visibility.Collapsed, visibility);
        }
Example #3
0
        public void ShouldConvertNonZeroToVisible(object zero)
        {
            var converter = new ZeroToVisibilityConverter();

            var visibility = converter.Convert(zero, null, null, null);

            Assert.Equal(Visibility.Visible, visibility);
        }
Example #4
0
        public void ShouldConvertZeroToCollapsed(object zero)
        {
            var converter = new ZeroToVisibilityConverter();

            var visibility = converter.Convert(zero, null, null, null);

            Assert.Equal(Visibility.Collapsed, visibility);
        }