Exemple #1
0
        /// <summary>
        /// Adds a <see cref="InProcDistributionStrategyNode"/> as the default node.
        /// </summary>
        protected override void AddDefaultChildNodes()
        {
            base.AddDefaultChildNodes();
            InProcDistributionStrategyNode node = new InProcDistributionStrategyNode();

            Nodes.AddWithDefaultChildren(node);
        }
        public void ClientSettingsNodeTest()
        {
            DistributionStrategyNode distributionStrategy = new InProcDistributionStrategyNode();
            bool loggingEnabled = true;
            int minimumPriority = 1;
            bool tracingEnabled = true;

            ClientSettingsNode node = new ClientSettingsNode();
            GeneratedApplicationNode.Nodes.Add(node);
            node.CategoryFilterSettings = new CategoryFilterSettings(CategoryFilterMode.DenyAllExceptAllowed, new CategoryFilterDataCollection());
            node.DistributionStrategy = distributionStrategy;
            node.LoggingEnabled = loggingEnabled;
            node.MinimumPriority = minimumPriority;
            node.TracingEnabled = tracingEnabled;

            Assert.AreEqual(CategoryFilterMode.DenyAllExceptAllowed, node.CategoryFilterSettings.CategoryFilterMode);
            Assert.AreEqual(distributionStrategy, node.DistributionStrategy);
            Assert.AreEqual(loggingEnabled, node.LoggingEnabled);
            Assert.AreEqual(minimumPriority, node.MinimumPriority);
            Assert.AreEqual(tracingEnabled, tracingEnabled);
        }
        public void InProcNodeTest()
        {
            InProcDistributionStrategyNode node = new InProcDistributionStrategyNode();

            Assert.AreEqual(typeof(InProcLogDistributionStrategy).AssemblyQualifiedName, node.TypeName);
        }
 /// <summary>
 /// Adds a <see cref="InProcDistributionStrategyNode"/> as the default node.
 /// </summary>
 protected override void AddDefaultChildNodes()
 {
     base.AddDefaultChildNodes();
     InProcDistributionStrategyNode node = new InProcDistributionStrategyNode();
     Nodes.AddWithDefaultChildren(node);
 }