Beispiel #1
0
 public void CreateRemotingServerWithMachine()
 {
     Machine machine = new Machine();
     RemotingHostServer server = new RemotingHostServer(machine, 10001, "Server1");
     Assert.IsNotNull(server.Address);
     Assert.AreSame(machine, server.Machine);
     Assert.AreSame(machine.Host, server);
     Assert.AreSame(machine.GetHost(server.Id), server);
     server.Stop();
 }