Пример #1
0
        public virtual void testSingleEntry()
        {
            startTestProcess("single entry");

            IDmnDecisionResultEntries firstOutput = results[0];

            Assert.AreEqual("foo", firstOutput.GetFirstEntry());
            Assert.AreEqual(Variables.StringValue("foo"), firstOutput.GetFirstEntryTyped <ITypedValue>());
        }
Пример #2
0
        public virtual void testCollectSumHitPolicySingleEntryList()
        {
            startTestProcess("single entry list");

            Assert.AreEqual(1, results.Count);
            IDmnDecisionResultEntries firstOutput = results[0];

            Assert.AreEqual(33, firstOutput.GetFirstEntry());
            Assert.AreEqual(Variables.IntegerValue(33), firstOutput.GetFirstEntryTyped <ITypedValue>());
        }
Пример #3
0
        public virtual void testCollectCountHitPolicyNoOutput()
        {
            startTestProcess("no output");

            Assert.AreEqual(1, results.Count);
            IDmnDecisionResultEntries firstOutput = results[0];

            Assert.AreEqual(0, firstOutput.GetFirstEntry());
            Assert.AreEqual(Variables.IntegerValue(0), firstOutput.GetFirstEntryTyped <ITypedValue>());
        }