Beispiel #1
0
        public void NSPathControlItemShouldSetAttributedTitle()
        {
            var item            = new NSPathControlItem();
            var attributedTitle = item.AttributedTitle;

            item.AttributedTitle = new NSAttributedString("Test");

            Assert.IsTrue(item.AttributedTitle != attributedTitle, "NSPathControlShouldSetAttributedTitle - AttributedTitle value did not change.");
        }
Beispiel #2
0
        public void NSPathControlItemShouldSetImage()
        {
            var item = new NSPathControlItem();

            Assert.IsTrue(item.Image == null, "NSPathControlItemShouldSetImage - Image did not start as null");

            item.Image = new NSImage();
            Assert.IsTrue(item.Image != null, "NSPathControlItemShouldSetImage - Failed to set Image property");
        }
Beispiel #3
0
        public void NSPathControlItemShouldSetTitle()
        {
            var item  = new NSPathControlItem();
            var title = item.Title;

            item.Title = "Test";

            Assert.IsTrue(item.Title != title, "NSPathControlShouldSetTitle - Title value did not change.");
        }
 public void UpdatePathItem(NSPathControlItem pathItem)
 {
     pathItem.Title = title;
     pathItem.Image = image;
 }