public void Disabled() { config.EnableGlimpse.Returns(false); var result = new GlimpseSecurityPolicy().Execute(null); Assert.AreEqual(result, RuntimePolicy.Off); }
public void Should_execute_on_execute_resource() { var result = new GlimpseSecurityPolicy().ExecuteOn; Assert.IsTrue(result.HasFlag(RuntimeEvent.ExecuteResource)); }
public void Should_execute_on_end_request() { var result = new GlimpseSecurityPolicy().ExecuteOn; Assert.IsTrue(result.HasFlag(RuntimeEvent.EndRequest)); }