Beispiel #1
0
 public void GetBeliefSumTest1()
 {
     _actorBelief2.SetBeliefBits(_bits2);
     _actorBelief2.BeliefBits.SetBit(0, -1);
     _actorBelief2.BeliefBits.SetBit(1, -1);
     Assert.AreEqual(-2, _actorBelief2.GetBeliefSum());
     _actorBelief2.BeliefBits.SetBit(0, 1);
     _actorBelief2.BeliefBits.SetBit(1, -1);
     Assert.AreEqual(0, _actorBelief2.GetBeliefSum());
 }
Beispiel #2
0
        public void CheckTest()
        {
            byte[] taskKnowledge = { 0 };
            _actorBelief1.SetBeliefBits(_bits1);
            var t = _actorBelief1.Check(taskKnowledge, out _, _belief1, 1, true);

            Assert.AreEqual(0, t);
        }
Beispiel #3
0
 public void ZeroLengthCheckTest()
 {
     byte[] taskKnowledge = { };
     _actorBelief0.SetBeliefBits(_bits0);
     Assert.AreEqual(0, _actorBelief0.Check(taskKnowledge, out _, _belief0, 1, true));
 }