public void ConnectionTest() { BrightClusterConnection target = new BrightClusterConnection(); Assert.IsNull(target.Connection()); target.Init(url, user, password); Assert.IsNotNull(target.Connection()); Assert.IsInstanceOfType(target.Connection(), typeof(BrightClusterShell)); BrightClusterShell s = (BrightClusterShell)target.Connection(); var result = s.RunCommands(new List <string> { "help" }); Assert.IsTrue(result.Contains("alias")); Assert.IsTrue(result.Contains("user")); }
public void MyTestInitialize() { target = new BrightClusterConnection(); target.Init(url, user, password); }