IntelliTect / TestTools

A collection of tools for aiding in test automation
MIT License
10 stars 7 forks source link

Change ConsoleTest exception message with "Like" comparisons to not show length difference. #43

Closed MarkMichaelis closed 5 years ago

MarkMichaelis commented 5 years ago

For example, a message might read, "Test method AddisonWesley.Michaelis.EssentialCSharp.Chapter16.Listing16_14.Tests.ProgramTests.SelectingAnonymousTypeFollowingGroupClause threw exception: System.Exception: expected: 5141 actual: 5141 NOTE: The expected string contains wildcard charaters: [,],?,*,# ..."

I presume the expected: 5141 actual: 5141 is length and is meaningless when using "Like" comparison.