public void BasePlayerModel_LevelUp_Valid_Level_2_Should_Pass() { // Arrange var data = new BasePlayerModel <CharacterModel> { Level = 1, ExperienceTotal = 301, }; // Act var result = data.LevelUp(); // Reset // Assert Assert.AreEqual(true, result); }
public void BasePlayerModel_LevelUp_InValid_Level_1_No_Experience_Should_Fail() { // Arrange var data = new BasePlayerModel <CharacterModel> { Level = 1, ExperienceTotal = -1, }; // Act var result = data.LevelUp(); // Reset // Assert Assert.AreEqual(false, result); }