示例#1
0
 static void Main()
 {
     try
     {
         using (IrbisConnection connection = new IrbisConnection())
         {
             connection.ParseConnectionString("host=127.0.0.1;port=6666;user=1;password=1;db=IBIS;");
             connection.Connect();
             IrbisVersion version = connection.GetServerVersion();
             MessageBox.Show(version.ToString(), "SharpIrbis");
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "SharpIrbis");
     }
 }
        public void IrbisVersion_ToString_1()
        {
            IrbisVersion version = new IrbisVersion();

            Assert.AreEqual("Version: (null), MaxClients: 0, ConnectedClients: 0, Organization: (null)", version.ToString());

            version = _GetVersion();
            Assert.AreEqual("Version: 64.2015.1, MaxClients: 100000, ConnectedClients: 10, Organization: Иркутский государственный технический университет", version.ToString());
        }