public void LoadExceptionThrow() { // Arrange var name = string.Empty; // Act Adventurer region = Adventurer.Load(name); }
public void LoadExceptionMessage() { // Arrange var name = string.Empty; var expected = "Value cannot be null.\r\nParameter name: name"; // Act try { Adventurer region = Adventurer.Load(name); } catch (ArgumentNullException exc) { // Assert Assert.AreEqual(expected, exc.Message); } }