// CreateForm //
        private void createFormToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CreateFileForm Create = new CreateFileForm();

            Create.MdiParent = this;
            Create.Show();
        }
示例#2
0
        public void CreateFileTest()
        {
            new StartForm().OpenSignInPage();
            new SignInForm().SingIn(Configuration.GetUserLogin(), Configuration.GetPassword());
            new LoggedInStartForm().OpenRepository(RepositoryName);

            RepositoryStartForm reposForm = new RepositoryStartForm();

            reposForm.OpenCreateFilePage();

            CreateFileForm createForm = new CreateFileForm();

            createForm.CreateFile(FileName);
            reposForm.VerifyFileIsCreated(FileName);
            reposForm.OpenCreateFilePage();
            createForm.CreateFile(FileName);
            createForm.VerifyExceptionIsPresent();
        }
示例#3
0
        public void MergeBranchTest(string fileName)
        {
            new StartForm().OpenSignInPage();
            new SignInForm().SingIn(Configuration.GetUserLogin(), Configuration.GetPassword());
            new LoggedInStartForm().OpenRepository(RepositoryName);

            RepositoryStartForm reposForm = new RepositoryStartForm();

            reposForm.CreateBranch(BranchName);
            reposForm.OpenCreateFilePage();

            CreateFileForm createForm = new CreateFileForm();

            createForm.CreateFile(fileName);
            reposForm.OpenPullRequestForm();
            new PullRequestForm().CreatePullRequest();
            MergePullRequestForm mergeForm = new MergePullRequestForm();

            mergeForm.MergePullRequest();
            mergeForm.VerifyBranchIsMerged();
        }