public void IrbisConnection_Restore_Exception_2() { byte[] bytes = { 0, 0, 0, 0 }; string badState = Convert.ToBase64String(bytes); IrbisConnection.Restore(badState); }
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); }
public void IrbisConnection_Restore_Exception_1() { const string badState = "BAD_STATE"; IrbisConnection.Restore(badState); }