Exemplo n.º 1
0
        public void ModifiersCanBeAppliedToArmorClass()
        {
            var ac = emptyStats.ArmorClass.TotalValue;

            emptyStats.ProcessModifier(new MockMod());
            Assert.Equal(ac + 1, emptyStats.ArmorClass.TotalValue);
        }
Exemplo n.º 2
0
        public void ModifiersCanBeAppliedToArmorClass()
        {
            var def = new DefenseStats(
                new AbilityScores(),
                new SizeStats(),
                new Inventory()
                );
            var ac = def.ArmorClass();

            def.ProcessModifier(new MockMod());
            Assert.AreEqual(ac + 1, def.ArmorClass());
        }
Exemplo n.º 3
0
        public void ModifiersCanBeAppliedToSavingsThrows()
        {
            var def = new DefenseStats(
                new AbilityScores(),
                new SizeStats(),
                new Inventory()
                );
            var will   = def.WillSave.TotalValue;
            var fort   = def.FortitudeSave.TotalValue;
            var reflex = def.ReflexSave.TotalValue;

            def.ProcessModifier(new MockMod());
            Assert.AreEqual(will + 1, def.WillSave.TotalValue);
            Assert.AreEqual(fort + 1, def.FortitudeSave.TotalValue);
            Assert.AreEqual(reflex + 1, def.ReflexSave.TotalValue);
        }