diff --git a/src/Test.UnitTests.Sarif/FileRegionsCacheTests.cs b/src/Test.UnitTests.Sarif/FileRegionsCacheTests.cs index 092e7d6e8..19480e435 100644 --- a/src/Test.UnitTests.Sarif/FileRegionsCacheTests.cs +++ b/src/Test.UnitTests.Sarif/FileRegionsCacheTests.cs @@ -714,14 +714,14 @@ public void FileRegionsCache_IncreasingToLeftAndRight() CharOffset = 114, CharLength = 600, }; - + var fileRegionsCache = new FileRegionsCache(); region = fileRegionsCache.PopulateTextRegionProperties(region, uri, true, fileContent); Region multilineRegion = fileRegionsCache.ConstructMultilineContextSnippet(region, uri); - // 114 (charoffset) + 600 (charlength) + left-side + remainder of 128 chars. - multilineRegion.CharLength.Should().Be(114 + 600 + (128 - 114)); + // 114 (charoffset) + 600 (charlength) + left-side + remainder of file. + multilineRegion.CharLength.Should().Be(fileContent.Length); } [Fact]