Exemplo n.º 1
0
        public void ShouldProcessList()
        {
            //List
            var list = new Selenium.List();

            list.Add(987);
            var resList = (Selenium.List)driver.ExecuteScript("return arguments;", list);

            CollectionAssert.AreEquivalent(list, resList);
        }
Exemplo n.º 2
0
        public void ShouldProcessDictionary()
        {
            //Dictionary
            var dict = new Selenium.Dictionary();

            dict.Add("a", 987);
            var resDict = (Dictionary)driver.ExecuteScript("return arguments[0];", dict);

            CollectionAssert.AreEquivalent(dict, resDict);
        }