public void GetPreciseIssueLocations_NotStartOfLineIsOk() { var line = GetLine(3, @"if (a > b) { Console.WriteLine(a); // ^^^^^^^^^ }"); var result = new IssueLocationCollector().GetPreciseIssueLocations(line).ToList(); result.Should().ContainSingle(); var issueLocation = result.First(); issueLocation.IsPrimary.Should().BeTrue(); issueLocation.LineNumber.Should().Be(3); issueLocation.Start.Should().Be(12); issueLocation.Length.Should().Be(9); }