Skip to content

Commit f4bec40

Browse files
authored
Fix exception messages (#182)
***NO_CI***
1 parent 7fb3464 commit f4bec40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/TestFramework/Assert.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ public sealed class Assert
2121
private const string WrongExceptionThrown = "Threw exception {2}, but exception {1} was expected. {0}\r\nException Message: {3}";
2222
private const string NoExceptionThrown = "No exception thrown. {1} exception was expected. {0}";
2323
private const string AreSameGivenValues = "Do not pass value types to AreSame(). Values converted to Object will never be the same. Consider using AreEqual(). {0}";
24-
private const string IsNotInstanceOfFailMsg = "Wrong Type:<{1}>. Actual type:<{2}>. {0}";
25-
private const string IsInstanceOfFailMsg = "{0} Expected type:<{1}>. Actual type:<{2}>.";
24+
private const string IsNotInstanceOfFailMsg = "Wrong Type:<{1}>. Actual type:<{2}>. {0}";
25+
private const string IsInstanceOfFailMsg = "{0} Expected type:<{1}>. Actual type:<{2}>.";
2626
private const string StringContainsFailMsg = "{2} does not contains {1}. {0}";
2727
private const string StringDoesNotContainsFailMsg = "{2} should not contain {1}. {0}";
2828
private const string StringDoesNotEndWithFailMsg = "{2} does not end with {1}. {0}";
2929
private const string StringDoesNotStartWithFailMsg = "{2} does not start with {1}. {0}";
30-
private const string AreEqualFailMsg = "Expected:&lt;{1}&gt;. Actual:&lt;{2}&gt;. {0}";
31-
private const string AreNotEqualFailMsg = "Expected any value except:&lt;{1}&gt;. Actual:&lt;{2}&gt;. {0}";
30+
private const string AreEqualFailMsg = "Expected:<{1}>. Actual:<{2}>. {0}";
31+
private const string AreNotEqualFailMsg = "Expected any value except:<{1}>. Actual:<{2}>. {0}";
3232
private const string NullParameterToAssert = "The parameter '{0}' is invalid. The value cannot be null. {1}.";
3333

3434
#region SkipTest

0 commit comments

Comments
 (0)