Info
Version: | 1.0.0 |
Author(s): | SQLServerSnapshots |
Last Update: | Sunday, October 18, 2020 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/SQLServerSnapshots |
Install
Install-Package SQLServerSnapshots
dotnet add package SQLServerSnapshots
paket add SQLServerSnapshots
SQLServerSnapshots Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.SqlServer.SqlManagementObjects(>= 161.41011.9)
- SnapshotTests(>= 1.0.0)
Point the library at a database instance and it will configure itself from the database schema.
You can then request a snapshot of the data prior to running your test code, and take a second snapshot after the code has completed. The two snapshots can then be compared and a report will be generated showing the changes.
Unpredictable values (such as IDENTITY keys or timestamps) in the difference report will be replaced by placeholders so that the test results will be consistent each time the test is run.