public void GetEnabledRemotesNameWithoutBranches_returns_enabled_remotes_without_branches_only()
        {
            string enabledRemoteNameWithBranches = "enabledRemote1";
            string enabledRemoteNameNoBranches   = "enabledRemote2";
            string disabledRemoteName            = "disabledRemote";

            _module.GetRemoteNames().Returns(x => new[] { enabledRemoteNameWithBranches, enabledRemoteNameNoBranches });

            var refs = new[]
            {
                CreateSubstituteRef("02e10a13e06e7562f7c3c516abb2a0e1a0c0dd90", $"refs/remotes/{enabledRemoteNameWithBranches}/develop", $"{enabledRemoteNameWithBranches}"),
            };

            _module.GetRefs().ReturnsForAnyArgs(refs);

            var sections = new List <IConfigSection> {
                new ConfigSection($"{GitRemoteManager.DisabledSectionPrefix}{GitRemoteManager.SectionRemote}.{disabledRemoteName}", true)
            };

            _configFile.GetConfigSections().Returns(x => sections);

            var enabledRemotesNoBranches = _controller.GetEnabledRemoteNamesWithoutBranches();

            Assert.AreEqual(1, enabledRemotesNoBranches.Count);
            Assert.AreEqual(enabledRemoteNameNoBranches, enabledRemotesNoBranches[0]);
        }