public void CallbackDebugElement_defaults() { CallbackDebugElement element = new CallbackDebugElement(); Assert.AreEqual(typeof(CallbackDebugBehavior), element.BehaviorType, "element"); Assert.AreEqual("callbackDebug", element.ConfigurationElementName, "ConfigurationElementName"); Assert.AreEqual(false, element.IncludeExceptionDetailInFaults, "IncludeExceptionDetailInFaults"); }
public void CallbackDebugElement() { EndpointBehaviorElement behavior = OpenConfig(); CallbackDebugElement callbackDebug = (CallbackDebugElement)behavior [typeof(CallbackDebugElement)]; if (callbackDebug == null) { Assert.Fail("CallbackDebugElement is not exist in collection."); } Assert.AreEqual(typeof(CallbackDebugBehavior), callbackDebug.BehaviorType, "RoleProviderName"); Assert.AreEqual("callbackDebug", callbackDebug.ConfigurationElementName, "RoleProviderName"); Assert.AreEqual(true, callbackDebug.IncludeExceptionDetailInFaults, "IncludeExceptionDetailInFaults"); }