|
|
|
@ -200,13 +200,6 @@ namespace Avalonia.Markup.UnitTests.Data |
|
|
|
DefaultValueConverter.Instance); |
|
|
|
var result = await target.Take(1); |
|
|
|
|
|
|
|
#if NET461
|
|
|
|
Assert.Equal( |
|
|
|
new BindingNotification( |
|
|
|
new InvalidCastException("Could not convert FallbackValue 'bar' to 'System.Int32'"), |
|
|
|
BindingErrorType.Error), |
|
|
|
result); |
|
|
|
#else
|
|
|
|
Assert.Equal( |
|
|
|
new BindingNotification( |
|
|
|
new AggregateException( |
|
|
|
@ -214,7 +207,6 @@ namespace Avalonia.Markup.UnitTests.Data |
|
|
|
new InvalidCastException("Could not convert FallbackValue 'bar' to 'System.Int32'")), |
|
|
|
BindingErrorType.Error), |
|
|
|
result); |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
@ -234,13 +226,6 @@ namespace Avalonia.Markup.UnitTests.Data |
|
|
|
DefaultValueConverter.Instance); |
|
|
|
var result = await target.Take(1); |
|
|
|
|
|
|
|
#if NET461
|
|
|
|
Assert.Equal( |
|
|
|
new BindingNotification( |
|
|
|
new InvalidCastException("Could not convert FallbackValue 'bar' to 'System.Int32'"), |
|
|
|
BindingErrorType.Error), |
|
|
|
result); |
|
|
|
#else
|
|
|
|
Assert.Equal( |
|
|
|
new BindingNotification( |
|
|
|
new AggregateException( |
|
|
|
@ -248,7 +233,6 @@ namespace Avalonia.Markup.UnitTests.Data |
|
|
|
new InvalidCastException("Could not convert FallbackValue 'bar' to 'System.Int32'")), |
|
|
|
BindingErrorType.Error), |
|
|
|
result); |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
|