Exemple #1
0
        public void CanHappen_RequirementReturnesValue_ReturnesValue(bool value)
        {
            string key = "key";

            _story.RequirementsKey = key;
            IBaseData baseData = Substitute.For <IBaseData>();
            IGameData gameData = Substitute.For <IGameData>();

            baseData.CheckStoryRequirements(key, gameData).Returns(value);

            bool assertion = _story.CanHappen(baseData, gameData);

            Assert.That(assertion.Equals(value));
        }
Exemple #2
0
 public bool CanHappen(IBaseData baseData, IGameData gameData)
 {
     return(baseData.CheckStoryRequirements(RequirementsKey, gameData));
 }