Ejemplo n.º 1
0
        public void StoryHomepageTest()
        {
            var reader = new WdcReader();

            // First page of Maddison's Freshman 15
            var expectedStoryTitle = "Madison's Freshman 15";
            var expectedChapter    = string.Empty;

            var testTitle = "Madison's Freshman 15 - Writing.Com";

            var result = reader.ReadPageTitle(testTitle);

            Assert.AreEqual(expectedStoryTitle, result.StoryName);
            Assert.AreEqual(expectedChapter, result.PageName);
        }
Ejemplo n.º 2
0
        public void StoryChapterTest()
        {
            var reader = new WdcReader();

            // First page of Maddison's Freshman 15
            var expectedStoryTitle = "Madison's Freshman 15";
            var expectedChapter    = "Madison's first night at college";

            var testTitle = "Madison's Freshman 15: Madison's first night at college - Writing.Com";

            var result = reader.ReadPageTitle(testTitle);

            Assert.AreEqual(expectedStoryTitle, result.StoryName);
            Assert.AreEqual(expectedChapter, result.PageName);
        }