Example #1
0
        public void ModifyCoreStatisticTest()
        {
            ICoreStatistic dexterity    = coreStatisticFactory.GenerateCoreStatistic <Dexterity>(8);
            ICoreStatistic newDexterity = dexterity.ModifyCoreStatistic(2);

            newDexterity.GetModifier().Should().Be(0, "because the modifiec stat was increased by 2");
        }
Example #2
0
        public void GenerateCoreStatisticTest()
        {
            ICoreStatistic strengeth = coreStatisticFactory.GenerateCoreStatistic <Strength>(8);

            strengeth.GetModifier().Should().Be(-1, "because this is a base value");
        }