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