Steven Kirk
15c3ef499b
Added failing test for #993 .
9 years ago
Steven Kirk
153a4532ae
Added failing test for #886 .
9 years ago
Steven Kirk
c9e90fd7fc
Fix type conversions.
They were not correct before. Also clarified the two types of
conversions:
- `TryConvertImplicit` implements the implicit conversions allowed by
the C# language
- `TryConvert` tries every means at its disposal to convert a value to a
type
`AvaloniaObject` uses only implicit conversions. This allows one to
write:
```
var control = new TextBlock
{
[Canvas.TopProperty] = 10
}
```
Without implicit conversions, this would fail because `Canvas.Top` is a
`double` whereas `10` is an `int`, however only implicit conversions
should be used here, otherwise the following would pass, which is
probably not what would be wanted:
```
var control = new TextBlock
{
[TextBlock.TextProperty] = observable, // Text is now the type name of
`observable`
}
```
`DefaultValueConverter` uses `TryConvert`, i.e. every conversion
possible.
Fixes #972 .
9 years ago
Steven Kirk
9a015afa99
Fixed leak tests.
`IRenderer` mock was keeping hold of references passed to `AddDirty` -
tried resetting the mock but references were still held, so replaced the
mock `IRenderer` with a `NullRenderer` that fixes the problem.
9 years ago
Steven Kirk
425a670b9d
Added immediate renderer hit tests.
Ported from `scenegraph`. Tests from
`VisualExtensionsTests_GetVisualsAt` moved there.
9 years ago
Steven Kirk
69a06e452e
Fixed some Visuals unit tests.
Ported some stuff from `scenegraph` that was missed in #956 , which fixes
some of the failing Avalonia.Visuals.UnitTests.
9 years ago
Steven Kirk
a49f1e0c96
Update binding redirects.
9 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
9 years ago
Steven Kirk
1af559c52e
Fixed name of tests.
9 years ago
Steven Kirk
e6cb529878
Ported immutable media impls from scenegraph.
The deferred renderer requires immutable objects for drawing as it
renders on a separate thread.
9 years ago
Wiesław Šoltés
45112f6690
Fix netcoreapp1.1 target framework build
9 years ago
Steven Kirk
e9968a7606
Make WindowBase.IsVisible show/hide window.
9 years ago
Wiesław Šoltés
fda6a892fb
Removed unused cs file
File was not included in old csproj project
9 years ago
Steven Kirk
4e719262c4
Make WindowBase.IsVisible return correct value.
`WindowBase.IsVisible` now tracks the visibility of the window. Still
needs to call `Show` and `Hide` when changed.
9 years ago
Wiesław Šoltés
e9d108a506
Fixed xml tags
9 years ago
Wiesław Šoltés
3b3266cc7c
Converted Avalonia.Visuals.UnitTests to a new project system
9 years ago
Wiesław Šoltés
105580de35
Fixed xml tag
9 years ago
Wiesław Šoltés
6b0a5c0449
Converted Avalonia.Styling.UnitTests to a new project system
9 years ago
Wiesław Šoltés
86a54ec60d
Converted Avalonia.Markup.Xaml.UnitTests to a new project system
9 years ago
Wiesław Šoltés
19f0f1d407
Removed unused files
9 years ago
Wiesław Šoltés
3495017a07
Removed project guid
9 years ago
Wiesław Šoltés
554ac50c71
Converted Avalonia.Markup.UnitTests to a new project system
9 years ago
Wiesław Šoltés
0c9df8878f
Converted Avalonia.Interactivity.UnitTests to a new project system
9 years ago
Wiesław Šoltés
8601a3e71e
Converted Avalonia.Input.UnitTests to a new project system
9 years ago
Wiesław Šoltés
ad65b6192e
Moved inports to test projects
9 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
9 years ago
Steven Kirk
2734a67fdf
Fixed broken csproj.
9 years ago
Steven Kirk
42239d4498
Moved IDrawingContextImpl to Avalonia.Platform.
So it can be alongside its impl brethren.
9 years ago
Wiesław Šoltés
3a0ac21b48
Consolidated NuGet package versions
9 years ago
Wiesław Šoltés
1615b7992c
Do not include sdk framework twice
9 years ago
Wiesław Šoltés
26561a5ad4
Only include when using net461 framework
9 years ago
Wiesław Šoltés
07b5756b21
Removed non existing items
9 years ago
Wiesław Šoltés
e2489a6b28
Removed unused variable
9 years ago
Wiesław Šoltés
6d557f7819
Already included in coretests.props
9 years ago
Steven Kirk
d7703d619c
Fixed failing test.
And removed `TestServices.WindowImpl` as it was being ignored.
9 years ago
Steven Kirk
65dd1a423b
Use the default compile items in unit tests.
For the tests that have been ported to .net core at least.
9 years ago
Nikita Tsukanov
6cf037ad7c
One liners
9 years ago
Nikita Tsukanov
66ac05b2c2
Removed <Name> elements from new projects
9 years ago
Nikita Tsukanov
d1caaaca3e
Removed <Project>
9 years ago
Nikita Tsukanov
25c7be5b7a
Removed packages.config from csproj.files
9 years ago
Steven Kirk
65f9fe67f7
Added a set of immutable brushes.
Make `SolidColorBrush` immutable, but make the static `Brushes`
properties return immutable brushes. The immutable brushes will be
needed by the deferred renderer.
9 years ago
Nikita Tsukanov
886a65beaa
Use dotnet test for layout and controls tests
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
363898e658
Migrated render tests to PackageReference
9 years ago
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
9 years ago
Steven Kirk
380bd7b74f
Don't validate thread affinity for bindings.
The scheduler should ensure that bindings are called on the correct
thread.
9 years ago
Steven Kirk
609c571424
Added AspectRatio and division operator to Size.
9 years ago
Steven Kirk
64e8896144
Added Rect.Union empty tests.
9 years ago