public void ReturnsCorrectTypeColour_TypeIsString_ReturnsTrue() { ElementalColours elementalColours = new ElementalColours(); List <string> list1 = new List <string>() { "fire", "water" }; List <string> list2 = new List <string>() { "fire" }; System.Tuple <string, string> result1 = elementalColours.GetElementalColour(list1); Assert.IsTrue(result1.Item1 == elementalColours.typeColour["fire"] && result1.Item2 == elementalColours.typeColour["water"]); System.Tuple <string, string> result2 = elementalColours.GetElementalColour(list1); Assert.IsTrue(result1.Item1 == elementalColours.typeColour["fire"]); System.Tuple <string, string> result3 = elementalColours.GetElementalBackgroundColour(list1); Assert.IsTrue(result1.Item1 == elementalColours.typeColour["fire"] && result1.Item2 == elementalColours.typeColour["water"]); System.Tuple <string, string> result4 = elementalColours.GetElementalBackgroundColour(list1); Assert.IsTrue(result1.Item1 == elementalColours.typeColour["fire"]); }
private void CreatePokemonCharts() { chart = new PokemonCharts(); chart.chartEntries = new List <Microcharts.ChartEntry> { chart.AddChartEntries("HP", HP, pkmColour.GetElementalColour(Types).Item1), chart.AddChartEntries("Attack", Attack, pkmColour.GetElementalColour(Types).Item1), chart.AddChartEntries("Defence", Defence, pkmColour.GetElementalColour(Types).Item1), chart.AddChartEntries("S/Attack", SpecialAttack, pkmColour.GetElementalColour(Types).Item2), chart.AddChartEntries("S/Defence", SpecialDefence, pkmColour.GetElementalColour(Types).Item2), chart.AddChartEntries("Speed", Speed, pkmColour.GetElementalColour(Types).Item2) }; StatsChart = new RadarChart { Entries = chart.GetChartEntries(), LabelTextSize = 30 }; }