public void TestCombined() { var xpath = "/div.some.class[h1='test']/text()"; const string expected = @"/div[@class='some class' and h1='test']/text()"; xpath = XPath.Resolve(xpath); Assert.AreEqual(expected, xpath); }