public void DeleteExceptionThrow() { // Arrange var adventurer = new Adventurer() { Name = String.Empty }; // Act adventurer.Delete(); }
public void DeleteExceptionMessage() { // Arrange var adventurer = new Adventurer() { Name = String.Empty }; var expected = "You must assign a name for the Adventurer before calling the Delete() method."; // Act try { adventurer.Delete(); } catch (MissingMemberException exc) { // Assert Assert.AreEqual(expected, exc.Message); } }