public void GetGameWinner() { var resultsService = new ResultsService(); List <Line> ans = new List <Line>() { new Line() { RoundsResult = new int[] { 0, 0, 0 }, Answer = 0 }, new Line() { RoundsResult = new int[] { 0, 0, 1 }, Answer = 0 }, new Line() { RoundsResult = new int[] { 0, 1, 0 }, Answer = 0 }, new Line() { RoundsResult = new int[] { 0, 1, 1 }, Answer = 1 }, new Line() { RoundsResult = new int[] { 1, 0, 0 }, Answer = 0 }, new Line() { RoundsResult = new int[] { 1, 0, 1 }, Answer = 1 }, new Line() { RoundsResult = new int[] { 1, 1, 0 }, Answer = 1 }, new Line() { RoundsResult = new int[] { 1, 1, 1 }, Answer = 1 }, }; for (var i = 0; i < ans.Count; i++) { Assert.IsTrue(resultsService.GetGameWinner(ans[i].RoundsResult) == ans[i].Answer); } }