Example #1
0
 public void GetTurnLimitTest(int[] plays)
 {
     try
     {
         var frames = new Frames();
         SequencialPlaysMake(frames, plays);
         frames.AddPlay(new Play(Player, 10, Alley, DateTime.Now));
         Assert.Equal(300, frames.GetTotal());
     }
     catch (Exception ex)
     {
         Assert.IsType <PlayLimitReachedException>(ex);
     }
 }
Example #2
0
 private static void SequencialPlaysMake(Frames f, IEnumerable <int> plays)
 {
     plays.ToList().ForEach(p => f.AddPlay(new Play(Player, p, Alley, DateTime.Now)));
     Assert.NotNull(plays);
 }