Ejemplo n.º 1
0
        public void TestIsDatabaseReadonly()
        {
            var connectionBuilder = CreateTestConnectionStringBuilder();

            Assert.NotNull(connectionBuilder);

            bool isReadOnly = ReliableConnectionHelper.IsDatabaseReadonly(connectionBuilder);

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