示例#1
0
 public void BeforeEachTest()
 {
     goal       = new GameObject().AddComponent <Goal>();
     scoreEvent = Substitute.For <IScoreEvent>();
     ball       = new GameObject().AddComponent <BoxCollider2D>();
     goal.Construct(Players.ONE, scoreEvent);
 }
示例#2
0
文件: Goal.cs 项目: van800/pong-tdd
 public void Construct(Players scoresTo, IScoreEvent scoreEvent)
 {
     this.scoresTo    = scoresTo;
     this._scoreEvent = scoreEvent;
 }