ApplicationSettingsTests.When_Getting_ConnectionString_By_Name.And_connection_string_does_not_exist_Then_exception_is_thrown C# (CSharp) Method

And_connection_string_does_not_exist_Then_exception_is_thrown() private method

        public void And_connection_string_does_not_exist_Then_exception_is_thrown()
        {
            var settings = new AppSettings(SimpleConfig.AbsolutePathToConfigFile);

            Assert.Throws<AppSettingException>(() => settings.GetConnectionString("NonExistingConnectionString"));
        }