public void DeleteUniverse_Unused_DeletesSuccessfully() { var initialCount = UniverseHandler.GetUniverses().Count; UniverseHandler.DeleteUniverse(_lastUniverseId); var newCount = UniverseHandler.GetUniverses().Count; Assert.AreEqual(initialCount - 1, newCount); }
public void DeleteUniverse_UsedUniverse_ThrowsException() { var sh = new Superhero() { UniverseId = _lastUniverseId }; sh.SuperheroName = "Captain America"; SuperheroHandler.AddSuperhero(sh); UniverseHandler.DeleteUniverse(_lastUniverseId); }