Exemplo n.º 1
0
        public void IrbisConnection_Suspend_1()
        {
            IrbisConnection first = new IrbisConnection();

            first.ParseConnectionString(ConnectionString);

            string state = first.Suspend();

            Assert.IsNotNull(state);

            IrbisConnection second = IrbisConnection.Restore(state);

            Assert.AreEqual(first.Host, second.Host);
            Assert.AreEqual(first.Port, second.Port);
            Assert.AreEqual(first.Username, second.Username);
            Assert.AreEqual(first.Password, second.Password);
            Assert.AreEqual(first.Database, second.Database);
            Assert.AreEqual(first.Workstation, second.Workstation);
        }