コード例 #1
0
		public void ParseEndpoints_for_null_config_throws()
		{
			Assert.Throws<ArgumentNullException>(() =>
			{
				var reg = new RemoteEndpointRegistry();
				reg.ParseEndpoints(null);
			});
		}
コード例 #2
0
		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);
		}
コード例 #3
0
		public void ParseEndpoints_for_nonempty_but_nochildren_config()
		{
			var reg = new RemoteEndpointRegistry();
			reg.ParseEndpoints(new MutableConfiguration("entries"));
		}