public void Should_return_empty_for_empty_file() { blame = GitBlame.Parse("".ToStream()); blame.Should().NotBeNull(); blame.Count.Should().Be(0); }
public IBlame Blame(string revision, string filePath) { using (var blame = GetBlame(revision, filePath)) { return(GitBlame.Parse(blame)); } }
public void Should_keep_revisions_for_each_line() { blame = GitBlame.Parse(blame0.ToStream()); blame["a59b276e18f3d4a548caf549e05188cb1bd3a709"] .Should().Be(15); blame["54988bdad7dc3f09e40752221c144bf470d73aa7"] .Should().Be(3); blame["54988bdad7dc3f09e40752221c144bf470d73aa7"] .Should().Be(3); }
public void Should_return_null_for_invalid_path() { blame = GitBlame.Parse(null); blame.Should().BeNull(); }