Exemplo n.º 1
0
 public void HealthTest()
 {
     int health = 0; // TODO: Initialize to an appropriate value
     HealthMeter target = new HealthMeter(health); // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     target.Health = expected;
     actual = target.Health;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Exemplo n.º 2
0
 /// <summary>
 /// Contructor
 /// </summary>       
 public Player(string actorName)
 {
     if (actorName == null) throw new ArgumentNullException("actorName");
     _config = new PlayerConfig();
     _actorName = actorName;
     _health = new HealthMeter(_config.StartingHealth);
     _carryWeight = _config.CarryWeight;
     _movePenalty = _config.MovePenalty;
     _lives = _config.Lives;
     items = new List<IItem>();
     _coins = new List<IItem>();
     _startingHealth = _config.StartingHealth;
 }
Exemplo n.º 3
0
 public void HealthMeterConstructorTest()
 {
     int health = 0; // TODO: Initialize to an appropriate value
     HealthMeter target = new HealthMeter(health);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }