You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standardize assertion error messages across TUnit.Assertions for
consistency:
- GetExpectation() now consistently uses "to [verb] [value]" pattern
(e.g., "to match regex" instead of "text match regex")
- Failure messages now consistently use "received [actual]" pattern
instead of mixed "found", "value is", "was", "both values are" forms
- Exception type names now consistently use .Name (short name) instead
of .FullName (fully qualified name)
Changes span 17 source files in TUnit.Assertions/Conditions and
TUnit.Assertions/Collections, with corresponding updates to 10 test
files.
varexpectedMessage=$"Expected to be equal to \"Lorem ipsum dolor sit amet diam duo amet sea rebum. Et voluptua ex voluptua no praesent diam eu se…\"{Environment.NewLine}"+
156
-
$"but found\"Lorem ipsum dolor sit amet diam duo amet sea rebum. Et voluptua ex voluptua no praesent diam eu se…\" which differs at index 556:{Environment.NewLine}"+
156
+
$"but received\"Lorem ipsum dolor sit amet diam duo amet sea rebum. Et voluptua ex voluptua no praesent diam eu se…\" which differs at index 556:{Environment.NewLine}"+
157
157
$" ↓{Environment.NewLine}"+
158
158
$" \"Consequat odio ea veniam. Amet enim in gubergren s…\"{Environment.NewLine}"+
159
159
$" \"Consequat odio ea veniam! Amet enim in gubergren s…\"{Environment.NewLine}"+
0 commit comments