Dev2.Data.Tests.XPathParserTests.XPathParser_Parser_WhenXPathingAttributesFromTFSWithoutNamespace_ExpectValidDataWithoutAttributeName C# (CSharp) Method

XPathParser_Parser_WhenXPathingAttributesFromTFSWithoutNamespace_ExpectValidDataWithoutAttributeName() private method

        public void XPathParser_Parser_WhenXPathingAttributesFromTFSWithoutNamespace_ExpectValidDataWithoutAttributeName()
        {
            //------------Setup for test--------------------------

            #region data

            var data = LoadFile("SampleTFSNoNamespace.trx");
            #endregion

            const string xPath = "//UnitTest/@name";

            //------------Execute Test---------------------------
            var result = _xPathParser.ExecuteXPath(data, xPath).ToList();
            //------------Assert Results-------------------------
            
            Assert.AreEqual(4241, result.Count);
            Assert.AreEqual("ActivityCollectionDesignerViewModel_ExecuteShowErrorsCommand_ShowErrorsIsTrue_ShowErrorsIsSetToFalse", result[0]);
            Assert.AreEqual("Instantiate_Where_MessageBrokerIsNull_Expected_ArgumentNullException", result[4240]);
        }