Ejemplo n.º 1
0
        public void ParseXml(string wordFile, int expectedCount)
        {
            var    testDir  = TestContext.CurrentContext.TestDirectory;
            string fullPath = Path.Combine(testDir, wordFile);

            var xml         = XDocument.Load(fullPath);
            var definitions = MariamWebseter.ParseDefinitions(xml.ToString());

            Assert.AreEqual(expectedCount, definitions.Count());
        }