public void AskBeliefToSendTest2() { _cognitiveArchitecture.MessageContent.CanSendBeliefs = true; _cognitiveArchitecture.MessageContent.MinimumBeliefToSendPerBit = 1; _cognitiveArchitecture.MessageContent.MaximumNumberOfBitsOfBeliefToSend = 1; _cognitiveArchitecture.MessageContent.MinimumNumberOfBitsOfBeliefToSend = 1; _emailTemplate.MinimumBeliefToSendPerBit = 1; _emailTemplate.MaximumNumberOfBitsOfBeliefToSend = 1; _emailTemplate.MinimumNumberOfBitsOfBeliefToSend = 1; _beliefsModel.AddBelief(_belief.EntityId); _beliefsModel.InitializeBeliefs(); _beliefsModel.SetBelief(_belief.EntityId, 0, 0.5F); Assert.IsNull(_beliefsModel.FilterBeliefToSend(_belief.EntityId, 0, _emailTemplate)); }
public void CheckBeliefTest1() { float mandatoryCheck = 0; float requiredCheck = 0; byte mandatoryIndex = 0; byte requiredIndex = 0; _murphy.On = true; _beliefsModel.Entity.On = true; _beliefsModel.AddBelief(_belief.EntityId, BeliefLevel.NeitherAgreeNorDisagree); _beliefsModel.InitializeBeliefs(); // Force beliefBits _beliefsModel.SetBelief(_belief.EntityId, 0, 1); _belief.Weights.SetBit(0, 1); _murphy.CheckBelief(_belief, _taskBits, _actorBelief, ref mandatoryCheck, ref requiredCheck, ref mandatoryIndex, ref requiredIndex); Assert.AreEqual(1, mandatoryCheck); Assert.AreEqual(1, requiredCheck); }