Small changes to Snapshot docs
This commit is contained in:
@@ -16,8 +16,8 @@ namespace AMWD.Common.Test
|
||||
/// </summary>
|
||||
/// <param name="actual">The current aggregated content string.</param>
|
||||
/// <param name="message">An error message.</param>
|
||||
/// <param name="callerFilePath">The absolute file path of the calling file (filled automatically by the compiler service).</param>
|
||||
/// <param name="callerMemberName">The name of the calling method (filled automatically by the compiler service).</param>
|
||||
/// <param name="callerFilePath">The absolute file path of the calling file (filled automatically on compile time).</param>
|
||||
/// <param name="callerMemberName">The name of the calling method (filled automatically on compile time).</param>
|
||||
public static void AreEqual(string actual, string message = null, [CallerFilePath] string callerFilePath = null, [CallerMemberName] string callerMemberName = null)
|
||||
{
|
||||
string cleanLineEnding = actual
|
||||
@@ -31,8 +31,8 @@ namespace AMWD.Common.Test
|
||||
/// </summary>
|
||||
/// <param name="actual">The current aggregated content bytes.</param>
|
||||
/// <param name="message">An error message.</param>
|
||||
/// <param name="callerFilePath">The absolute file path of the calling file (filled automatically by the compiler service).</param>
|
||||
/// <param name="callerMemberName">The name of the calling method (filled automatically by the compiler service).</param>
|
||||
/// <param name="callerFilePath">The absolute file path of the calling file (filled automatically on compile time).</param>
|
||||
/// <param name="callerMemberName">The name of the calling method (filled automatically on compile time).</param>
|
||||
public static void AreEqual(byte[] actual, string message = null, [CallerFilePath] string callerFilePath = null, [CallerMemberName] string callerMemberName = null)
|
||||
=> AreEqual(actual, 0, -1, message, callerFilePath, callerMemberName);
|
||||
|
||||
@@ -47,8 +47,8 @@ namespace AMWD.Common.Test
|
||||
/// <param name="firstByteIndex">The first byte to compare.</param>
|
||||
/// <param name="lastByteIndex">The last byte to compare.</param>
|
||||
/// <param name="message">An error message.</param>
|
||||
/// <param name="callerFilePath">The absolute file path of the calling file (filled automatically by the compiler service).</param>
|
||||
/// <param name="callerMemberName">The name of the calling method (filled automatically by the compiler service).</param>
|
||||
/// <param name="callerFilePath">The absolute file path of the calling file (filled automatically on compile time).</param>
|
||||
/// <param name="callerMemberName">The name of the calling method (filled automatically on compile time).</param>
|
||||
public static void AreEqual(byte[] actual, int firstByteIndex, int lastByteIndex, string message = null, [CallerFilePath] string callerFilePath = null, [CallerMemberName] string callerMemberName = null)
|
||||
{
|
||||
string callerDir = Path.GetDirectoryName(callerFilePath);
|
||||
|
||||
@@ -5,15 +5,12 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Upcoming Test](https://git.am-wd.de/AM.WD/common/compare/test/v2.0.0...test/v2.1.0) - 0000-00-00
|
||||
## [test/v2.1.0](https://git.am-wd.de/AM.WD/common/compare/test/v2.0.0...test/v2.1.0) - 2023-10-13
|
||||
|
||||
### Added
|
||||
|
||||
- Added `SnapshotAssert` for better UnitTesting
|
||||
|
||||
|
||||
## [Upcoming](https://git.am-wd.de/AM.WD/common/compare/v2.0.0...main) - 0000-00-00
|
||||
|
||||
### Changed
|
||||
|
||||
- Moved `AMWD.Common.Moq` to `AMWD.Common.Test`
|
||||
|
||||
Reference in New Issue
Block a user