public void Setting_CommandTimeout_to_negative_value_throws()
            {
                var optionsBuilder = new EntityOptionsBuilder().UseSqlServer("No=LoveyDovey");

                Assert.Throws<InvalidOperationException>(() => optionsBuilder.CommandTimeout(-55));

                using (var context = new TimeoutContext())
                {
                    Assert.Null(context.Database.AsRelational().Connection.CommandTimeout);

                    Assert.Throws<ArgumentException>(
                        () => context.Database.AsRelational().Connection.CommandTimeout = -3);

                    Assert.Throws<ArgumentException>(
                        () => context.Database.AsRelational().Connection.CommandTimeout = -99);
                }
            }
            public void Setting_CommandTimeout_to_negative_value_throws()
            {
                var optionsBuilder = new EntityOptionsBuilder().UseSqlServer("No=LoveyDovey");

                Assert.Throws <InvalidOperationException>(() => optionsBuilder.CommandTimeout(-55));

                using (var context = new TimeoutContext())
                {
                    Assert.Null(context.Database.AsRelational().Connection.CommandTimeout);

                    Assert.Throws <ArgumentException>(
                        () => context.Database.AsRelational().Connection.CommandTimeout = -3);

                    Assert.Throws <ArgumentException>(
                        () => context.Database.AsRelational().Connection.CommandTimeout = -99);
                }
            }