Jeremy Koritzinsky
cf8244b37a
Move current contents of Avalonia.Markup to Avalonia.Base. Move Avalonia.Markup.Xaml.Data/Parser classes to Avalonia.Markup since they're not Xaml-specific.
Use pattern-matching switch.
Fix bug from cleanup.
8 years ago
Benedikt Schroeder
73ca7334ee
Initial
8 years ago
Benedikt Schroeder
eafb8cde9e
revert BindingExpressionTests
8 years ago
Benedikt Schroeder
87cc247100
fix tests
8 years ago
Steven Kirk
48f0c05522
Fix BindingNotification.ClearValue.
It should have been setting it to `UnsetValue` not null. This allows two skipped tests to pass.
9 years ago
Steven Kirk
ef1039b865
Unskip another test.
9 years ago
Steven Kirk
7baa7dc0dd
Added GC.KeepAlive to tests.
Lots of `Avalonia.Markup.UnitTests` were failing intermittently. This is because in release mode, in a method like this:
```
[Fact]
public void SetValue_Should_Return_False_For_Missing_Object()
{
var data = new Class1();
var target = new ExpressionObserver(data, "Next.Bar");
using (target.Subscribe(_ => { }))
{
Assert.False(target.SetValue("baz"));
}
}
```
`data` can get GC'ed at any point after creating target. Added `GC.KeepAlive()` calls to prevent this.
Fixes #1035
Fixes #1036
Fixes #1037
9 years ago
Steven Kirk
11586a4d4c
Don't have async void tests.
That's bad. Also un-skip binding expression tests.
9 years ago
Wiesław Šoltés
9450cbe4fd
Skip failing Moq tests
9 years ago
Wiesław Šoltés
8b0ebc135e
Skip failing Moq tests
9 years ago
Wiesław Šoltés
1f9426b345
Fix InvariantCultureFixture
9 years ago
Wiesław Šoltés
3db4a5826c
Skip tests as results are not consistent
9 years ago
Wiesław Šoltés
bd3b34c0c8
Fix .NETCoreApp,Version=v1.1 tests
9 years ago
Wiesław Šoltés
91aaf87a36
Remove NET461 specific assert
9 years ago
Wiesław Šoltés
dc92cd95ac
Fix NET461 tests
9 years ago
Wiesław Šoltés
3ee2d9425f
Fix expected exception message
9 years ago
Wiesław Šoltés
bb117a7952
Set CurrentUICulture for tests
9 years ago
Wiesław Šoltés
66d5d70784
Use InvariantCulture same as for other tests
[skip ci]
9 years ago
Wiesław Šoltés
45112f6690
Fix netcoreapp1.1 target framework build
9 years ago
Jeremy Koritzinsky
b038ed55ee
Add ability to set the value pointed to by an indexer node.
9 years ago
Steven Kirk
dd29966f20
Run certain tests in invariant culture.
Fixes #718 .
10 years ago
Steven Kirk
079d481e36
Renamed ExpressionSubject -> BindingExpression.
`ExpressionSubject` wasn't a good name as the important thing it isn't
convert an `ExpressionObserver` into an `ISubject`. The important thing
it does is insert an `IValueConverter` into the pipeline.
10 years ago
Steven Kirk
c9d3408c29
Improve numerical binding error messages.
10 years ago
Steven Kirk
844da05fe8
Revert "Only send BindingNotifications on error."
This reverts commit 57e646583f .
For TextBox there can be 2 bindings to Text: one which is the binding to the
view model which should have data validation enabled, and another binding to
the TextPresenter in the template which should not have data validation
enabled, or it will override the view model data validation. For this we need
to be able to distinguish between the two and so bindings with data validation
enabled need to always send BindingNotifications.
Conflicts:
src/Avalonia.Base/AvaloniaObject.cs
tests/Avalonia.Markup.Xaml.UnitTests/Data/BindingTests_Validation.cs
10 years ago
Steven Kirk
57e646583f
Only send BindingNotifications on error.
Assume that a normal value when received by a property with data
validation enabled means no error.
10 years ago
Steven Kirk
74e870333b
Correctly convert BindingNotifications.
In ExpressionSubject.
10 years ago
Steven Kirk
f4c57b169b
Handle BindingNotifications in ExpressionSubject.
10 years ago
Steven Kirk
abdbcac79d
Added BindingNotification.
This will replace BindingError and IValidationStatus for bindings that want to notify binding/validation errors. Still WIP.
10 years ago
Wiesław Šoltés
15264a974a
Added initial support for Travis CI
10 years ago
Steven Kirk
0b28e10f21
Make broken DataContext bindings produce null.
This prevents incorrect DataContexts cascading down to children when the
DataContext binding is invalid, e.g. when things are being set up.
10 years ago
Steven Kirk
55a99684c7
Handle locales with ',' decimal separator.
Fixes #535 .
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
a03dad9bab
Removed a bunch of unused members/classes.
10 years ago
Steven Kirk
9199bb48ce
Use invariant locale in tests.
Fixes #304 .
10 years ago
Steven Kirk
b9992c582c
Added binding ConverterParameter.
Closes #317 .
10 years ago
Steven Kirk
6fd2ec36a2
Fixed directory name/namespace in tests.
To make it same as the namespace being tested.
10 years ago
Steven Kirk
e301e56a9d
Start making Converters work.
When passed to Binding. Found another problem with OmniXAML which means
we can't continue along this road: OmniXAML issue #50 .
10 years ago
Steven Kirk
b230c3b3f3
Renamed XamlBinding -> Binding
Had to also rename enclosing namespace from Binding to Data as classes
with same name as a namespace cause problems.
10 years ago
Steven Kirk
16825ac45e
Handle null and UnsetValue in ExpressionSubject.
10 years ago