コード例 #1
0
        public void ValidateIdRootSelector()
        {
            IDictionary <String, object> rootSelectors = css.CreateAllSelectors(idroot);

            Assert.IsTrue(rootSelectors.ContainsKey("root"), "Not found root");
            Assert.IsTrue(rootSelectors.ContainsKey("#rootId"), "Not found rootId");
            Assert.IsTrue(rootSelectors.ContainsKey(".rootClass"), "Not found rootClass");
            Assert.AreEqual(3, rootSelectors.Count, "Too many entries");
        }