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
9247a82ea8
Updated XUnit props
9 years ago
Wiesław Šoltés
872575b9b7
Set project OutputType
9 years ago
Steven Kirk
3e8587348d
Change ILockedFrameBuffer.Dpi to Vector.
`ILockedFrameBuffer.Dpi` was a `Size` but it would make more sense as a `Vector` because `Size * Vector` produces a `Size` whereas a `Size * Size` would produce a `Size3D` if that type existed.
9 years ago
Steven Kirk
e015ef07bf
Remove ReactiveUI dependency from DevTools.
9 years ago
Steven Kirk
4730ee1c41
Fix spelling of descendant.
While "descendent" is an acceptable English spelling, "descendant" is the common spelling.
9 years ago
Steven Kirk
5a819c1c87
Make Window.OpenWindows readonly
And hack around the fact that it's static in unit tests.
9 years ago
Steven Kirk
a7ff93450e
Fixed problems with Windows.OpenWindows.
- Showing a window was causing it to be added to the collection twice because `Show()` called `IsVisible = true` which called `Show()`
- The window wasn't getting removed when the `PlatformImpl` signalled it was closed
9 years ago
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 .
10 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.
10 years ago
Steven Kirk
425a670b9d
Added immediate renderer hit tests.
Ported from `scenegraph`. Tests from
`VisualExtensionsTests_GetVisualsAt` moved there.
10 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.
10 years ago
Steven Kirk
a49f1e0c96
Update binding redirects.
10 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
10 years ago
Steven Kirk
1af559c52e
Fixed name of tests.
10 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.
10 years ago
Wiesław Šoltés
45112f6690
Fix netcoreapp1.1 target framework build
10 years ago
Steven Kirk
e9968a7606
Make WindowBase.IsVisible show/hide window.
10 years ago
Wiesław Šoltés
fda6a892fb
Removed unused cs file
File was not included in old csproj project
10 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.
10 years ago
Wiesław Šoltés
e9d108a506
Fixed xml tags
10 years ago
Wiesław Šoltés
3b3266cc7c
Converted Avalonia.Visuals.UnitTests to a new project system
10 years ago
Wiesław Šoltés
105580de35
Fixed xml tag
10 years ago
Wiesław Šoltés
6b0a5c0449
Converted Avalonia.Styling.UnitTests to a new project system
10 years ago
Wiesław Šoltés
86a54ec60d
Converted Avalonia.Markup.Xaml.UnitTests to a new project system
10 years ago
Wiesław Šoltés
19f0f1d407
Removed unused files
10 years ago
Wiesław Šoltés
3495017a07
Removed project guid
10 years ago
Wiesław Šoltés
554ac50c71
Converted Avalonia.Markup.UnitTests to a new project system
10 years ago
Wiesław Šoltés
0c9df8878f
Converted Avalonia.Interactivity.UnitTests to a new project system
10 years ago
Wiesław Šoltés
8601a3e71e
Converted Avalonia.Input.UnitTests to a new project system
10 years ago
Wiesław Šoltés
ad65b6192e
Moved inports to test projects
10 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
10 years ago
Steven Kirk
2734a67fdf
Fixed broken csproj.
10 years ago
Steven Kirk
42239d4498
Moved IDrawingContextImpl to Avalonia.Platform.
So it can be alongside its impl brethren.
10 years ago
Wiesław Šoltés
3a0ac21b48
Consolidated NuGet package versions
10 years ago
Wiesław Šoltés
1615b7992c
Do not include sdk framework twice
10 years ago
Wiesław Šoltés
26561a5ad4
Only include when using net461 framework
10 years ago
Wiesław Šoltés
07b5756b21
Removed non existing items
10 years ago
Wiesław Šoltés
e2489a6b28
Removed unused variable
10 years ago
Wiesław Šoltés
6d557f7819
Already included in coretests.props
10 years ago
Steven Kirk
d7703d619c
Fixed failing test.
And removed `TestServices.WindowImpl` as it was being ignored.
10 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.
10 years ago
Nikita Tsukanov
6cf037ad7c
One liners
10 years ago
Nikita Tsukanov
66ac05b2c2
Removed <Name> elements from new projects
10 years ago
Nikita Tsukanov
d1caaaca3e
Removed <Project>
10 years ago
Nikita Tsukanov
25c7be5b7a
Removed packages.config from csproj.files
10 years ago