Beispiel #1
0
        public void LoadExceptionThrow()
        {
            // Arrange
            var name = string.Empty;

            // Act
            Adventurer region = Adventurer.Load(name);
        }
Beispiel #2
0
        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);
            }
        }