public void And_file_does_not_exist_Then_exception_is_thrown() { var settings = new AppSettings("NonExistingConfig.config", FileOption.None); Assert.Throws<AppSettingException>(() => settings.GetValue("NonExistingSetting")); }