Ejemplo n.º 1
0
        public void SynchronousReceiveElement_defaults()
        {
            SynchronousReceiveElement element = new SynchronousReceiveElement();

            Assert.AreEqual(typeof(SynchronousReceiveBehavior), element.BehaviorType, "BehaviorType");
            Assert.AreEqual("synchronousReceive", element.ConfigurationElementName, "ConfigurationElementName");
        }
Ejemplo n.º 2
0
        public void SynchronousReceiveElement()
        {
            EndpointBehaviorElement   behavior = OpenConfig();
            SynchronousReceiveElement element  = (SynchronousReceiveElement)behavior [typeof(SynchronousReceiveElement)];

            if (element == null)
            {
                Assert.Fail("SynchronousReceiveElement is not exist in collection.");
            }

            Assert.AreEqual(typeof(SynchronousReceiveBehavior), element.BehaviorType, "BehaviorType");
            Assert.AreEqual("synchronousReceive", element.ConfigurationElementName, "ConfigurationElementName");
        }