public void ReadHeader_ValidRead() { // Arrange const string DirPath = @"H:\Documents\MySpelling2.txt"; // Act var retVal = SpellingListClass.ReadHeader(DirPath); //Assert Assert.IsTrue(retVal); }
public void ReadHeader_ValidRead() { var slc = new SpellingListClass(); // Arrange var retVal = false; const string DirPath = @"H:\Documents\MySpelling2.txt"; // Act retVal = slc.ReadHeader(DirPath); //Assert Assert.IsTrue(retVal); }
public void ReadHeader_ValidRead() { var slc = new SpellingListClass(); // Arrange var retVal = false; // Act retVal = slc.ReadHeader(DirPath); //Assert Assert.IsTrue(retVal); }
/// <summary> /// Get spelling words from file and place into collection for editing. /// </summary> /// <returns>true if words added to the collection else false.</returns> /// <created>art2m,5/12/2019</created> /// <changed>art2m,5/12/2019</changed> private bool GetWordsFromFile() { if (!SpellingListClass.ReadHeader(SpellingPropertiesClass.SpellingListPath)) { return(false); } if (!SpellingReadWriteClass.ReadSpellingListFile(SpellingPropertiesClass.SpellingListPath)) { return(false); } this.FillListBoxWithWordsList(); return(true); }
/// <summary> /// Get spelling words from file and place into collection for editing. /// </summary> /// <returns>true if words added to the collection else false.</returns> /// <created>art2m,5/12/2019</created> /// <changed>art2m,5/12/2019</changed> private bool GetWordsFromFile() { if (!SpellingListClass.ReadHeader(SpellingPropertiesClass.SpellingListPath)) { return(false); } var userWords = SpellingReadWriteClass.ReadSpellingListFile(SpellingPropertiesClass.SpellingListPath); if (userWords.Count == 0) { return(false); } AddWordsToListBox(userWords); return(true); }
/// <summary> /// Get spelling words from file and place into collection for editing. /// </summary> /// <returns>true if words added to the collection else false.</returns> /// <created>art2m,5/12/2019</created> /// <changed>art2m,5/12/2019</changed> private bool GetWordsFromFile() { var slc = new SpellingListClass(); if (!slc.ReadHeader(SpellingPropertiesClass.SpellingListPath)) { return(false); } var srw = new SpellingReadWriteClass(); if (!srw.ReadFile(SpellingPropertiesClass.SpellingListPath)) { return(false); } this.FillListBoxWithWordsList(); return(true); }