Exemple #1
0
 public void ToolWindowHelperTests_ConstructContextMenu_Epic_Success()
 {
     ValidateContextMenuItems(EpicUtilities.CreateEpic(),
                              new List <MenuItemEnum>
     {
         MenuItemEnum.OpenInBrowser,
     }, false);
 }
Exemple #2
0
        public void OctaneMyItemsViewModelTests_MyItems_NotSupported_Feature_Success()
        {
            var epic = EpicUtilities.CreateEpic();

            try
            {
                ValidateType(FeatureUtilities.CreateFeature(epic), 0);
            }
            finally
            {
                EntityService.DeleteById <Epic>(WorkspaceContext, epic.Id);
            }
        }
        public static void ClassInit(TestContext context)
        {
            _guid        = Guid.NewGuid();
            _story       = StoryUtilities.CreateStory("Story_" + _guid);
            _epic        = EpicUtilities.CreateEpic("Epic_" + _guid);
            _gherkinTest = TestGherkinUtilities.CreateGherkinTest("TestGherkin_" + _guid);

            _quotesGuid       = Guid.NewGuid();
            _storyQuote       = StoryUtilities.CreateStory("Story_\"_SingleQuote_" + _quotesGuid);
            _storyDoubleQuote = StoryUtilities.CreateStory("Story_\"\"_DoubleQuote_" + _quotesGuid);

            _refreshGuid        = Guid.NewGuid();
            _refreshStory       = StoryUtilities.CreateStory("Story_" + _refreshGuid);
            _refreshEpic        = EpicUtilities.CreateEpic("Epic_" + _refreshGuid);
            _refreshGherkinTest = TestGherkinUtilities.CreateGherkinTest("TestGherkin_" + _refreshGuid);
        }
Exemple #4
0
        public void ToolWindowHelperTests_ConstructContextMenu_Feature_Success()
        {
            var epic = EpicUtilities.CreateEpic();

            try
            {
                ValidateContextMenuItems(FeatureUtilities.CreateFeature(epic),
                                         new List <MenuItemEnum>
                {
                    MenuItemEnum.OpenInBrowser,
                }, false);
            }
            finally
            {
                EntityService.DeleteById <Epic>(WorkspaceContext, epic.Id);
            }
        }
        public void SearchItemsViewModelTests_Refresh_Changes_Success()
        {
            var viewModel = new SearchItemsViewModel(_refreshGuid.ToString());

            ValidateSearch(viewModel, new List <BaseEntity> {
                _refreshStory, _refreshEpic, _refreshGherkinTest
            });

            var newEpic = EpicUtilities.CreateEpic("Epic2_" + _refreshGuid);

            try
            {
                viewModel.RefreshCommand.Execute(null);
                ValidateSearch(viewModel, new List <BaseEntity> {
                    _refreshStory, _refreshEpic, _refreshGherkinTest, newEpic
                });
            }
            finally
            {
                EntityService.DeleteById <Epic>(WorkspaceContext, newEpic.Id);
            }
        }
Exemple #6
0
 public void OctaneMyItemsViewModelTests_MyItems_NotSupported_Epic_Success()
 {
     ValidateType(EpicUtilities.CreateEpic(), 0);
 }