public void Ctor_Null_Argument_Name()
 {
     Assert.Throws<ArgumentNullException>(() =>
     {
         var agent = new EsbAgent(null, "", 0, "");
     });
 }
 public void Ctor_Null_Argument_Instance()
 {
     Assert.Throws<ArgumentNullException>(() =>
     {
         var agent = new EsbAgent("name", "host", 0, null);
     });
 }
 public void Ctor_Null_Argument_Host()
 {
     Assert.Throws<ArgumentNullException>(() =>
     {
         var agent = new EsbAgent("name", null, 0, "");
     });
 }
 public void Ctor_Name()
 {
     var agent = new EsbAgent("name", "host", 0, "instance");
     Assert.IsNotNull(agent.GetAgentName());
     Assert.IsTrue(agent.GetAgentName() == "name");
 }
 public void Ctor_Guid()
 {
     var agent = new EsbAgent("name", "host", 0, "instance");
     Assert.IsNotNull(agent.Guid);
     Assert.IsTrue(agent.Guid == "com.203sol.newrelic.neuronesb");
 }
 public void Ctor_Version()
 {
     var agent = new EsbAgent("name", "host", 0, "instance");
     Assert.IsNotNull(agent.Version);
 }