Wiesław Šoltés
66d5d70784
Use InvariantCulture same as for other tests
[skip ci]
9 years ago
Wiesław Šoltés
872575b9b7
Set project OutputType
9 years ago
Wiesław Šoltés
45112f6690
Fix netcoreapp1.1 target framework build
9 years ago
Wiesław Šoltés
19f0f1d407
Removed unused files
9 years ago
Wiesław Šoltés
554ac50c71
Converted Avalonia.Markup.UnitTests to a new project system
9 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
9 years ago
Wiesław Šoltés
3a0ac21b48
Consolidated NuGet package versions
9 years ago
Nikita Tsukanov
dc8a32d1b1
Run Avalonia.Base.UnitTests using `dotnet test`
9 years ago
Nikita Tsukanov
485fe1364e
Everything is buildable via MSBuild
9 years ago
Nikita Tsukanov
b6b5b9de88
Test now compile and can be run from visual studio
9 years ago
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
9 years ago
Steven Kirk
71c6c572ac
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Steven Kirk
15896f3158
Added failing test for #831 .
10 years ago
Jeremy Koritzinsky
058e28640c
Fixed some whitespace.
10 years ago
Jeremy Koritzinsky
1dc96e4184
Added more tests.
10 years ago
Jeremy Koritzinsky
b038ed55ee
Add ability to set the value pointed to by an indexer node.
10 years ago
Steven Kirk
59c49d259d
Renamed assembly SceneGraph -> Visuals.
To make way for low-level scene graph library.
10 years ago
Steven Kirk
715149b1f5
Improve stream operator error message.
When a stream operator is applied to an unsupported type.
10 years ago
Steven Kirk
0ddf4caa95
Added a "stream" binding expression operator.
Which is now required when wanting to get the value produced by a
Task/IObservable rather than the Task/IObservable itself. Fixes #711 .
10 years ago
Steven Kirk
dd29966f20
Run certain tests in invariant culture.
Fixes #718 .
10 years ago
Wiesław Šoltés
9cdcf6cb02
Revert "Updated projects and packages"
This reverts commit 7cca79b435 .
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
7cb001801a
Try to improve logged binding errors.
- Don't log an error when the target for the root ExpressionNode is
null. This is usually because the `DataContext` hasn't been set up yet
and it spewed a load of useless error messages.
- Add a Description field to `ExpressionObserver` that can be used in
the case of e.g. #control bindings to record the whole expression (with
the "#control" part) rather than just the part tracked by the
`ExpressionObserver`.
10 years ago
Steven Kirk
f59c16bc00
Improve broken binding diagnostic messages.
10 years ago
Steven Kirk
57a611533c
Added Data Annotations validation.
10 years ago
Steven Kirk
6ca54f7de5
Move Avalonia.Markup.UnitTests to .net 4.5.
10 years ago
Steven Kirk
06cd5c15f1
Don't run markup unit tests in parallel.
See if fixes intermittently failing test.
10 years ago
Steven Kirk
50b0b687cd
Moved some leak tests to LeakTests.
So they can be debugged in dotMemory.
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
5a9be7d94a
Make sure new value is returned.
When a property value is set, if a new value isn't notified via INPC,
then send the new value after the set succeeds.
10 years ago
Wiesław Šoltés
7cca79b435
Updated projects and packages
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
0c2057e458
Fix failing tests, add other tests.
Also use logical parent's DataContext as base for DataContext bindings
instead of visual parent's. Was previously in error.
10 years ago
Steven Kirk
c5c60c483a
Add concept of "value plugins".
These are used to extensibly handle special values like `Task` and
`IObservable<>`. Previously this was baked into the expression observer
architecture with a TODO comment saying that it needs to be extensible.
10 years ago
Steven Kirk
2f72295657
Started refactor of ExpressionObserver.
Tying to be more "rx", but also will allow us to move forward on BindingNotification changes.
10 years ago
Steven Kirk
4ffae3eb55
Added IndeiBase
And use it as base class for test data that implements
INotifyDataErrorInfo. Removed IndeiValidatorTests as its been
superceeded by IndeiValidationPluginTests.
10 years ago
Steven Kirk
ac427192df
Use NotifyingBase in unit tests.
And rename NotifyingBase.SubscriptionCount ->
PropertyChangedSubscriptionCount as we also track ErrorsChanged
subscription count.
10 years ago
Steven Kirk
4906a472b0
Reimplemented data validation using BindingNotifications.
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
Jeremy Koritzinsky
3c5848bc2c
Updated Rx to 3.0 and fixed a failing test from a not fully set up mock.
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
5c33fbc6ee
Reimplemented property validation.
As far as it was in `property-validation-grokys` branch. Things were
messed up on master so had to merge this manually so may be problems.
10 years ago
Steven Kirk
d97c276b52
Added ncrunch project files.
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago