public void DeserializeJsonThrowsIfNoExtensionsReference()
        {
            MockAspNetService          mockAspNetService = new MockAspNetService();
            SystemWebExtensionsWrapper swe = new SystemWebExtensionsWrapper(mockAspNetService);

            swe.SystemWebExtensionsAssembly = null;
            swe.DeserializeJson("{\"foo\":\"bar\"}");
        }
        public void DeserializeJsonDictionary()
        {
            MockAspNetService          mockAspNetService = new MockAspNetService();
            SystemWebExtensionsWrapper swe = new SystemWebExtensionsWrapper(mockAspNetService);

            swe.SystemWebExtensionsAssembly = Assembly.GetAssembly(typeof(ScriptManager));

            object o = swe.DeserializeJson("{\"foo\":\"bar\"}");

            UnitTestAssert.IsNotNull(o);
            Dictionary <string, object> dic = (Dictionary <string, object>)o;

            UnitTestAssert.AreEqual("bar", dic["foo"]);
        }