예제 #1
0
        public void TestEmptyRequest()
        {
            FourWalledProvider parser = new FourWalledProvider();

            List <string> list = parser.ParseImages(string.Empty);

            Assert.IsNotNull(list);
            Assert.IsTrue(list.Count == 0);
        }
예제 #2
0
        private async Task <List <string> > GetResponseFor(string fileName)
        {
            FourWalledProvider provider = new FourWalledProvider();

            StorageFolder folder = await Package.Current.InstalledLocation.GetFolderAsync("TestData");

            folder = await folder.GetFolderAsync("fourwalled");

            StorageFile file = await folder.GetFileAsync(fileName);

            string html = await FileIO.ReadTextAsync(file);

            return(provider.ParseImages(html));
        }