Beispiel #1
0
        public void SimpleLocalFileTest()
        {
            var inFile  = "_data/usanov-net.txt";
            var session = new LocalFilesBrowser();
            var resp    = session.LoadFile(inFile);

            var links = resp.ExtractHyperlinks();

            Assert.IsTrue(links.Count() > 0);
        }
Beispiel #2
0
        public void TestLocalFileNavigation()
        {
            var inFile  = @"D:\_\NUnit-2.5.2.9222\NUnitFitTests.html";
            var outFile = @"c:\out.txt";

            if (File.Exists(outFile))
            {
                File.Delete(outFile);
            }

            var session = new LocalFilesBrowser();
            var resp    = session.LoadFile(inFile);
            //resp.SaveToFile(outFile);
        }