public void WeakFramework() { var pd = new NSPropertyDescription(); Assert.That(pd.Handle, Is.Not.EqualTo(IntPtr.Zero), "Handle"); // if CoreData is not linked then all related objects handle will be null }
public void GetSetTransient() { using (var pd = new NSPropertyDescription()) { Assert.IsFalse(pd.Transient, "A property should not be Transient by default."); pd.Transient = true; Assert.IsTrue(pd.Transient, "Transient was not correctly set."); } }
public void GetSetOpcional() { using (var pd = new NSPropertyDescription()) { Assert.IsTrue(pd.Optional, "A property should be Optional as default."); pd.Optional = false; Assert.IsFalse(pd.Optional, "Optional was not correctly set."); } }
public void GetSetName() { using (var pd = new NSPropertyDescription()) { Assert.IsNull(pd.Name, "An unset Name should be null"); pd.Name = "Name"; Assert.AreEqual("Name", pd.Name, "Name was not corretly set."); } }
public void GetSetRenamingIdentifier() { using (var pd = new NSPropertyDescription()) { Assert.IsNull(pd.RenamingIdentifier, "A property by default should have the RenamingIndentifier set to null"); pd.RenamingIdentifier = "Foo"; Assert.AreEqual("Foo", pd.RenamingIdentifier, "RenamingIdentifier was not correctly set."); } }