StringSegment behavior (#55501)
authorhrrrrustic <35951936+hrrrrustic@users.noreply.github.com>
Thu, 15 Jul 2021 20:54:13 +0000 (23:54 +0300)
committerGitHub <noreply@github.com>
Thu, 15 Jul 2021 20:54:13 +0000 (15:54 -0500)
commit188c2702cd6f365bfad3a985f82e1f9cd520aeb4
treefa5de3f5429190fae7f4b738045fc584f619d4b3
parentbcc794492e076dff00592a152c0725058a24362c
StringSegment behavior (#55501)

* Add tests for old issue

* Add test for new issue

* fix behavior for old issue

* fix behavior for new issue

* Update IndexOf checks for consistency

Co-authored-by: Günther Foidl <gue@korporal.at>
Co-authored-by: Günther Foidl <gue@korporal.at>
src/libraries/Microsoft.Extensions.Primitives/src/StringSegment.cs
src/libraries/Microsoft.Extensions.Primitives/tests/StringSegmentTest.cs