C# 클래스 TennisKata.Factored1.TennisGame

파일 보기 프로젝트 열기: shadowman/tenniskata-kake-dojo 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
POINTS string[]

공개 메소드들

메소드 설명
GetScore ( ) : string
SomeoneHasWon ( ) : bool
TennisGame ( string player1Name, string player2Name )
WinningPlayerName ( ) : string
WonPoint ( string playerName ) : void

비공개 메소드들

메소드 설명
IsEndgame ( ) : bool
PointsAreEven ( ) : bool

메소드 상세

GetScore() 공개 메소드

public GetScore ( ) : string
리턴 string

SomeoneHasWon() 공개 메소드

public SomeoneHasWon ( ) : bool
리턴 bool

TennisGame() 공개 메소드

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

WinningPlayerName() 공개 메소드

public WinningPlayerName ( ) : string
리턴 string

WonPoint() 공개 메소드

public WonPoint ( string playerName ) : void
playerName string
리턴 void

프로퍼티 상세

POINTS 공개적으로 정적으로 프로퍼티

public static string[] POINTS
리턴 string[]