Пример #1
0
        public void SynchronousReceiveElement_defaults()
        {
            SynchronousReceiveElement element = new SynchronousReceiveElement();

            Assert.AreEqual(typeof(SynchronousReceiveBehavior), element.BehaviorType, "BehaviorType");
            Assert.AreEqual("synchronousReceive", element.ConfigurationElementName, "ConfigurationElementName");
        }
Пример #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");
        }