public void SynchronousReceiveElement_defaults() { SynchronousReceiveElement element = new SynchronousReceiveElement(); Assert.AreEqual(typeof(SynchronousReceiveBehavior), element.BehaviorType, "BehaviorType"); Assert.AreEqual("synchronousReceive", element.ConfigurationElementName, "ConfigurationElementName"); }
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"); }