public void TestDefaults()
        {
            var options = SqlConnectionOptionsBuilder.GetOptions(null);

            options.keepaliveCadence.ShouldEqual(TimeSpan.FromMinutes(10));
            Assert.IsTrue(options.useMultiplexing);
            Assert.IsFalse(options.useTransaction);
            options.ShouldEqual(SqlConnectionOptionsBuilder.GetOptions(o => { }));
        }
        public void TestValidatesArguments()
        {
            var builder = new SqlConnectionOptionsBuilder();

            Assert.Throws <ArgumentOutOfRangeException>(() => builder.KeepaliveCadence(TimeSpan.FromMilliseconds(-2)));
            Assert.Throws <ArgumentOutOfRangeException>(() => builder.KeepaliveCadence(TimeSpan.MaxValue));

            Assert.Throws <ArgumentException>(() => SqlConnectionOptionsBuilder.GetOptions(o => o.UseMultiplexing().UseTransaction()));
        }