public void CanAssignExceptionPolicyName()
        {
            ExceptionShieldingElement element = new ExceptionShieldingElement();

            element.ExceptionPolicyName = "MyPolicy";
            Assert.AreEqual("MyPolicy", element.ExceptionPolicyName);
        }
        public void ShouldGetDefaultValueOnEmptyExceptionPolicyName()
        {
            ExceptionShieldingElement element = new ExceptionShieldingElement();

            element.ExceptionPolicyName = "";
            Assert.AreEqual(ExceptionShielding.DefaultExceptionPolicy, element.ExceptionPolicyName);
        }
        public void CanCreateInstance()
        {
            ExceptionShieldingElement element = new ExceptionShieldingElement();

            Assert.IsNotNull(element);
            Assert.AreEqual(ExceptionShielding.DefaultExceptionPolicy, element.ExceptionPolicyName);
        }
        public void CanCopyFrom()
        {
            ExceptionShieldingElement element = new ExceptionShieldingElement();
            element.ExceptionPolicyName = "Policy1";
            ExceptionShieldingElement from = new ExceptionShieldingElement();
            from.ExceptionPolicyName = "Policy2";
            element.CopyFrom((ServiceModelExtensionElement)from);

            Assert.AreEqual(from.ExceptionPolicyName, element.ExceptionPolicyName);
            Assert.AreEqual("Policy2", element.ExceptionPolicyName);
        }
        public void CanCopyFrom()
        {
            ExceptionShieldingElement element = new ExceptionShieldingElement();

            element.ExceptionPolicyName = "Policy1";
            ExceptionShieldingElement from = new ExceptionShieldingElement();

            from.ExceptionPolicyName = "Policy2";
            element.CopyFrom((ServiceModelExtensionElement)from);
            Assert.AreEqual(from.ExceptionPolicyName, element.ExceptionPolicyName);
            Assert.AreEqual("Policy2", element.ExceptionPolicyName);
        }
        public void ShouldGetExceptionShieldingBehaviorType()
        {
            ExceptionShieldingElement element = new ExceptionShieldingElement();

            Assert.AreEqual(typeof(ExceptionShieldingBehavior), element.BehaviorType);
        }
 public void ShouldGetExceptionShieldingBehaviorType()
 {
     ExceptionShieldingElement element = new ExceptionShieldingElement();
     Assert.AreEqual(typeof(ExceptionShieldingBehavior), element.BehaviorType);
 }
 public void ShouldGetDefaultValueOnEmptyExceptionPolicyName()
 {
     ExceptionShieldingElement element = new ExceptionShieldingElement();
     element.ExceptionPolicyName = "";
     Assert.AreEqual(ExceptionShielding.DefaultExceptionPolicy, element.ExceptionPolicyName);
 }
 public void CanAssignExceptionPolicyName()
 {
     ExceptionShieldingElement element = new ExceptionShieldingElement();
     element.ExceptionPolicyName = "MyPolicy";
     Assert.AreEqual("MyPolicy", element.ExceptionPolicyName);
 }
 public void CanCreateInstance()
 {
     ExceptionShieldingElement element = new ExceptionShieldingElement();
     Assert.IsNotNull(element);
     Assert.AreEqual(ExceptionShielding.DefaultExceptionPolicy, element.ExceptionPolicyName);
 }