Npgsql.Tests.ConnectionStringBuilderTests.TryGetValue C# (CSharp) Method

TryGetValue() private method

private TryGetValue ( ) : void
return void
        public void TryGetValue()
        {
            object value;
            Builder.ConnectionString = "Host=myhost";

            Assert.That(Builder.TryGetValue("Host", out value), Is.True);
            Assert.That(value, Is.EqualTo("myhost"));

            Assert.That(Builder.TryGetValue("SomethingUnknown", out value), Is.False);
        }