Steven Kirk
5cc5b91930
Fix xunit warnings.
8 years ago
ARSolog
8a8a6de9a6
Update ExpressionObserverTests_DataValidation.cs
fix Validation_Plugins_Send_Correct_Notifications to non 'en-us' CultureInfo.
9 years ago
ARSolog
9539979a6e
Update DataAnnotationsValidationPluginTests.cs
fix unit test to non 'en-us' CultureInfo
9 years ago
Jeremy Koritzinsky
54e8187a70
Fix StackOverflow in Negation Binding. Fixes #1213
9 years ago
Jeremy Koritzinsky
81168ac094
Add error handling for methods with too many parameters. Add support for static methods.
9 years ago
Jeremy Koritzinsky
250f6acef0
Add delegate -> command conversion as a default value conversion.
9 years ago
Jeremy Koritzinsky
12ec059acb
Initial code to enable binding to a method.
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Steven Kirk
3eb5e0e200
Tweaked logging of binding errors.
1. Fixed some tests to expect `BindingNotification`s to be returned on a broken binding chain.
2. Changed logging of `BindingNotification`s - log at `Warning` level (instead of `Error`) except when the binding chain is broken at the root, in which case log at `Information` level. Do this to prevent flooding the output window when initializing.
9 years ago
Steven Kirk
7c13974285
Added failing test for #546 .
9 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
129378cad1
Added more GC.KeepAlive statements.
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
b79fc889eb
Fix duplicate 'CollectionBehavior' attribute
[skip ci]
9 years ago
Wiesław Šoltés
a07ae6e7ca
Limit Tasks to a single thread
https://github.com/xunit/xunit/issues/244#issuecomment-68325962
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
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
6036bd5998
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 .
9 years ago
Jeremy Koritzinsky
058e28640c
Fixed some whitespace.
9 years ago
Jeremy Koritzinsky
1dc96e4184
Added more tests.
9 years ago
Jeremy Koritzinsky
b038ed55ee
Add ability to set the value pointed to by an indexer node.
9 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