public void ListConnectedClients_SingleRunningServerWithNoConnectedClients_ReturnsEmptyCollection() { using (var db4OServerFile = new TemporaryDb4OServerFile(m_db4OServerInfo)) { db4OServerFile.StartServer(); // The test. Assert.AreEqual(0, m_db4OServerInfo.ListConnectedClients(db4OServerFile.ProjectName).Count()); db4OServerFile.StopServer(); } }
public void ProjectNames_LocalhostServiceIsRunning_ProjectsReturned() { ClientServerServices.Current.Local.SetProjectSharing(true, m_progress); using (var db4OServerFile = new TemporaryDb4OServerFile(m_db4OServerInfo)) { db4OServerFile.StartServer(); Assert.Greater(ClientServerServices.Current.ProjectNames("127.0.0.1").Length, 0, "At least one project should have been found."); db4OServerFile.StopServer(); } }
public void ListConnectedClients_SingleConnectedClientDoNotSpecifyProjectName_ReturnsSingleClientIpAddress() { using (var db4OServerFile = new TemporaryDb4OServerFile(m_db4OServerInfo)) { db4OServerFile.StartServer(); int existingConnectedClientsCount = m_db4OServerInfo.ListConnectedClients().Count(); using (var dummyClient = db4OServerFile.ConnectADummyClient()) { // The test. Assert.AreEqual(existingConnectedClientsCount + 1, m_db4OServerInfo.ListConnectedClients().Count()); } db4OServerFile.StopServer(); } }
public void ListConnectedClients_SingleConnectedClientDoNotSpecifyProjectName_ReturnsSingleClientIpAddress() { using (var db4OServerFile = new TemporaryDb4OServerFile(m_db4OServerInfo)) { db4OServerFile.StartServer(); int existingConnectedClientsCount = m_db4OServerInfo.ListConnectedClients().Count(); using (var dummyClient = db4OServerFile.ConnectADummyClient()) { // The test. Assert.AreEqual(existingConnectedClientsCount + 1, m_db4OServerInfo.ListConnectedClients().Count()); } db4OServerFile.StopServer(); } }
public void ListConnectedClients_SingleRunningServerWithNoConnectedClients_ReturnsEmptyCollection() { using (var db4OServerFile = new TemporaryDb4OServerFile(m_db4OServerInfo)) { db4OServerFile.StartServer(); // The test. Assert.AreEqual(0, m_db4OServerInfo.ListConnectedClients(db4OServerFile.ProjectName).Count()); db4OServerFile.StopServer(); } }
public void ProjectNames_LocalhostServiceIsRunning_ProjectsReturned() { ClientServerServices.Current.Local.SetProjectSharing(true, m_progress); using (var db4OServerFile = new TemporaryDb4OServerFile(m_db4OServerInfo)) { db4OServerFile.StartServer(); Assert.Greater(ClientServerServices.Current.ProjectNames("127.0.0.1").Length, 0, "At least one project should have been found."); db4OServerFile.StopServer(); } }