TemplatedViolatedConstraintNameExtracter.ExtractUsingTemplate calls Substring with wrong arguments

Description

I guess it's a rarely used class, but I was testing it today and I found a bug.

The method ExtractUsingTemplate calls String.Substring with the start and the end index, but Substring expects the start index and the length.

Attached is the patch to fix it

Environment

None

Attachments

1
  • 06 May 2013, 01:54 AM

Activity

Show:

Alex Zaytsev May 1, 2017 at 3:37 AM

Closing issues resolved in 4.0.3

Alex Zaytsev January 20, 2015 at 8:20 AM

Merged to 4.0.x at 569b49c4ead3f026f0a161c1b9b6833fb92e7216

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?

Created May 6, 2013 at 1:54 AM
Updated May 1, 2017 at 3:37 AM
Resolved January 20, 2015 at 8:20 AM
Who's Looking?