コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }