Example #1
0
        public void CreateSimplePreConditionRuleTest()
        {
            PreConditionRuleType rule = SequencingManager.CreateSimplePreConditionRule(SequencingRuleConditionType.completed, PreConditionRuleActionType.skip);

            Assert.IsNotNull(rule);
            Assert.AreEqual(SequencingRuleConditionType.completed, rule.ruleConditions.ruleCondition[0].condition);
            Assert.AreEqual(PreConditionRuleActionType.skip, rule.ruleAction.action);
        }
Example #2
0
        public void ClearSequencingTest()
        {
            Assert.IsNotNull(this.chapterItem.Sequencing);

            SequencingType seq = SequencingManager.ClearSequencing(this.chapterItem);

            Assert.IsNotNull(seq);
            Assert.AreEqual(seq, this.chapterItem.Sequencing);
        }
Example #3
0
 public void CreateNewSequencingTest()
 {
     foreach (ItemType item in this.items)
     {
         Assert.IsNotNull(item.Sequencing);
         SequencingType seq = SequencingManager.CreateNewSequencing(item);
         Assert.IsNotNull(seq);
     }
 }
Example #4
0
 public void CreateOrganizationDefaultSequencingTest()
 {
     SequencingManager.CreateOrganizationDefaultSequencing(this.organization);
     Assert.AreEqual(1, this.organization.SequencingPatterns.Count);
 }