public void BasePlayerModel_CalculateExperienceEarned_Default_Should_Pass() { // Arrange var data = new BasePlayerModel <CharacterModel>(); // Act var result = data.CalculateExperienceEarned(0); // Reset // Assert Assert.AreEqual(0, result); }
public void BasePlayerModel_CalculateExperienceEarned_None_Avaiable_Should_Pass() { var data = new BasePlayerModel <MonsterModel> { ExperienceRemaining = 0, MaxHealth = 20, CurrentHealth = 20 }; // Call calculate experience before applying damage var Result = data.CalculateExperienceEarned(3); var Expected = 1; Assert.AreEqual(Expected, Result, TestContext.CurrentContext.Test.Name); }
public void BasePlayerModel_CalculateExperienceEarned_0_Should_Skip() { var data = new BasePlayerModel <MonsterModel> { ExperienceRemaining = 3000, MaxHealth = 20, CurrentHealth = 20 }; // Call calculate experience before applying damage var Result = data.CalculateExperienceEarned(0); var Expected = 0; Assert.AreEqual(Expected, Result); }