Exemplo n.º 1
0
        public void DamageReductionCanHaveATypeThatBypassTheDefense()
        {
            var dr = new DamageReduction("cold iron", 5);

            Assert.Equal(5, dr.TotalValue);
            Assert.Equal("cold iron", dr.BypassType);
            Assert.Equal("5/cold iron", dr.DisplayString());
        }
Exemplo n.º 2
0
        public void SometimesNoTypeWillBypassDefense()
        {
            var dr = new DamageReduction(1);

            Assert.Equal("1/-", dr.DisplayString());
        }