public void GetUpToDateFileCSV_DoesNotExist_TeamProjectNameDoesNotExist() { // Arrange InformationParser informationParser = new InformationParser(); // Act string resultPath = informationParser.GetUpToDateFileCSV("Something"); // Assert Assert.IsTrue(String.IsNullOrEmpty(resultPath)); }
public void GetUpToDateFileCSV_DoesNotExist_NoTeamProjectRunFile() { // Arrange InformationParser informationParser = new InformationParser(); // Act string resultPath = informationParser.GetUpToDateFileCSV("Test_Project2"); // Assert Assert.IsTrue(String.IsNullOrEmpty(resultPath)); }
public void GetUpToDateFileCSV_Exist() { // Arrange InformationParser informationParser = new InformationParser(); // Act string resultPath = informationParser.GetUpToDateFileCSV("Test_Project"); // Assert Assert.IsFalse(String.IsNullOrEmpty(resultPath)); }
// Delete section end ------------------------------------------------- // File section start ------------------------------------------------- /// <summary> /// Click event, Load the current "Month" created upload file. /// </summary> private void subOpenCurrentFile_Click(object sender, EventArgs e) { string currentFile = informationParser.GetUpToDateFileCSV(informationParser.CurrentTeamProjectName); if (String.IsNullOrEmpty(currentFile)) { Alert.AlertCreation("There is no Actual Monnt File!", AlertType.error); return; } else { Alert.AlertCreation("Actual Month File Loaded!", AlertType.success); FileRichTextBox.Text = informationParser.GetFileContent(currentFile); } }