Example #1
0
        public void Get_ThrowsArgumentNullException_IfNullOrEmptyStringPassed(string name)
        {
            Action action = () => appSettings.Get <object>(name);

            action.ShouldThrow <ArgumentNullException>();
        }
Example #2
0
 public void Get_ThrowsArgumentNullException_IfNullOrEmptyStringPassed(string name)
 {
     Assert.Throws <ArgumentNullException>(() => appSettings.Get <object>(name));
 }