Example #1
0
        public void ShouldDealNeutralDamageAgainst(AttunementBase left, AttunementBase right)
        {
            var damage = 100;

            Assert.Equal(damage, left.CalculateDamageDone(right, damage));
            Assert.Equal(damage, right.CalculateDamageDone(left, damage));
        }
Example #2
0
        public void ShouldBeNeutralAgainst(AttunementBase left, AttunementBase right)
        {
            Assert.NotEqual(right.WeakAgainstAttunementId, left.Id);
            Assert.NotEqual(right.StrongAgainstAttunementId, left.Id);

            Assert.NotEqual(left.WeakAgainstAttunementId, right.Id);
            Assert.NotEqual(left.StrongAgainstAttunementId, right.Id);
        }
Example #3
0
 public void ShouldBeStrongAgainst(AttunementBase strong, AttunementBase weak)
 {
     Assert.Equal(strong.StrongAgainstAttunementId, weak.Id);
     Assert.Equal(weak.WeakAgainstAttunementId, strong.Id);
 }
Example #4
0
        public void ShouldDealLessDamageAgainst(AttunementBase strong, AttunementBase weak)
        {
            var damage = 100;

            Assert.True(weak.CalculateDamageDone(strong, damage) < damage);
        }