コード例 #1
0
        public void IncludesTokenInformationInTheXml()
        {
            XmlDocument doc = new XmlDocument();

            doc.LoadXml("<tokens><identifier kind='argument' number='3' isDefinition='true'>x</identifier></tokens>");
            var identifier = new Identifier("x", IdentifierKind.Argument, true, 3);

            classUnderTest.ConvertTokens(identifier).Should().BeEquivalentTo(doc);
        }
コード例 #2
0
        public void ReturnsXmlDocument()
        {
            XmlDocument doc = new XmlDocument();

            doc.LoadXml("<tokens><integerConstant>100</integerConstant><identifier>x</identifier></tokens>");
            classUnderTest.ConvertTokens(t1, t2).Should().BeEquivalentTo(doc);
        }