Exemple #1
0
        public void IsConditionFulfilledRemoveHasItemShouldReturnFalse()
        {
            var c = new InventoryCondition("Subtract", "item");

            controllerMock.Setup(s => s.PlayerHasItem(It.IsAny <string>()))
            .Returns(false);
            Assert.False(c.IsConditionFulfilled(controllerMock.Object, null));
        }
Exemple #2
0
        public void IsConditionFulfilledAddShouldReturnTrue()
        {
            var c = new InventoryCondition("add", string.Empty);

            Assert.True(c.IsConditionFulfilled(null, null));
        }