コード例 #1
0
        public void DaggerShouldHaveWinrateAgainstGreatsword(int level, int fightCount, double expectedWinrate)
        {
            var dagger     = TestFighterFactory.GetDaggerFighter(level, ItemRarity.Mythic);
            var greatsword = TestFighterFactory.GetGreatswordFighter(level, ItemRarity.Mythic);

            var balanceResults = CalculateBalance(dagger, greatsword, fightCount);

            var daggerResults = balanceResults.First(o => o.Fighter.Id == dagger.Id);

            Assert.Equal(daggerResults.WinRate, expectedWinrate, 1);
        }
コード例 #2
0
        public void GlaiveShouldHaveWinrateAgainstGreatsword(int level, int fightCount, double expectedWinrate)
        {
            var glaive = TestFighterFactory.GetGaiveFighter(level, ItemRarity.Mythic);
            var other  = TestFighterFactory.GetGreatswordFighter(level, ItemRarity.Mythic);

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

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

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