public void OrganizationUri_InvalideSuiteUri_ThrowsConfigurationErrorsException(string suiteUri) { var task = new LogMvtResultsTask("task1", suiteUri, ""); var ex = Assert.Catch <ConfigurationErrorsException>(() => { var i = task.OrganizationUri; }); Assert.That(ex.Message == "Test suite Uri is not correct, Organization Uri is not found."); }
public void LogMvtResultsTaskSectionTest_IsNotifiedMailSubjectExists_UpdateCheckFalse() { var section = new LogMvtResultsTaskSection(); var task = new LogMvtResultsTask("task1", "", "", null, false, 1); //tasks contains same id, so regards as update instead of add. section.TaskCollection.AddOrUpdate(task); Assert.IsFalse(section.IsNotifiedMailSubjectExists(task)); }
public void LogMvtResultsTaskSectionTest_IsNotifiedMailSubjectExists_AddCheckTrue() { var section = new LogMvtResultsTaskSection(); var task = new LogMvtResultsTask("task1", "", "", null, false, 1); var task1 = new LogMvtResultsTask("task1", "", "", null, false, 2); section.TaskCollection.AddOrUpdate(task); Assert.IsTrue(section.IsNotifiedMailSubjectExists(task1)); }
public void IsTaskNameExists_CheckSameIdTask_ReturnsFalse() { var section = new LogMvtResultsTaskSection(); var task = new LogMvtResultsTask("task1", "", "", null, false, 1); //tasks contains same id, so regards as update instead of add. section.TaskCollection.AddOrUpdate(task); Assert.IsFalse(section.IsTaskNameExists(task)); }
public TaskRibbonGroup(LogMvtResultsRibbon addinRibbonTab, LogMvtResultsTask task = null) { _addinRibbonTab = addinRibbonTab; InitializeComponent(); if (null == task) { task = new LogMvtResultsTask(); } Task = task; UpdateGUI(); }
public TaskSettingsDialog(LogMvtResultsRibbon addinRibbonTab, LogMvtResultsTask task) { _addinRibbonTab = addinRibbonTab; this.Task = task; InitializeComponent(); this.AcceptButton = this.OKPushButton; this.CancelButton = this.CancelPushButton; this.TaskNameTextBox.DataBindings.Add(nameof(TaskNameTextBox.Text), this.Task, nameof(Task.TaskName)); this.NotifiedMailSubjectTextBox.DataBindings.Add(nameof(NotifiedMailSubjectTextBox.Text), this.Task, nameof(Task.NotifiedMailSubject)); this.PersonalAccessTokenTextBox.DataBindings.Add(nameof(PersonalAccessTokenTextBox.Text), this.Task, nameof(Task.PersonalAccessToken)); this.TestSutieUriTextBox.DataBindings.Add(nameof(TestSutieUriTextBox.Text), this.Task, nameof(Task.FullTestSuiteUri)); this.AdditionalCommentTextBox.DataBindings.Add(nameof(AdditionalCommentTextBox.Text), this.Task, nameof(Task.AdditionalComment)); this.ActivaedCheckBox.DataBindings.Add(nameof(ActivaedCheckBox.Checked), this.Task, nameof(Task.Activated)); this.SchedualIntervalNumericUpDown.DataBindings.Add(nameof(SchedualIntervalNumericUpDown.Value), this.Task, nameof(Task.SchedualInterval)); this.LogResolvedcheckBox.DataBindings.Add(nameof(LogResolvedcheckBox.Checked), this.Task, nameof(Task.LogPassOrKnownIssue)); }
public bool IsNotifiedMailSubjectExists(LogMvtResultsTask task) { return(tasks.IsNotifiedMailSubjectExists(task)); }
public bool IsTaskNameExists(LogMvtResultsTask task) { return(tasks.IsTaskNameExists(task)); }
public void PlanId_InvalideSuiteUri_ThrowsFormatException(string suiteUri) { var task = new LogMvtResultsTask("task1", suiteUri, ""); Assert.Catch <FormatException>(() => { var i = task.PlanId; }); }
public void SuiteId_ValidTestSuiteUriWithEmbeddedRawOrEscapedWhiteSpace_ReturnsSuiteId(string suiteUri) { var task = new LogMvtResultsTask("task1", suiteUri, ""); Assert.AreEqual(515999, task.SuiteId); }
public void PlanId_ValidTestSuiteUriWithoutWhiteSpace_ReturnsPlanId(string suiteUri) { var task = new LogMvtResultsTask("task1", suiteUri, ""); Assert.AreEqual(415999, task.PlanId); }
public void ProjectName_ValidTestSuiteUriWithEmbeddedRawOrEscapedWhiteSpace_ReturnsProjectName(string suiteUri) { var task = new LogMvtResultsTask("task1", suiteUri, ""); Assert.AreEqual("AspenTech Sandbox", task.ProjectName); }
public void OrganizationUrl_ValidAzureStyleSuiteUri_ReturnsOrganizationUri(string suiteUri) { var task = new LogMvtResultsTask("task1", suiteUri, ""); Assert.AreEqual("https://dev.azure.com/aspentech-alm", task.OrganizationUri); }
public void OrganizationUrl_ValidVSStyleSuiteUri_ReturnsOrganizationUri(string suiteUri) { var task = new LogMvtResultsTask("task1", suiteUri, ""); Assert.AreEqual("https://aspentech-alm.visualstudio.com", task.OrganizationUri); }
public void LIsValidTestSuiteUri_ValidSuiteUri_ReturnsTrue(string suiteUri) { var task = new LogMvtResultsTask("task1", suiteUri, ""); Assert.IsTrue(task.IsValidTestSuiteUri()); }