public void cmdline_oneitem()
 {
     var cmdline = new String[] {"NRobotRemote.Test.Keywords.dll:NRobotRemote.Test.Keywords.PublicClass"};
     var config = new RemoteServiceConfig(cmdline);
     var server = new RemoteService(config);
     server.StartAsync();
     server.Stop();
 }
 public void cmdline_gac_assembly()
 {
     var cmdline = new String[] {"-k","mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089:System.IO.File","-p","8271"};
     var config = new RemoteServiceConfig(cmdline);
     var server = new RemoteService(config);
     server.StartAsync();
     server.Stop();
 }
 public void cmdline_nolibraries()
 {
     var cmdline = new String[] {"-p","8271"};
     var config = new RemoteServiceConfig(cmdline);
     var server = new RemoteService(config);
     server.StartAsync();
     server.Stop();
 }
 public void cmdline_valid_multiple()
 {
     var cmdline = new String[] {"-k","NRobotRemote.Test.Keywords.dll:NRobotRemote.Test.Keywords.FirstClass:NRobotRemote.Test.Keywords.xml","NRobotRemote.Test.Keywords.dll:NRobotRemote.Test.Keywords.SecondClass:NRobotRemote.Test.Keywords.xml","-p","8271"};
     var config = new RemoteServiceConfig(cmdline);
     var server = new RemoteService(config);
     server.StartAsync();
     server.Stop();
 }
 public void unknowntype()
 {
     var server = new RemoteService(CLibrary,"Not a valid type",CPort,null);
     server.StartAsync();
     server.Stop();
 }
 public void startandstop()
 {
     var server = new RemoteService(CLibrary,CType,CPort,null);
     server.StartAsync();
     server.Stop();
     server.StartAsync();
     server.Stop();
 }
 public void notype()
 {
     var server = new RemoteService(CLibrary,null,CPort,null);
     server.StartAsync();
     server.Stop();
 }
 public void config_sametype()
 {
     var config = new RemoteServiceConfig();
     config.AddKeywordConfig(new KeywordMapConfig() {Library = CLibrary, Type = CType} );
     config.AddKeywordConfig(new KeywordMapConfig() {Library = CLibrary, Type = CType} );
     config.port = int.Parse(CPort);
     var server = new RemoteService(config);
     server.StartAsync();
     server.Stop();
 }
 public void nonnumericport()
 {
     var server = new RemoteService(CLibrary,CType,"notanumber",null);
     server.StartAsync();
     server.Stop();
 }
 public void nolibrary()
 {
     var server = new RemoteService(null,CType,CPort,null);
     server.StartAsync();
     server.Stop();
 }
 public void multipleservers()
 {
     var server1 = new RemoteService(CLibrary,CType,CPort,null);
     var server2 = new RemoteService(CLibrary,CType,"8272",null);
     server1.StartAsync();
     server2.StartAsync();
     server1.Stop();
     server2.Stop();
 }
 public void librarynotfound()
 {
     var server = new RemoteService("c:\\randomlibrary.dll",CType,CPort,null);
     server.StartAsync();
     server.Stop();
 }
 public void duplicatekeywords()
 {
     var server = new RemoteService(CLibrary,"NRobotRemote.Test.Keywords.DuplicateMethod",CPort,null);
     server.StartAsync();
     server.Stop();
 }
 public void docfilenotfound()
 {
     var server = new RemoteService(CLibrary,CType,CPort,"c:\randomdocfile.xml");
     server.StartAsync();
     server.Stop();
 }
 public void config_unknowndoc()
 {
     var config = new RemoteServiceConfig();
     config.AddKeywordConfig(new KeywordMapConfig() {Library = CLibrary, Type = CType, DocFile="unknown.xml"} );
     config.port = int.Parse(CPort);
     var server = new RemoteService(config);
     server.StartAsync();
     server.Stop();
 }
 public void noport()
 {
     var server = new RemoteService(CLibrary,CType,null,null);
     server.StartAsync();
     server.Stop();
 }
 public void cmdline_valid_nodoc()
 {
     var cmdline = new String[] {"-k","NRobotRemote.Test.Keywords.dll:NRobotRemote.Test.Keywords.PublicClass","-p","8271"};
     var config = new RemoteServiceConfig(cmdline);
     var server = new RemoteService(config);
     server.StartAsync();
     server.Stop();
 }
 public void config_noport()
 {
     var config = new RemoteServiceConfig();
     config.AddKeywordConfig(new KeywordMapConfig() {Library = CLibrary, Type = CType} );
     var server = new RemoteService(config);
     server.StartAsync();
     server.Stop();
 }