https://github.com/keboo/xamltest
A purpose build library for testing XAML styles and templates in isolation.
https://github.com/keboo/xamltest
hacktoberfest wpf xaml
Last synced: 8 months ago
JSON representation
A purpose build library for testing XAML styles and templates in isolation.
- Host: GitHub
- URL: https://github.com/keboo/xamltest
- Owner: Keboo
- License: mit
- Created: 2020-07-15T04:36:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-10T20:05:46.000Z (9 months ago)
- Last Synced: 2025-05-07T20:10:03.929Z (8 months ago)
- Topics: hacktoberfest, wpf, xaml
- Language: C#
- Homepage:
- Size: 715 KB
- Stars: 47
- Watchers: 2
- Forks: 11
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XAMLTest
[](https://github.com/Keboo/XAMLTest/actions/workflows/dotnet-core.yml)
[](https://www.nuget.org/packages/XAMLTest/)
## Description
XAMLTest is a testing framework designed to allow WPF developers a way to directly "unit test" their XAML. In many ways this library is similar to a UI testing library, with some key differences. Rather than leveraging accessibility or automation APIs, this library is designed to load up a small piece of XAML and provide a simple API to make assertions about the run-time state of the UI. This library is NOT DESIGNED to replace UI testing of WPF apps. Instead, it serves as a helpful tool for WPF library and theme developers to have a mechanism to effectively write tests for their XAML.
## Versioning
After the 1.0.0 release, this library will follow [Semantic Versioning](https://semver.org/). However, in the interim while developing the initial release all 0.x.x versions should be considered alpha releases and all APIs are subject to change without notice.
## Samples?
See the tests (XAMLTests.Tests) for samples of how tests can be setup. [Material Design In XAML Toolkit](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit) is also leveraging this library for the purpose of testing its various styles and templates. You can see samples of its tests [here](https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/tree/master/MaterialDesignThemes.UITests).