コード例 #1
0
        public void GlaiveShouldHaveWinrateAgainstBow(int level, int fightCount, double expectedWinrate)
        {
            var glaive = TestFighterFactory.GetGaiveFighter(level, ItemRarity.Mythic);
            var bow    = TestFighterFactory.GetBowFighter(level, ItemRarity.Mythic);

            var balanceResults = CalculateBalance(glaive, bow, fightCount);

            var glaiveResults = balanceResults.First(o => o.Fighter.Id == glaive.Id);

            Assert.Equal(glaiveResults.WinRate, expectedWinrate, 1);
        }