示例#1
0
        public void CanLocalize(Exception ex, string expected)
        {
            var errorMessage = EditConnectionViewErrorLocalizer.Localize(ex);

            errorMessage.ShouldBe(expected);
        }
        /// <inheritdoc/>
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var v = value as Exception;

            return(EditConnectionViewErrorLocalizer.Localize(v));
        }