コード例 #1
0
        public void GetDictionary_ThrowsArgumentNullException_IfNullOrEmptyStringPassed(string name)
        {
            Action action = () => appSettings.GetDictionary(name);

            action.ShouldThrow <ArgumentNullException>();
        }
コード例 #2
0
 public void GetDictionary_ThrowsArgumentNullException_IfNullOrEmptyStringPassed(string name)
 {
     Assert.Throws <ArgumentNullException>(() => appSettings.GetDictionary(name));
 }