Exemplo n.º 1
0
        public void DepthToColumnDefinitionWidthConverter(int value, int expected)
        {
            var converter = new DepthToColumnDefinitionWidthConverter();
            var actual    = converter.Convert(value, null, null, null);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void DepthToColumnDefinitionWidthConverterArgumentNullException()
        {
            var converter = new DepthToColumnDefinitionWidthConverter();

            Assert.Null(converter.Convert(null, null, null, null));
        }
Exemplo n.º 3
0
        public void DepthToColumnDefinitionWidthConverterArgumentException()
        {
            var converter = new DepthToColumnDefinitionWidthConverter();

            Assert.Throws <ArgumentException>(() => converter.Convert(new { a = 1 }, null, null, null));
        }