Exemplo n.º 1
0
 public void DoesNotThrowOnValidErroredPlayer()
 {
     Assert.DoesNotThrow(() =>
     {
         _ = new PointWinner <SinglesTeam>(PointKinds.Winner, teamB, ShotKind.Stroke, new Receive[] { new Receive(playerB, HandSide.Fore, ShotKind.Stroke) }, playerB, HandSide.Fore);
     });
 }
Exemplo n.º 2
0
 public void ThrowsOnNullRally()
 {
     Assert.Catch <ArgumentNullException>(() =>
     {
         _ = new PointWinner <SinglesTeam>(PointKinds.Winner, teamB, ShotKind.Stroke, null, playerB, HandSide.Fore);
     });
 }
Exemplo n.º 3
0
 public void ThrowsOnInvalidErroredPlayer()
 {
     Assert.Catch <ArgumentException>(() =>
     {
         _ = new PointWinner <SinglesTeam>(PointKinds.Winner, teamB, ShotKind.Stroke, new Receive[] { new Receive(playerB, HandSide.Fore, ShotKind.Stroke) }, playerA, HandSide.Fore);
     });
 }
Exemplo n.º 4
0
 public void ThrowsOnNullWonPlayer()
 {
     Assert.Catch <ArgumentNullException>(() =>
     {
         _ = new PointWinner <SinglesTeam>(PointKinds.Winner, teamA, ShotKind.Stroke, new Receive[] { new Receive(playerA, HandSide.Fore, ShotKind.Stroke) }, null, HandSide.Fore);
     });
 }