This repository contains the source code for the SnapshooterDemo project. The goal of this project is to demonstrate the practical application and benefits of using Snapshooter for snapshot testing in .NET projects. The solution showcases how Snapshooter can be integrated with Xunit to simplify the testing of complex data structures in .NET applications, highlighting the efficiency gains in the testing process.
SnapshooterDemo demonstrates the integration of Snapshooter with .NET testing frameworks to facilitate snapshot testing. The repository includes projects like SnapshooterDemo.Models and SnapshooterDemo.Tests, illustrating the use of Snapshooter to significantly reduce the complexity and increase the reliability of unit tests.
- SnapshooterDemo.Models: Contains the core logic and models for the application.
- SnapshooterDemo.Tests: Demonstrates the use of Snapshooter with Xunit for effective snapshot testing.
- SharedBlazorApp.sln: Main solution file that encompasses the model and test projects.
The solution is organized into two main projects:
- SnapshooterDemo.Models: Hosts the business logic and data models.
- SnapshooterDemo.Tests: Contains all the test cases, showcasing traditional tests and snapshot tests using Snapshooter.
To run the project locally on your machine, follow these steps:
- Clone the repository:
git clone https://github.com/yourusername/SnapshooterDemo.git
- Navigate to the project directory:
cd SnapshooterDemo
- Restore the NuGet packages:
dotnet restore
- Run the tests:
dotnet test
Contributions are welcome! If you'd like to improve this project, open a pull request or report an issue.
This project is licensed under the MIT License.