public void DeadDummyShouldGiveExperiance() { var dummy = new Dummy(0, 50); dummy.GiveExperience(); Assert.That(dummy.GiveExperience(), Is.EqualTo(50)); }
public void DeadDummyGivesExperience() { dummy.TakeAttack(dummy.Health); int experience = dummy.GiveExperience(); Assert.That(experience == DummyExperience, "Dead dummy does not give standart dummy experience"); }
public void DeadDummyGivesXP() { hero.Attack(dummy); hero.Attack(dummy); Assert.AreEqual(10, dummy.GiveExperience(), "Dummy doesn't dive XP when dead"); }
public void DeadDummyCanGiveXp() { //Act dummy.TakeAttack(DamageTaken); dummy.TakeAttack(DamageTaken); //Assert Assert.That(dummy.GiveExperience(), Is.EqualTo(DummyXp), "Dummy should be dead and give Xp!"); }
public void AliveDummyCantGiveExperience() { target = new Dummy(20, 100); Assert.That(() => target.GiveExperience(), Throws.InvalidOperationException .With.Message.EqualTo("Target is not dead.")); }
public void DeadDummyGivesExperience() { target = new Dummy(0, 100); int experience = target.GiveExperience(); Assert.That(experience, Is.EqualTo(100)); }
public void AliveDummyShouldNotBeAbletoGiveXP() { //Arrange dummy = new Dummy(20, 20); //Act-Assert Assert.Throws <InvalidOperationException>(() => dummy.GiveExperience()); }
public void GiveExperience_Alive_ThrowsInvalidOperationException() { Dummy dummy = new Dummy(5, 5); Assert.Throws <InvalidOperationException>(() => dummy.GiveExperience(), "Alive Dummy can give XP."); }
public void AliveDummyCannotGiveExperience() { Dummy dummy = new Dummy(10, 20); Assert.That(() => dummy.GiveExperience(), Throws.InvalidOperationException.With.Message.EqualTo("Target is not dead."), "Alive Dummy can't give experience"); }
public void CheckIfDeadDummyCanGiveExp() { Dummy dummy = new Dummy(0, 10); int exp = dummy.GiveExperience(); Assert.That(exp, Is.EqualTo(10)); }
public void AliveDummyCantGiveXp() { Dummy dummy = new Dummy(10, 10); Assert .Throws <InvalidOperationException>( () => dummy.GiveExperience()); }
public void DeathDummyCanGiveXP() { Dummy dummy = new Dummy(0, 10); int actual = dummy.GiveExperience(); int expected = 10; Assert.AreEqual(expected, actual); }
public void DeadDummyCanGiveXP() { dummy = new Dummy(0, 123); var actualResult = dummy.GiveExperience(); var expectedResult = 123; Assert.AreEqual(expectedResult, actualResult); }
public void DeadDummyShouldBeAbleToGiveXP() { var initializeHealth = 0; var initializeExperience = 10; var dummy = new Dummy(initializeHealth, initializeExperience); Assert.That(dummy.GiveExperience(), Is.EqualTo(initializeExperience)); }
public void TestIfAliveDummyCantGiveXP() { //Arrange Dummy dummy = new Dummy(30, 50); //Act //Assert Assert.Throws <InvalidOperationException>(() => dummy.GiveExperience()); }
public void CheckIfAliveDummyCantGiveXP() { Dummy dummy = new Dummy(10, 10); dummy.TakeAttack(3); Assert.That(() => dummy.GiveExperience(), Throws.InvalidOperationException .With.Message.EqualTo("Target is not dead.")); }
public void DeadDummyShouldGiveXP(int health, int experience) { // Arrange dummy = new Dummy(0, 20); // Act int exp = dummy.GiveExperience(); // Assert Assert.That(exp.Equals(experience)); }
public void AliveDummy_ThrowsExeption_IfGiveXP() { Dummy dummy = new Dummy(0, 20); dummy.GiveExperience(); Assert.AreEqual(true, dummy.IsDead()); //Assert.That(dummy.IsDead(), Throws.ArgumentException //.With.Message.EqualTo("Alive dummy can't give XP!")); }
public void AliveDummyShouldntBeAbleToGiveXP() { var initializeHealth = 5; var initializeExperience = 10; var expectedExceptionMessage = "Target is not dead."; var dummy = new Dummy(initializeHealth, initializeExperience); Assert.That(() => dummy.GiveExperience(), Throws.InvalidOperationException.With.Message.EqualTo(expectedExceptionMessage)); }
public void GiveExperience_Dead_GivesCorrectAmount() { int expectedResult = 5; Dummy dummy = new Dummy(0, expectedResult); int actualResult = dummy.GiveExperience(); Assert.That(actualResult, Is.EqualTo(expectedResult), "Dead Dummy does not give correct amount of XP."); }
public void DeadDummyCanGivXP() { Dummy dummy = new Dummy(0, 10); int expectedExperience = 10; int actualExperience = dummy.GiveExperience(); int health = dummy.Health; Assert.AreEqual(expectedExperience, actualExperience); Assert.Zero(health); }
// Мъртвото чучело може да даде XP public void DeadDummyGivesExperience() { // Arrange Axe axe = new Axe(10, 10); Dummy dummy = new Dummy(10, 10); // Act axe.Attack(dummy); // Assert Assert.AreEqual(10, dummy.GiveExperience()); }
public void DeadDummyCanGiveExperience( int healthDummy, int experienceDummy) { this.dummy = new Dummy(healthDummy, experienceDummy); int expectedExperience = DummyExperience; int actualExperience = dummy.GiveExperience(); Assert.AreEqual(expectedExperience, actualExperience, "Alive dummy can give experience!"); }
public void DeadDummyCanGiveExperience() { Dummy dummy = new Dummy(DummyHealth, DummyExperience); int AttackPoints = 10; while (!dummy.IsDead()) { dummy.TakeAttack(AttackPoints); } var gotExperience = dummy.GiveExperience(); Assert.AreEqual(gotExperience, DummyExperience); }
public void TestIfDeadDummyCanGiveXP() { //Arrange Dummy dummy = new Dummy(0, 12); //Act int actualExperience = dummy.GiveExperience(); int expectedExperience = 12; //Assert //Assert.That(actualExperience, Is.EqualTo(expectedExperience)); Assert.AreEqual(actualExperience, expectedExperience, "Dummy cannot give XP"); }
// Живото чучело не може да даде XP public void LiveDummyDoesNotGiveExperience() { // Arrange Axe axe = new Axe(1, 1); Dummy dummy = new Dummy(100, 1000); // Act axe.Attack(dummy); // Assert var exception = Assert.Throws <InvalidOperationException> ( () => dummy.GiveExperience() // Exception => Target is not dead. ); Assert.AreEqual(exception.Message, "Target is not dead."); }
public void TestReturnExp() { var test = new Dummy(0, 10); Assert.That(test.GiveExperience() == 10); }
public void TestGiveExperienceMethod() { dummy.TakeAttack(10); Assert.AreEqual(dummy.GiveExperience(), 10); }
public void DeadDummiesCanGiveExp() { axe.Attack(dummy); Assert.AreEqual(5, dummy.GiveExperience(), "Dead dummy does not give required amount of experience"); }
public void DeadDummyCanGiveExpirience() { Dummy dummy = new Dummy(0, 10); Assert.That(() => dummy.GiveExperience(), Is.EqualTo(10), "Target is not dead."); }