Esempio n. 1
0
 public void IsPlayerSetYPassToContext()
 {
     var playerContext = new PlayerContext();
     var player = new Player(playerContext);
     player.SetY(1);
     Assert.AreEqual(1, playerContext.Y);
 }
Esempio n. 2
0
 public void IsPlayerSetNamePassToContext()
 {
     var playerContext = new PlayerContext();
     var player = new Player(playerContext);
     player.SetName("pesho");
     Assert.AreEqual("pesho", playerContext.Name);
 }
Esempio n. 3
0
 public Player(PlayerContext context)
 {
     this.context = context;
 }
Esempio n. 4
0
 public Player()
 {
     this.context = new PlayerContext();
 }