Skip to content

Commit

Permalink
Update test comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcfanning committed Feb 13, 2023
1 parent 09a417c commit 520eb13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Test.UnitTests.Sarif/FileRegionsCacheTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 520eb13

Please sign in to comment.