Something like `Assert.NotNull(repo.Branches["origin/test"]);` should work.