Beispiel #1
0
 public void You_May_Pick_More_Than_One_Carefully()
 {
     10.Times(
         () =>
     {
         var ints = new DomainGenerator().Many <int>(0, 5);    // 5 == 4, tschh
         Assert.Throws <BeingPicky.TheNumberOfElementsToPickMustBeSmallerThanTheNumberOfPossibleChoices>(
             () => ints.Pick(5));
     });
 }
 public void You_May_Pick_More_Than_One_Carefully()
 {
     10.Times(
         () =>
         {
             var ints = new DomainGenerator().Many<int>(0, 5); // 5 == 4, tschh
             Assert.Throws<BeingPicky.TheNumberOfElementsToPickMustBeSmallerThanTheNumberOfPossibleChoices>(
                 () => ints.Pick(5));
         });
 }