public void GetMatchTest() { Tournament g1 = TestData2017.Generate(); for (int x = 0; x < g1.BlockSize; x++) { Wrestler w1 = g1.BlockA.Wrestlers[x]; for (int y = 0; y < g1.BlockSize; y++) { Wrestler w2 = g1.BlockA.Wrestlers[y]; Match m = g1.BlockA.GetMatch(w1, w2); Assert.AreEqual(m, g1.BlockA.Matches[x, y]); } } }
static void Main(string[] args) { Tournament g1 = TestData2017.Generate(); Console.WriteLine($"{g1.BlockA.Wrestlers[0].Name}: {g1.BlockA.Wrestlers[0].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[1].Name}: {g1.BlockA.Wrestlers[1].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[2].Name}: {g1.BlockA.Wrestlers[2].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[3].Name}: {g1.BlockA.Wrestlers[3].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[4].Name}: {g1.BlockA.Wrestlers[4].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[5].Name}: {g1.BlockA.Wrestlers[5].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[6].Name}: {g1.BlockA.Wrestlers[6].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[7].Name}: {g1.BlockA.Wrestlers[7].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[8].Name}: {g1.BlockA.Wrestlers[8].Points}"); Console.WriteLine($"{g1.BlockA.Wrestlers[9].Name}: {g1.BlockA.Wrestlers[9].Points}"); var p = new Prediction(g1); Console.ReadLine(); }
public void OnGet() { G1 = TestData2017.Generate(); }