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 GlaiveShouldHaveWinrateAgainstDagger(int level, int fightCount, double expectedWinrate) { var glaive = TestFighterFactory.GetGaiveFighter(level, ItemRarity.Mythic); var other = TestFighterFactory.GetDaggerFighter(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); }