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); }); }
public void ThrowsOnNullRally() { Assert.Catch <ArgumentNullException>(() => { _ = new PointWinner <SinglesTeam>(PointKinds.Winner, teamB, ShotKind.Stroke, null, playerB, HandSide.Fore); }); }
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); }); }
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); }); }