コード例 #1
0
        public void SetRuntimePolicyToIgnore()
        {
            var policy = new GlimpseResourcePolicy();
            var policyContextMock = new Mock<IRuntimePolicyContext>();

            Assert.Equal(RuntimePolicy.ExecuteResourceOnly, policy.Execute(policyContextMock.Object));
        }
コード例 #2
0
 public void ExecuteOnExecuteResource()
 {
     var policy = new GlimpseResourcePolicy();
     Assert.Equal(RuntimeEvent.ExecuteResource, policy.ExecuteOn);
 }