C# Class TennisKata.Factored1.TennisGame

Datei anzeigen Open project: shadowman/tenniskata-kake-dojo Class Usage Examples

Public Properties

Property Type Description
POINTS string[]

Public Methods

Method Description
GetScore ( ) : string
SomeoneHasWon ( ) : bool
TennisGame ( string player1Name, string player2Name )
WinningPlayerName ( ) : string
WonPoint ( string playerName ) : void

Private Methods

Method Description
IsEndgame ( ) : bool
PointsAreEven ( ) : bool

Method Details

GetScore() public method

public GetScore ( ) : string
return string

SomeoneHasWon() public method

public SomeoneHasWon ( ) : bool
return bool

TennisGame() public method

public TennisGame ( string player1Name, string player2Name )
player1Name string
player2Name string

WinningPlayerName() public method

public WinningPlayerName ( ) : string
return string

WonPoint() public method

public WonPoint ( string playerName ) : void
playerName string
return void

Property Details

POINTS public_oe static_oe property

public static string[] POINTS
return string[]