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

XPathParser_Parser_WhenXPathingAttributesFromTFSWithNamespace_ExpectException() private method

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

            #region data

            var data = LoadFile("SampleTFS.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]);
        }