Esempio n. 1
0
        public void WebsiteCallbackHandler_GetJsonIntellisenseResults_SearchTermIsOpeningTagsAndCaretPositionIsTwo_JsonArrayWithAllVariables()
        {
            var results = WebsiteCallbackHandler.GetJsonIntellisenseResults("[[", 2);

            Assert.IsNotNull(results);
            Assert.AreEqual("[\"[[Scalar]]\",\"[[Country]]\",\"[[State]]\",\"[[City(\",\"[[City().Name]]\",\"[[City(*).Name]]\",\"[[City().GeoLocation]]\",\"[[City(*).GeoLocation]]\"]", results);
        }
Esempio n. 2
0
        public void WebsiteCallbackHandler_GetJsonIntellisenseResults_SearchTermIsEmpty_EmptyJsonArray()
        {
            var results = WebsiteCallbackHandler.GetJsonIntellisenseResults("", 0);

            Assert.IsNotNull(results);
            Assert.AreEqual("[]", results);
        }
Esempio n. 3
0
        public void WebsiteCallbackHandler_GetJsonIntellisenseResults_SearchTermIsOpeningTagsAndCaretPositionIsZero_EmptyJsonArray()
        {
            var results = WebsiteCallbackHandler.GetJsonIntellisenseResults("", 0);

            Assert.IsNotNull(results);
            Assert.AreEqual("[]", results);
        }