Пример #1
0
        public void IrbisConnection_Restore_Exception_2()
        {
            byte[] bytes    = { 0, 0, 0, 0 };
            string badState = Convert.ToBase64String(bytes);

            IrbisConnection.Restore(badState);
        }
Пример #2
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);
        }
Пример #3
0
        public void IrbisConnection_Restore_Exception_1()
        {
            const string badState = "BAD_STATE";

            IrbisConnection.Restore(badState);
        }