Exemplo n.º 1
0
        public void SearchOptions_ExtendedObject_ToString()
        {
            CustomSearchOptions options = new CustomSearchOptions("index=2&help=true&count=50&mydata=some value");

            ////Removed index based setup
            //Assert.AreEqual("count=50&index=2&help=true&mydata=some value", options.ToString());
            //Assert.AreEqual("count=50&help=true&index=2&mydata=some value", options.ToString());
            Assert.AreEqual("help=true&mydata=some value", options.ToString());
        }
Exemplo n.º 2
0
        public void SearchOptions_ExtendedObject()
        {
            CustomSearchOptions options = new CustomSearchOptions("help=true&count=50&index=2&mydata=some value");

            Assert.IsTrue(options.CustomData.ContainsKey("help"));
            Assert.IsTrue(options.CustomData.ContainsKey("mydata"));
            Assert.IsFalse(options.CustomData.ContainsKey("count")); //we now don't parse this value
            Assert.IsFalse(options.CustomData.ContainsKey("index")); //we now don't parse this value
        }