Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 10 days 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 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T07:06:46.000Z (23 days ago)
- Last Synced: 2024-10-17T17:57:23.110Z (19 days ago)
- Topics: hacktoberfest, wpf, xaml
- Language: C#
- Homepage:
- Size: 684 KB
- Stars: 41
- Watchers: 3
- Forks: 11
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# XAMLTest
[![Build](https://github.com/Keboo/XAMLTest/workflows/.NET%20Core/badge.svg)](https://github.com/Keboo/XAMLTest/actions/workflows/dotnet-core.yml)
[![NuGet](https://img.shields.io/nuget/v/XAMLTest.svg?label=NuGet)](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).