public void DepthToColumnDefinitionWidthConverter(int value, int expected) { var converter = new DepthToColumnDefinitionWidthConverter(); var actual = converter.Convert(value, null, null, null); Assert.Equal(expected, actual); }
public void DepthToColumnDefinitionWidthConverterArgumentNullException() { var converter = new DepthToColumnDefinitionWidthConverter(); Assert.Null(converter.Convert(null, null, null, null)); }
public void DepthToColumnDefinitionWidthConverterArgumentException() { var converter = new DepthToColumnDefinitionWidthConverter(); Assert.Throws <ArgumentException>(() => converter.Convert(new { a = 1 }, null, null, null)); }