Esempio n. 1
0
        public void DataTest_It_Tests_Methods_GetTsAttribute(string inputFile, int eptPosition, string expectedValue)
        {
            /* Initialization. */
            XmlDocument xlfDocument = new XmlDocument();

            xlfDocument.Load(inputFile);

            XmlNode xmlItNode = xlfDocument.SelectNodes("//it").Item(eptPosition);
            It      itElement = new It(xmlItNode);

            XmlAttribute auxiliaryAttribute = xmlItNode.Attributes["ts"];

            /* Set of Assertions. */
            Assert.IsNotNull(auxiliaryAttribute);
            Assert.AreEqual(expectedValue, auxiliaryAttribute.Value);
            Assert.AreEqual(auxiliaryAttribute, itElement.GetTsAttribute());
        }