Exemplo n.º 1
0
 public void TestTryGetServerVersionInvalidConnectionString()
 {
     RunIfWrapper.RunIfWindows(() =>
     {
         ReliableConnectionHelper.ServerInfo info = null;
         Assert.False(ReliableConnectionHelper.TryGetServerVersion("this is not a valid connstr", out info, null));
     });
 }
Exemplo n.º 2
0
        public void TestTryGetServerVersion()
        {
            ReliableConnectionHelper.ServerInfo info = null;
            var connBuilder = CreateTestConnectionStringBuilder();

            Assert.True(ReliableConnectionHelper.TryGetServerVersion(connBuilder.ConnectionString, out info, null));

            Assert.NotNull(info);
            Assert.NotNull(info.ServerVersion);
            Assert.NotEmpty(info.ServerVersion);
        }
Exemplo n.º 3
0
        public void TestTryGetServerVersion()
        {
            TestUtils.RunIfWindows(() =>
            {
                ReliableConnectionHelper.ServerInfo info = null;
                Assert.True(ReliableConnectionHelper.TryGetServerVersion(CreateTestConnectionStringBuilder().ConnectionString, out info));

                Assert.NotNull(info);
                Assert.NotNull(info.ServerVersion);
                Assert.NotEmpty(info.ServerVersion);
            });
        }