コード例 #1
0
        public void PropertiesTest()
        {
            var ext = new ApprovalExtension();

            Assert.IsFalse(ext.AddInstanceAuthorizationRules);
            Assert.IsFalse(ext.AddObjectAuthorizationRules);
        }
コード例 #2
0
        public void GetInfoClassInterfacesTest()
        {
            var ext = new ApprovalExtension();
            var pd = new ProcessDefinition(null);

            var types = ext.GetInfoClassInterfaces(pd);

            Assert.AreEqual(types.Count(), 1);
            Assert.AreEqual(types[0], typeof(IApprovalInfo));
        }