Assert.IsTrue (pca.IsDefaultAttribute (), "IsDefaultAttribute");
// this throws a NullReferenceException on MS 2.0 beta2
// Assert.IsTrue (pca.GetHashCode () != 0, "GetHashCode"); // likely
-#if NET_2_0
Assert.AreEqual (typeof (Control), pca.ChildControlType, "ChildControlType");
-#endif
}
[Test]
Assert.IsTrue (pca.Equals (pca), "Equals");
Assert.IsFalse (pca.IsDefaultAttribute (), "IsDefaultAttribute");
Assert.IsTrue (pca.GetHashCode () != 0, "GetHashCode"); // likely
-#if NET_2_0
Assert.AreEqual (typeof (Control), pca.ChildControlType, "ChildControlType");
-#endif
}
[Test]
Assert.IsTrue (pca.Equals (pca), "Equals");
Assert.IsFalse (pca.IsDefaultAttribute (), "IsDefaultAttribute");
Assert.IsTrue (pca.GetHashCode () != 0, "GetHashCode"); // likely
-#if NET_2_0
Assert.AreEqual (typeof (Control), pca.ChildControlType, "ChildControlType");
-#endif
}
-#if NET_2_0
[Test]
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
public void CtorType_Deny_Unrestricted ()
Assert.IsTrue (pca.GetHashCode () != 0, "GetHashCode"); // likely
Assert.AreEqual (typeof (string), pca.ChildControlType, "ChildControlType");
}
-#endif
[Test]
[PermissionSet (SecurityAction.Deny, Unrestricted = true)]
public void Static_Deny_Unrestricted ()
{
Assert.IsNotNull (ParseChildrenAttribute.Default, "Default");
-#if NET_2_0
Assert.IsNotNull (ParseChildrenAttribute.ParseAsChildren, "ParseAsChildren");
Assert.IsNotNull (ParseChildrenAttribute.ParseAsProperties, "ParseAsProperties");
-#endif
}
// LinkDemand