public void IsValidTest() { bool result = false; Sequoiadb sdb2 = new Sequoiadb(config.conf.Coord.Address); System.Console.WriteLine(config.conf.Coord.Address.ToString()); sdb2.Connect("", ""); Assert.IsNotNull(sdb2.Connection); // check before disconnect result = sdb2.IsValid(); Assert.IsTrue(result); // check after disconnect sdb2.Disconnect(); result = sdb2.IsValid(); Assert.IsFalse(result); /* * // check after shutdown database manually * sdb2 = new Sequoiadb(config.conf.Coord.Address); * sdb2.Connect("", ""); * result = true; * result = sdb2.IsValid(); * Assert.IsFalse(result); */ }
public void IsValidTest() { bool result = false; Sequoiadb sdb2 = new Sequoiadb(config.conf.Coord.Address); System.Console.WriteLine(config.conf.Coord.Address.ToString()); sdb2.Connect("", ""); Assert.IsNotNull(sdb2.Connection); // check before disconnect result = sdb2.IsValid(); Assert.IsTrue(result); // check after disconnect sdb2.Disconnect(); result = sdb2.IsValid(); Assert.IsFalse(result); /* // check after shutdown database manually sdb2 = new SequoiaClient(config.conf.Coord.Address); sdb2.Connect("", ""); result = true; result = sdb2.IsValid(); Assert.IsFalse(result); */ }