public void ParseEndpoints_for_null_config_throws()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         var reg = new RemoteEndpointRegistry();
         reg.ParseEndpoints(null);
     });
 }
        public void ParseEndpoints_reflects_entries()
        {
            var config = new MutableConfiguration("entries");

            config.CreateChild("item").Attribute("assembly", "asm1").Attribute("endpoint", "end");

            var reg = new RemoteEndpointRegistry();

            reg.ParseEndpoints(config);

            Assert.AreEqual(1, reg.EntriesCount);
        }
        public void ParseEndpoints_for_nonempty_but_nochildren_config()
        {
            var reg = new RemoteEndpointRegistry();

            reg.ParseEndpoints(new MutableConfiguration("entries"));
        }