public void LoadSourcesTest(bool value) { //Arrange RSSSourcesLibrary R = new RSSSourcesLibrary(); NewsLibrary N = new NewsLibrary(); bool Result; //Act Result = R.LoadSources(value); //Assert Assert.AreEqual(Result, true); }
public void ReadFromLibraryTest() { //Arrange NewsLibrary N = new NewsLibrary(); bool Result; //Act NewsLibrary.NewsSourcesList.Clear(); N.NewsCategoriesList.Clear(); NewsLibrary.NewsSourcesRSSList.Clear(); Result = N.ReadFromLibrary(); //Assert Assert.AreEqual(Result, true); }
public void DownloadAllNewsProcessTest(bool value) { //Arrange Form1 f = new Form1(); NewsLibrary N = new NewsLibrary { Owner = f }; bool Result; //Act //Result = f.DownloadAllNewsProcess(value); Result = f.DownloadingEngine(value); //Assert Assert.AreEqual(Result, true); }