public void UpdateSuperhero_WithoutMatchingUniverse_Throws() { var initialSuperhero = SuperheroHandler.GetSuperhero(_lastSuperheroId); initialSuperhero.UniverseId = _lastUniverseId + 900; SuperheroHandler.UpdateSuperhero(initialSuperhero); }
public void UpdateSuperhero_WithMatchingUniverse_Updates() { var initialSuperhero = SuperheroHandler.GetSuperhero(_lastSuperheroId); initialSuperhero.SuperheroName = "Iron Mann"; SuperheroHandler.UpdateSuperhero(initialSuperhero); var newSuperhero = SuperheroHandler.GetSuperhero(_lastSuperheroId); Assert.AreEqual("Iron Mann", newSuperhero.SuperheroName); }