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

Activity

Show:
Alex Zaytsev
January 20, 2015, 8:20 AM

Merged to 4.0.x at 569b49c4ead3f026f0a161c1b9b6833fb92e7216

Alex Zaytsev
May 1, 2017, 3:37 AM

Closing issues resolved in 4.0.3

Assignee

Alex Zaytsev

Reporter

Daniel Castro Alvarado

Labels

None

Components

Fix versions

Affects versions

Priority

Trivial
Configure