public void DaggerShouldHaveWinrateAgainstBow(int level, int fightCount, double expectedWinrate) { var dagger = TestFighterFactory.GetDaggerFighter(level, ItemRarity.Mythic); var bow = TestFighterFactory.GetBowFighter(level, ItemRarity.Mythic); var balanceResults = CalculateBalance(dagger, bow, fightCount); var daggerResults = balanceResults.First(o => o.Fighter.Id == dagger.Id); Assert.Equal(daggerResults.WinRate, expectedWinrate, 1); }
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); }
public void BowShouldHaveWinrateAgainstGreatsword(int level, int fightCount, double expectedWinrate) { var bow = TestFighterFactory.GetBowFighter(level, ItemRarity.Mythic); var greatsword = TestFighterFactory.GetGreatswordFighter(level, ItemRarity.Mythic); var balanceResults = CalculateBalance(bow, greatsword, fightCount); var bowResults = balanceResults.First(o => o.Fighter.Id == bow.Id); Assert.Equal(bowResults.WinRate, expectedWinrate, 1); }