Beispiel #1
0
        public void ShouldReturnEmptyCollectionForNoParticipant()
        {
            List <string> participants = new List <string>();
            var           pairing      = ReviewPairs.GetCodeReviewPairs(participants);

            Assert.True(pairing.Count == 0);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            List <string> participants = new List <string> {
                "Rob", "Mel", "Owen", "Marcus", "Ben"
            };

            for (int i = 0; i < 10; i++)
            {
                var results = ReviewPairs.GetCodeReviewPairs(participants);

                foreach (var result in results)
                {
                    System.Console.WriteLine($"{result.Reviewer} will review {result.Reviewee}");
                }
            }
            System.Console.ReadKey();
        }