Ejemplo n.º 1
0
        public void NormalUnifiedAndDefaultTest(string query, string[] eresult)
        {
            var us       = new CssSelectorImpl();
            var elements = us.Select(XElement.Parse(SAMPLE_HTML), query);
            var result   = elements.Select(_ => _.ToString()).ToArray();

            CollectionAssert.AreEquivalent(eresult, result);

            var ds = new DefaultSelector();

            elements = ds.Select(XElement.Parse(SAMPLE_HTML), query);
            result   = elements.Select(_ => _.ToString()).ToArray();
            CollectionAssert.AreEquivalent(eresult, result);
        }