Npgsql.Tests.SecurityTests.IntegratedSecurityWithoutUsername C# (CSharp) Method

IntegratedSecurityWithoutUsername() private method

private IntegratedSecurityWithoutUsername ( ) : void
return void
        public void IntegratedSecurityWithoutUsername()
        {
            var csb = new NpgsqlConnectionStringBuilder(ConnectionString)
            {
                IntegratedSecurity = true,
                Username = null,
                Password = null,
            };
            using (var conn = new NpgsqlConnection(csb))
            {
                try
                {
                    conn.Open();
                }
                catch (Exception e)
                {
                    if (TestUtil.IsOnBuildServer)
                        throw;
                    Console.WriteLine(e);
                    Assert.Ignore("Integrated security (GSS/SSPI) doesn't seem to be set up");
                }
            }
        }