Steven Kirk
30e78dc5b6
Only run unit tests on .net core.
This allows us to run them on linux.
9 years ago
Steven Kirk
d2e1eba876
Refactored geometry.
There were a number of problems with `Geometry` and its subclasses and platform implementations. Fix these, for more details see the PR that this commit is a part of.
9 years ago
Steven Kirk
64ed0761c7
Rename Dispatcher invoke methods.
`InvokeAsync` -> `Post`
`InvokeTaskAsync` -> `InvokeAsync`
9 years ago
Jeremy Koritzinsky
abe1afbb01
Retarget base unit tests library (that is just included in tests) back to net461.
9 years ago
Jeremy Koritzinsky
bc3e3cb25d
Update project file for Avalonia.UnitTests to use net47 instead of net461
9 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
9 years ago
Steven Kirk
e6b5df8d08
Simplified DeferredRendererTests,
9 years ago
Nikita Tsukanov
a4c9f1e400
Make ShapeLayoutTests use MockPlatformRenderInterface
9 years ago
Steven Kirk
685a509c5c
Reimplement commented-out tests.
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Steven Kirk
4a9302b61e
More work on static resources.
Also found a scenario that Portable.Xaml can't seem to handle...
9 years ago
Steven Kirk
84aa27162f
Made a start adding Control/Application.Resources.
9 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
Steven Kirk
2f5d8e2d1e
Fix merge error.
9 years ago
Steven Kirk
bb11b302b8
Added failing unit test for #277 .
9 years ago
Steven Kirk
78bb593f97
Use CurrentCulture instead of CurrentUICulture.
Use `CurrentCulture` instead of `CurrentUICulture` in converters etc. `CurrentUICulture` should be used for translations, `CurrentCulture` should be used for things like numbers, dates etc.
9 years ago
Steven Kirk
309c9f7a4b
Added some LayoutManager tests.
Some passing, some failing.
9 years ago
Wiesław Šoltés
1f9426b345
Fix InvariantCultureFixture
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
Wiesław Šoltés
2afd6cb224
Remove NuGet workaround
9 years ago
Andrey Kunchev
b5e290ceaf
fix build
9 years ago
Steven Kirk
7fd1adbacd
This needs to be settable.
9 years ago
Steven Kirk
96f316eca6
Removed some small diffs from master.
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.
10 years ago
Steven Kirk
1b517903c3
Fix merge errors.
10 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
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
Steven Kirk
376535b198
Make IFormattedTextImpl immutable.
Previously `IFormattedTextImpl` had `SetForegroundBrush` which set
mutable state. Make `FormattedText` fully mutable (before it was kinda
mutable, kinda immutable) and create immutable `IFormattedTextImpl`s on
demand.
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
f8097cc27d
Added msbuild props for package references
10 years ago
Wiesław Šoltés
26561a5ad4
Only include when using net461 framework
10 years ago
Steven Kirk
d7703d619c
Fixed failing test.
And removed `TestServices.WindowImpl` as it was being ignored.
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
dc8a32d1b1
Run Avalonia.Base.UnitTests using `dotnet test`
10 years ago
Nikita Tsukanov
485fe1364e
Everything is buildable via MSBuild
10 years ago
Nikita Tsukanov
b6b5b9de88
Test now compile and can be run from visual studio
10 years ago
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
10 years ago
donandren
8b468c174c
fix AvaloniaPropertyConverter Tests, added attached property binding test, fixed some tests, simplified others
10 years ago
Steven Kirk
a5f03f7a89
Don't need to pass visual brush renderer when creating render target.
10 years ago
Steven Kirk
a46be4e200
Ensure correct thread for AvaloniaProperty access.
Previously we ensured that `AvaloniaObject.SetValue` was run on the main
thread. This makes sure that `GetValue`, `IsSet` and `ClearValue` are
also run on the main thread. Unit testing this turned out to be more
complicated than expected, because `Dispatcher` keeps a hold of a
reference to the first `IPlatformThreadingInterface` it sees, so made
`UnitTestApplication` able to notify `Dispatcher` that it should update
its services.
10 years ago
Steven Kirk
71c6c572ac
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
10 years ago
Steven Kirk
6036bd5998
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
10 years ago
Steven Kirk
4fc75cb2fb
Fixed failing tests.
10 years ago
Steven Kirk
5e4f5a6160
Handle geometry clips on child layers.
10 years ago
Steven Kirk
abe69ac320
Moved some mocks into Avalonia.UnitTests.
From Avalonia.Visuals.UnitTests as they're useful generally.
10 years ago
Nikita Tsukanov
c93a6235aa
Make sure that Renderer is disposed when TopLevel is closed
10 years ago
Steven Kirk
ab9cf03eff
WIP: Delegate back to render for VisualBrushes.
`VisualBrush`es need to get delegated back to the renderer for
rendering, so added an `IVisualBrushRenderer` interface which is
implemented by the renderers, and pass this when creating drawing
contexts. Only currently implemented/tested for D2D and
`ImmediateRenderer`.
10 years ago