public void CanConnectToAgency() { object obj = Activator.GetObject(typeof(TestAgency), ServerUtilities.MakeUrl("TempTestAgency", 9300)); Assert.IsNotNull(obj); Assert.That(obj is TestAgency); }
public void CanConnect() { using (TestServer server = new TestServer("TestServer", 9000)) { server.Start(); object obj = Activator.GetObject(typeof(TestRunner), ServerUtilities.MakeUrl("TestServer", 9000)); Assert.IsNotNull(obj, "Unable to connect"); } }