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(); }
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(); }