From 520eb131776fa427eb69453bebbcc7088bde10af Mon Sep 17 00:00:00 2001 From: "Michael C. Fanning" Date: Mon, 13 Feb 2023 09:23:38 -0800 Subject: [PATCH] Update test comment. --- src/Test.UnitTests.Sarif/FileRegionsCacheTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]