Ejemplo n.º 1
0
        public void get_urls_from_empty_file()
        {
            TestMainProgram obj = new TestMainProgram();

            string filepath = @"C:\Users\dmestry\Documents\Curl\TESTING\URLLIST.txt";

            List <string> urls = obj.getUrlsFromFile(filepath);

            if (urls.Count == 0)
            {
                Assert.AreEqual(true, true);
            }
            else
            {
                Assert.AreEqual(false, false);
            }
        }
Ejemplo n.º 2
0
        public void get_urls_from_empty_file()
        {
            TestMainProgram obj = new TestMainProgram();

            string filepath = @"C:\Users\dmestry\Documents\Curl\TESTING\URLLISTEMPTY.txt";

            List <string> urls = obj.getUrlsFromFile(filepath);

            bool res = false;


            if (urls.Count > 0)
            {
                res = true;
            }

            Assert.AreEqual(res, false);
        }