Example #1
0
        public void TestIsDatabaseReadonly()
        {
            var connectionBuilder = CreateTestConnectionStringBuilder();

            Assert.NotNull(connectionBuilder);

            bool isReadOnly = ReliableConnectionHelper.IsDatabaseReadonly(connectionBuilder);

            Assert.False(isReadOnly);
        }
Example #2
0
 public void TestIsDatabaseReadonlyWithNullBuilder()
 {
     Assert.Throws <ArgumentNullException>(() => ReliableConnectionHelper.IsDatabaseReadonly(null, null));
 }