public virtual void TestLsRemote()
        {
            FilePath     directory = CreateTempDirectory("testRepository");
            CloneCommand command   = Git.CloneRepository();

            command.SetDirectory(directory);
            command.SetURI("file://" + git.GetRepository().WorkTree.GetPath());
            command.SetCloneAllBranches(true);
            Git git2 = command.Call();

            AddRepoToClose(git2.GetRepository());
            LsRemoteCommand   lsRemoteCommand = git2.LsRemote();
            ICollection <Ref> refs            = lsRemoteCommand.Call();

            NUnit.Framework.Assert.IsNotNull(refs);
            NUnit.Framework.Assert.AreEqual(6, refs.Count);
        }