Exemplo n.º 1
0
        public void GetString_ThrowsArgumentNullException_IfNullOrEmptyStringPassed(string name)
        {
            Action action = () => appSettings.GetString(name);

            action.ShouldThrow <ArgumentNullException>();
        }
Exemplo n.º 2
0
 public void GetString_ThrowsArgumentNullException_IfNullOrEmptyStringPassed(string name)
 {
     Assert.Throws <ArgumentNullException>(() => appSettings.GetString(name));
 }