8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bfe5e4 commit 1ca809dCopy full SHA for 1ca809d
LibGit2Sharp.Tests/NetworkFixture.cs
@@ -22,7 +22,14 @@ public void CanListRemoteReferences(string url)
22
using (var repo = new Repository(repoPath))
23
{
24
Remote remote = repo.Network.Remotes.Add(remoteName, url);
25
- IEnumerable<DirectReference> references = repo.Network.ListReferences(remote);
+ IList<DirectReference> references = repo.Network.ListReferences(remote).ToList();
26
+
27
+ foreach (var directReference in references)
28
+ {
29
+ // None of those references point to an existing
30
+ // object in this brand new repository
31
+ Assert.Null(directReference.Target);
32
+ }
33
34
List<Tuple<string, string>> actualRefs = references.
35
Select(directRef => new Tuple<string, string>(directRef.CanonicalName, directRef.TargetIdentifier)).ToList();
0 commit comments