void CheckBranch() { string name = Repository?.Head.CanonicalName; if (CheckoutedBranch != name) { BranchChanged?.Invoke(); } BranchUpdated?.Invoke(); CheckoutedBranch = name != "(no branch)" ? name : null; }
public void RaisesBranchChangedEvent() => BranchChanged.Should().Contain(args => args.Branch.Name == "master" && args.Renamed.Any(item => item.Key == "subdir\\key" && item.OldKey == "key" && item.GetValue() == "value" && item.GetOldValue() == "value"));
public void RaisesBranchChangedEvent() => BranchChanged.Should().Contain(args => args.Branch.Name == "master" && args.Deleted.Any(item => item.Key == "key"));