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
Copy file name to clipboardExpand all lines: BREAKING_CHANGES.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,18 @@ You can read the original problem specification and discussion [here](https://g
23
23
24
24
If your project has been impacted by this particular breaking change, you might consider reevaluate the correctness of the affected tests.
25
25
26
+
## Error Messages
27
+
28
+
Some error messages surrounded actual values in double quotes. Others surrounded the values in single quotes. In version 3.0.0 *all* values are surrounded in single quotes.
29
+
30
+
### Reason
31
+
32
+
Consistency.
33
+
34
+
### Fix
35
+
36
+
Amend all effected tests to expect single quotes instead of double quotes.
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected value for key \"{0}\" to be \"{1}\", but instead found \"{2}\"",key,expectedValue,actualValue)));
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected value for key '{0}' to be '{1}', but instead found '{2}'",key,expectedValue,actualValue)));
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected file contents to be \"{0}\", but instead was \"{1}\".",contents,ControllerResultTestController.TextualFileContent)));
107
+
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected file contents to be '{0}', but instead was '{1}'.",contents,ControllerResultTestController.TextualFileContent)));
108
108
}
109
109
110
110
[Test]
@@ -309,7 +309,7 @@ public void Check_for_file_stream_result_and_check_invalid_textual_content()
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected file contents to be \"{0}\", but instead was \"{1}\".",contents,ControllerResultTestController.TextualFileContent)));
312
+
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected file contents to be '{0}', but instead was '{1}'.",contents,ControllerResultTestController.TextualFileContent)));
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected content to be \"{0}\", but instead was \"{1}\".",content,ControllerResultTestController.TextualContent)));
29
+
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected content to be '{0}', but instead was '{1}'.",content,ControllerResultTestController.TextualContent)));
30
30
}
31
31
32
32
[Test]
@@ -42,7 +42,7 @@ public void Check_for_content_result_and_check_content_and_check_invalid_content
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected content type to be \"{0}\", but instead was \"{1}\".",contentType,ControllerResultTestController.ContentType)));
45
+
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected content type to be '{0}', but instead was '{1}'.",contentType,ControllerResultTestController.ContentType)));
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected value for key \"{0}\" to be \"{1}\", but instead found \"{2}\"",key,expectedValue,actualValue)));
62
+
Assert.That(exception.Message,Is.EqualTo(string.Format("Expected value for key '{0}' to be '{1}', but instead found '{2}'",key,expectedValue,actualValue)));
63
63
}
64
64
65
65
[Test]
@@ -117,7 +117,7 @@ public void Check_for_non_existent_temp_data_property_when_supplied_with_predica
117
117
_tempDataTest.AndShouldHaveTempDataProperty<int>(key, x =>x==0));
0 commit comments