From 5bd5e4b8020f43ac79be5f938eda8bdf05d81ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 13 Oct 2023 19:39:28 +0200 Subject: [PATCH] Small changes to Snapshot docs --- AMWD.Common.Test/SnapshotAssert.cs | 12 ++++++------ CHANGELOG.md | 5 +---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/AMWD.Common.Test/SnapshotAssert.cs b/AMWD.Common.Test/SnapshotAssert.cs index 4da74bd..f418a31 100644 --- a/AMWD.Common.Test/SnapshotAssert.cs +++ b/AMWD.Common.Test/SnapshotAssert.cs @@ -16,8 +16,8 @@ namespace AMWD.Common.Test /// /// The current aggregated content string. /// An error message. - /// The absolute file path of the calling file (filled automatically by the compiler service). - /// The name of the calling method (filled automatically by the compiler service). + /// The absolute file path of the calling file (filled automatically on compile time). + /// The name of the calling method (filled automatically on compile time). 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 /// /// The current aggregated content bytes. /// An error message. - /// The absolute file path of the calling file (filled automatically by the compiler service). - /// The name of the calling method (filled automatically by the compiler service). + /// The absolute file path of the calling file (filled automatically on compile time). + /// The name of the calling method (filled automatically on compile time). 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 /// The first byte to compare. /// The last byte to compare. /// An error message. - /// The absolute file path of the calling file (filled automatically by the compiler service). - /// The name of the calling method (filled automatically by the compiler service). + /// The absolute file path of the calling file (filled automatically on compile time). + /// The name of the calling method (filled automatically on compile time). 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); diff --git a/CHANGELOG.md b/CHANGELOG.md index 55a3e68..8395e65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`