Beispiel #1
0
        public IStatBuilder Of(IDamageRelatedStatBuilder damage)
        {
            var damageCoreBuilder = new StatBuilderAdapter(damage.WithHits);
            var coreBuilder       = new ParametrisedCoreStatBuilder <ICoreBuilder <Pool> >(damageCoreBuilder, Pool,
                                                                                           (ps, p, s) => StatFactory.CopyWithSuffix(s, $"LeechTo({p.Build(ps)})", typeof(uint)));

            return(new StatBuilder(StatFactory, coreBuilder));
        }
        public void ResolveResolvesCondition()
        {
            var statBuilder      = Mock.Of <IStatBuilder>();
            var conditionBuilder = new Mock <IConditionBuilder>();
            var sut = new StatBuilderAdapter(statBuilder, conditionBuilder.Object);

            sut.Resolve(null !);

            conditionBuilder.Verify(b => b.Resolve(null !));
        }