コード例 #1
0
        public void Uncached_Script_Is_Not_Cached()
        {
            var manager = new RuntimeManager(new ManualManagerSettings());

            manager.Compile("test", "var i = 0; i++;", false);

            CachedV8Script cached;
            manager.TryGetCached("test", out cached).ShouldBeFalse();
        }
コード例 #2
0
        public void Uncached_Script_Is_Not_Cached()
        {
            var manager = new RuntimeManager(new ManualManagerSettings());

            manager.Compile("test", "var i = 0; i++;", false);

            CachedV8Script cached;

            manager.TryGetCached("test", out cached).ShouldBeFalse();
        }
コード例 #3
0
        public void Expired_Script_Is_Not_Returned()
        {
            var manager = new RuntimeManager(new ManualManagerSettings());

            manager.Compile("test", "var i = 0; i++;", true, 1);

            Thread.Sleep(1000);

            CachedV8Script cached;
            manager.TryGetCached("test", out cached).ShouldBeFalse();
        }
コード例 #4
0
        public void Expired_Script_Is_Not_Returned()
        {
            var manager = new RuntimeManager(new ManualManagerSettings());

            manager.Compile("test", "var i = 0; i++;", true, 1);

            Thread.Sleep(1000);

            CachedV8Script cached;

            manager.TryGetCached("test", out cached).ShouldBeFalse();
        }