public void ItemSelectedEventArgsConverter(SelectedItemChangedEventArgs value, object expectedResult) { var itemSelectedEventArgsConverter = new ItemSelectedEventArgsConverter(); var result = itemSelectedEventArgsConverter.Convert(value, typeof(ItemSelectedEventArgsConverter), null, CultureInfo.CurrentCulture); Assert.Equal(result, expectedResult); }
public void InvalidConverterValuesThrowsArgumenException(object value) { var itemSelectedEventArgsConverter = new ItemSelectedEventArgsConverter(); Assert.Throws <ArgumentException>(() => itemSelectedEventArgsConverter.Convert(value, typeof(ItemSelectedEventArgsConverter), null, CultureInfo.CurrentCulture)); }