Esempio n. 1
0
        public void Constructor_IfThereAreAnyFeatureBranches_AddsTheFeaturesItem()
        {
            var f1 = Substitute.For <IFeatureBranch>();
            var f2 = Substitute.For <IFeatureBranch>();

            _qaBranch.GetFeatureBranches().Returns(new IFeatureBranch[] { f1, f2 });

            var featuresBranchesExplorerBarItem = ExplorerBarItemBuilder.ExplorerBarItem().Build();

            _explorerBarItemsRepository.CreateQAFeaturesBranchesItem(_qaBranch).Returns(featuresBranchesExplorerBarItem);
            var qaBranchItem = CreateQABranchItem();

            Assert.IsTrue(qaBranchItem.Items.Contains(featuresBranchesExplorerBarItem));
        }